*** zmijunkie has quit IRC | 00:53 | |
*** wjohnsto has joined #schooltool | 02:47 | |
*** wrobel has quit IRC | 03:25 | |
*** JohnnyST has quit IRC | 04:24 | |
*** jinty has quit IRC | 04:26 | |
*** th1a_ has joined #schooltool | 04:29 | |
*** th1a has quit IRC | 04:31 | |
*** jinty has joined #schooltool | 05:00 | |
*** th1a_ has quit IRC | 05:13 | |
*** jinty_ has joined #schooltool | 05:18 | |
*** jinty has quit IRC | 05:35 | |
*** th1a_ has joined #schooltool | 05:38 | |
*** th1a_ is now known as th1a | 05:44 | |
*** JohnnyST has joined #schooltool | 07:03 | |
*** didymo has quit IRC | 07:37 | |
*** Bhaskar has joined #schooltool | 08:18 | |
*** wrobel has joined #schooltool | 08:51 | |
*** didymo has joined #schooltool | 09:47 | |
*** jinty_ has quit IRC | 11:12 | |
*** jfroche has joined #schooltool | 11:41 | |
*** ignas has joined #schooltool | 12:56 | |
*** jinty has joined #schooltool | 13:13 | |
*** Bhaskar has quit IRC | 13:33 | |
*** thisfred has joined #schooltool | 13:34 | |
*** Fujitsu has joined #schooltool | 13:35 | |
jfroche | ignas: hello, feel better today ? | 13:39 |
---|---|---|
ignas | hmm, the pain of the tooth was replaced by the pain of no tooth, and i still have some temperature | 13:40 |
jfroche | don't forget to rest | 13:40 |
jfroche | i have a question | 13:40 |
* Fujitsu greets anybody present. | 13:40 | |
ignas | Fujitsu: hi | 13:40 |
jfroche | i am stuck with something in demographics | 13:40 |
jfroche | i would like to override the menuitems person_display_menu | 13:41 |
jfroche | is it possible ? | 13:41 |
ignas | hmm, you can try doing that through zcml overrides | 13:42 |
ignas | though i don't really know | 13:42 |
jfroche | seems that the others are still present | 13:42 |
ignas | ouch | 13:42 |
ignas | so the only thing you can do is provide a new menu | 13:42 |
ignas | like new_person_display_menu | 13:43 |
jfroche | ok | 13:43 |
ignas | or refactor the menu into some viewlets | 13:43 |
ignas | and do it properly ;( | 13:44 |
ignas | ;) | 13:44 |
ignas | Lumiere: svn up resource booking branch and see if it works the way you want it to work, if not - write a failing functional test that i can fix ;) | 14:15 |
*** ignas has quit IRC | 14:15 | |
*** Aiste has quit IRC | 16:46 | |
*** wdickers has joined #schooltool | 16:54 | |
*** wdickers has left #schooltool | 16:54 | |
*** wdickers has joined #schooltool | 16:54 | |
th1a | hi wdickers. | 16:55 |
wdickers | good morning | 16:55 |
th1a | wdickers: Any questions, concerns? | 17:02 |
wdickers | None at the moment, but as I look at the code, I'm sure I'll find something | 17:02 |
Lumiere | th1a: is there anything we can do to speed up the start time of schooltool a little bit? | 17:03 |
Lumiere | make run takes almost a minute here | 17:03 |
th1a | Don't type 'make run.' | 17:05 |
th1a | Use 'python schooltool-server.py' | 17:05 |
th1a | Lumiere. | 17:05 |
Lumiere | ok | 17:06 |
Lumiere | it still takes 25 seconds | 17:06 |
th1a | Well, I think you're stuck with that. | 17:07 |
Lumiere | yea | 17:07 |
Lumiere | I'm seeing why too | 17:07 |
th1a | Why? | 17:07 |
Lumiere | all the memory's gone | 17:07 |
Lumiere | that system has 256 | 17:07 |
th1a | Ah. | 17:07 |
Lumiere | and it's running cando-06 | 17:07 |
Lumiere | and schooltool | 17:07 |
wdickers | Do either of you happen to know where in the database person objects are stored? I mean which dict keys and whatnot | 17:08 |
th1a | Under 'persons' ? | 17:09 |
Lumiere | th1a: is there a way to login as a teacher in a functional test? | 17:12 |
Lumiere | so I can write a few failing functional tests for ignas on resource scheduling | 17:12 |
wdickers | Here are the keys at root level | 17:13 |
wdickers | ['Application', 'stAgent', 'zope.app.generations'] | 17:13 |
wdickers | I've added the stAgent as the temp database | 17:14 |
th1a | Application/persons | 17:17 |
th1a | I believe. | 17:17 |
wdickers | I'm not sure how to get to persons, the Application is a | 17:18 |
wdickers | <persistent broken schooltool.app.app.SchoolToolApplication instance '\x00\x00\x00\x00\x00\x00\x00\x01'> | 17:18 |
wdickers | and doesn't have a keys() method | 17:18 |
th1a | You have to import Application. | 17:19 |
th1a | So you have to have schooltool in your path. | 17:20 |
wdickers | do you mean SchoolToolApplication? | 17:21 |
jfroche | Lumiere: you have to add a teacher with from schooltool.demographics.browser.ftests import addPerson and then | 17:27 |
jfroche | import from schooltool.app.browser.ftests import setup and use setup.logIn() | 17:28 |
jfroche | to log in as a teacher | 17:28 |
th1a | wdickers: Perhaps. | 17:28 |
wdickers | When I tried to import the application, I get an error involving PIL. It's strange because not only can I not find where it's called, but the PIL __init__.py has nothing in it | 17:33 |
wdickers | >>> from schooltool.app.app import SchoolToolApplication | 17:33 |
wdickers | Traceback (most recent call last): | 17:33 |
wdickers | File "<stdin>", line 1, in ? | 17:33 |
wdickers | File "/usr/lib/python2.4/site-packages/PIL/__init__.py", line 37, in ? | 17:33 |
wdickers | 17:33 | |
wdickers | ImportError: No module named i18nmessageid | 17:33 |
wdickers | Well I'll look into it, it may be that my PYTHONPATH is wrong | 17:41 |
wdickers | see you later | 17:41 |
*** wdickers has quit IRC | 17:41 | |
th1a | jinty: Can a .deb package set up its own MySQL database? | 17:57 |
th1a | It seems like it can't since it doesn't necessarily know the password. | 17:58 |
*** Spec[x] is now known as Spec | 18:03 | |
jinty | th1a: well, it could because it acts as root when installed | 18:03 |
jinty | but it's probably a very bad idea | 18:03 |
th1a | It is generally not done, then? | 18:04 |
jinty | no, never I think | 18:04 |
th1a | OK. So that's one reason to use SQLite. | 18:04 |
jinty | a common way is top provide a .sql file that the admin does: cat create.sql | mysql dbname | 18:05 |
jinty | or something | 18:05 |
jinty | yes, SQLite get's rid of that setup issue totally | 18:05 |
Spec | th1a: can it support multie dbs? | 19:00 |
Spec | th1a: i think if it can, the install-script should let you choose which database you want to configure the package for | 19:00 |
Spec | so if you chose mysql, it'd ask for a username/password, etc | 19:00 |
th1a | Spec: Well, I haven't written the app yet. | 19:00 |
Spec | i would suggest trying to support a few different open source dbs | 19:01 |
Spec | if it's not too much out of your way :p | 19:01 |
th1a | It will use the Python DB-API for either, so in theory switching is easy to add. | 19:01 |
Spec | excellent | 19:02 |
th1a | I just need to pick one to start with. | 19:02 |
Spec | might as well do sqlite then :P | 19:02 |
Spec | but when you package it, you should think of installer scripts to choose the db | 19:02 |
Spec | Lumiere: ping | 19:03 |
th1a | Spec: In the longer run. | 19:04 |
th1a | I just need to get something running first. | 19:04 |
Spec | so go with easiest :p | 19:04 |
*** jinty has quit IRC | 19:35 | |
*** thisfred has quit IRC | 21:35 | |
Fujitsu | th1a: A number of packages do install MySQL databases, using dbconfig-common. | 22:33 |
th1a | Fujitsu: How does that work? | 22:34 |
*** Aiste has joined #schooltool | 22:36 | |
*** Ninno has joined #schooltool | 22:36 | |
Fujitsu | It will ask for a username/password for the DB on installation. | 22:37 |
Fujitsu | Then do the creating and stuff. | 22:37 |
Fujitsu | What's this SQL for anyway? Are you moving away from Persistent? | 22:39 |
*** Ninno has quit IRC | 23:17 | |
*** jfroche has quit IRC | 23:54 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!