jelkner | and paul will get you whatever he can by saturday | 00:00 |
---|---|---|
jinty | sure that would be good | 00:00 |
jelkner | excellent, here on #schooltool then. | 00:00 |
jinty | sure | 00:00 |
* jinty starts off a nightly build oi the new schooltool trunk and prays | 00:01 | |
pcardune | he he | 00:01 |
jelkner | jinty: so, what about the universe question? | 00:01 |
jinty | I would like to have cando in debian as well | 00:02 |
jelkner | cool | 00:02 |
jinty | everything from debian eventually goes to ubuntu | 00:02 |
jinty | but how about you maintain the ubuntu part and be the debian part | 00:02 |
jelkner | great | 00:03 |
jinty | so the first order of business is to make an ITP (Intent to Package) | 00:03 |
jinty | then find a sponsor, I guess I can organize both | 00:03 |
jelkner | what is an ITP, and what are the requirements for a sponsor? | 00:04 |
jelkner | is that part of the debian development process, i assume? | 00:04 |
jinty | exactly | 00:04 |
jelkner | what i mean by what is it, is how do you do it? | 00:04 |
jelkner | you can tell me that on sunday if you prefer | 00:05 |
jinty | reportbug --bts=debian | 00:06 |
jinty | yeah sunday is better, gotta go watch the Ardilla Roja (a movie) | 00:07 |
jelkner | cya | 00:08 |
jelkner | well, i gotta run, paul, thanks again | 00:08 |
jinty | Yay, new schooltool nightly up in 5 mins | 00:08 |
jinty | cheers! | 00:08 |
*** jinty has quit IRC | 00:08 | |
*** jelkner has quit IRC | 00:09 | |
*** pcardune has left #schooltool | 00:54 | |
*** mhz has quit IRC | 01:14 | |
*** pcardune has joined #schooltool | 01:17 | |
pcardune | srichter, I just changed the makefile for CanDo to check out the Zope trunk rather than the testbrowser branch, but the version of schoolbell we branched from no longer works with the zope trunk | 01:42 |
pcardune | I have an import error... there is no zope.app.server.http.http | 01:42 |
pcardune | do you know what part of this changed? | 01:42 |
srichter | schoolbell? | 01:43 |
srichter | can you give me the traceback? | 01:44 |
pcardune | File "./schooltool-server.py", line 28, in ? | 01:44 |
pcardune | import schooltool.main | 01:44 |
pcardune | File "/home/pcardune/cando/trunk/cando/src/schooltool/main.py", line 32, in ? | 01:44 |
pcardune | from schoolbell.app.main import StandaloneServer as SchoolBellServer | 01:44 |
pcardune | File "/home/pcardune/cando/trunk/cando/src/schoolbell/app/main.py", line 49, in ? | 01:44 |
pcardune | from zope.app.server.http import http | 01:44 |
pcardune | ImportError: No module named http | 01:44 |
srichter | shrug, this should not be deleted | 01:45 |
srichter | you have to use the wsgi module now | 01:45 |
srichter | from zope.app.server.wsgi import http | 01:46 |
pcardune | ok | 01:46 |
srichter | it expects other parameters as well, but you should be able to figure it out from here | 01:46 |
pcardune | ok, thanks | 01:47 |
*** th1a has quit IRC | 01:48 | |
*** th1a has joined #schooltool | 01:51 | |
*** didymo has joined #schooltool | 03:00 | |
*** th1a has quit IRC | 03:00 | |
*** pcardune has quit IRC | 03:18 | |
*** JohnnyST has quit IRC | 03:31 | |
*** JohnnyST has joined #schooltool | 03:34 | |
*** hazmat has joined #schooltool | 06:20 | |
*** Ricey has quit IRC | 07:07 | |
*** Ricey has joined #schooltool | 07:13 | |
*** auxesis has quit IRC | 07:14 | |
*** auxesis has joined #schooltool | 07:20 | |
*** didymo has quit IRC | 07:23 | |
*** hazmat has quit IRC | 07:31 | |
*** hazmat has joined #schooltool | 07:49 | |
*** hazmat has quit IRC | 09:39 | |
*** mgedmin has joined #schooltool | 12:14 | |
mgedmin | srichter, do you have a url for this pdftemplate thingy? | 12:33 |
mgedmin | google gives me a bunch of Java/PHP links | 12:33 |
mgedmin | "PDFTemplate" is such a generic name | 12:33 |
srichter | only an svn link | 12:33 |
srichter | (I developed the package for projekt01 once, but it recently got some attention from someone else) | 12:34 |
srichter | svn://svn.tiks.org/repos/Collective/pdftemplate/trunk | 12:34 |
mgedmin | it's not available over http? | 12:35 |
srichter | the demo I saw from Daniel (the other guy giving it attention) last week was really cool | 12:35 |
srichter | they did very advanced PDFs with it | 12:35 |
srichter | no, unfortunately not | 12:35 |
* mgedmin thinks that every sw project that takes itself seriously must have three things: (1) screenshots, (2) a brief description of what the heck it is, and (3) the source repository browseable in a web browser | 12:36 | |
srichter | right | 12:38 |
srichter | Roger is working on it | 12:38 |
mgedmin | yay | 12:38 |
mgedmin | correct me if I'm wrong, but does Zope 3 now pull in the whole of twisted via an svn:external? | 12:39 |
srichter | yes | 12:39 |
mgedmin | fun | 12:40 |
srichter | but it is a branch | 12:40 |
srichter | we have an alternative solution for the release | 12:40 |
mgedmin | I did svn up; make update in a schooltool sandbox | 12:40 |
mgedmin | when I noticed that | 12:40 |
srichter | I am in the process of convincing them to try zpkgtools again | 12:40 |
srichter | they are open to it | 12:40 |
srichter | then it would be really cool :-) | 12:40 |
mgedmin | I see a new DeprecationWarning today | 12:44 |
mgedmin | /home/mg/src/schooltool/Zope3/src/ZODB/serialize.py:416: DeprecationWarning: MessageID: Mutable i18n messages ("message ids") have been deprecated in favour of immutable ones and will be removed in Zope 3.3. Please use zope.i18nmessageid.Message instead. | 12:44 |
mgedmin | self._p.dump(state) | 12:44 |
mgedmin | while running ftests | 12:44 |
srichter | yep | 12:45 |
srichter | philipp is working on this | 12:45 |
mgedmin | I wonder if it is related to http://issues.schooltool.org/issue257 | 12:46 |
mgedmin | (mysterious <security proxied message IDs> in the output of web pages, that I've never seen in real life) | 12:46 |
srichter | this is from yesterday when philipp merged the new message stuff | 12:46 |
srichter | yep, it probably is related | 12:47 |
mgedmin | do you know how to use the new message IDs? | 13:03 |
mgedmin | if I replace MessageIDFactory with MessageFactory, then I'm unable to do stuff like | 13:03 |
mgedmin | foo = _("A message") | 13:03 |
mgedmin | foo.mapping = {'x': 1, 'y': 2} | 13:03 |
mgedmin | what's the new API? | 13:03 |
mgedmin | srichter, perhaps you know -- what's the command to generate a .pot file for schooltool? | 13:31 |
mgedmin | it was 'make extract-translations' a while ago | 13:31 |
mgedmin | but now that just gives me an error message | 13:31 |
mgedmin | jinty is not here, so I cannot ask him :-/ | 13:32 |
srichter | I dunno | 13:32 |
srichter | I neer understood any of this | 13:32 |
srichter | I only know it for Zope 3 | 13:32 |
srichter | I guess we should switch to those tools | 13:33 |
mgedmin | dum-de-dum | 13:34 |
mgedmin | how do you do it for Zope 3? | 13:35 |
mgedmin | ./Zope3/utilities/i18nextract.py? | 13:35 |
srichter | yes | 13:36 |
mgedmin | PYTHONPATH=src:Zope3/src ./Zope3/utilities/i18nextract.py -d schooltool -p schooltool | 13:36 |
mgedmin | gives me "This path does not exist" | 13:36 |
mgedmin | err, "The specified path does not exist." to be precise | 13:36 |
srichter | mmh, try -p src/schooltool | 13:37 |
mgedmin | "Make sure the script has been executed inside Zope 3 source tree." | 13:38 |
mgedmin | despite | 13:38 |
mgedmin | Note: The script expects to be executed either from inside the Zope 3 source | 13:38 |
mgedmin | tree or with the Zope 3 source tree on the Python path. | 13:38 |
mgedmin | which I thought I did with my PYTHONPATH=Zope3/src | 13:38 |
srichter | mmh, strange | 13:38 |
srichter | ok, now I would need to have a closer look | 13:39 |
mgedmin | oh, well | 13:39 |
mgedmin | I've a lecture soon | 13:39 |
srichter | I have to get going in a few minutes too | 13:39 |
mgedmin | I'll create an issue in the tracker "developers don't know how to extract a .POT file" and assign it to jinty | 13:39 |
srichter | LOL | 13:40 |
*** srichter has quit IRC | 13:41 | |
*** mgedmin has quit IRC | 13:50 | |
*** vidasp has joined #schooltool | 14:06 | |
*** mgedmin has joined #schooltool | 14:06 | |
*** mgedmin is now known as mgedmin|uni | 14:06 | |
*** ignas has joined #schooltool | 15:09 | |
*** JohnnyST has quit IRC | 15:46 | |
*** th1a has joined #schooltool | 15:48 | |
th1a | #edubuntu | 15:48 |
*** alga has joined #SchoolTool | 16:27 | |
*** srichter has joined #schooltool | 16:33 | |
*** ignas has quit IRC | 17:34 | |
*** jinty has joined #schooltool | 17:35 | |
*** mgedmin|uni has quit IRC | 17:53 | |
povbot | /svn/commits: * vidas committed revision 5220: | 18:19 |
povbot | /svn/commits: Sample data: added booking of projectors to section events. | 18:19 |
*** ignas has joined #schooltool | 18:38 | |
*** ignas has left #schooltool | 18:38 | |
*** ignas has joined #schooltool | 18:38 | |
ignas | j #edubuntu | 18:38 |
ignas | oops ;) | 18:38 |
povbot | /svn/commits: * ignas committed revision 5221: | 18:48 |
povbot | /svn/commits: Added printing of non ascii error messages to ResponseStatusError. Added missing unit tests for ResponseStatusError. | 18:48 |
*** mgedmin has joined #schooltool | 19:19 | |
povbot | /svn/commits: * alga committed revision 5222: | 19:51 |
povbot | /svn/commits: Sampledata timetable generator that generates sane timetables. | 19:51 |
povbot | /svn/commits: * ignas committed revision 5223: | 20:23 |
povbot | /svn/commits: Added unquote_url. | 20:23 |
*** ignas has quit IRC | 20:23 | |
povbot | /svn/commits: * alga committed revision 5224: | 20:38 |
povbot | /svn/commits: Made the sample data generation view display the "profile" of plugins run with CPU times eaten. | 20:39 |
*** vidasp has quit IRC | 20:40 | |
mgedmin | I draw the line at | 20:41 |
mgedmin | condition="python: hasattr(view, 'times')" | 20:41 |
mgedmin | as a condition to determine whether we're rendering the form, or processing it | 20:41 |
srichter | shrug :-( | 20:43 |
povbot | /svn/commits: * alga committed revision 5225: | 21:03 |
povbot | /svn/commits: Improvements suggested by Marius. | 21:03 |
* mgedmin wants docs for the RESTive api.. | 21:08 | |
srichter | you will get them soon; over the last weeks things came slowly together for me | 21:10 |
srichter | mgedmin: but I am thankful to any input you might have | 21:10 |
mgedmin | what is your plan? | 21:28 |
povbot | /svn/commits: * mg committed revision 5226: | 21:28 |
povbot | /svn/commits: Refactored common bits of createGroup and createResource into _createGenericObject. | 21:28 |
povbot | /svn/commits: Made _createGenericObject accept 200 Ok response as well as 201 Created, for the same reasons that I made this change in createPerson, earlier. | 21:28 |
srichter | it's hard to tell in words | 21:29 |
srichter | I am going to document each verb by itself | 21:29 |
srichter | and provide the XML schema below | 21:29 |
srichter | each verb that uses it | 21:29 |
mgedmin | what will you produce? a html? a pdf? | 21:32 |
srichter | HTML | 21:32 |
srichter | PDF is easy after that | 21:32 |
srichter | Roger or I will work on an example PDF for API doc soon anyways | 21:32 |
mgedmin | from what source? special comments in rest/*.py? decorators? a custom zcml directive? | 21:32 |
srichter | from registration objects in the global adapter registry | 21:33 |
mgedmin | attributes/staticmethods on view classes that provide ISchoolToolRESTView interface? | 21:33 |
srichter | I use the same approach I did take for the generic API doc | 21:33 |
srichter | yeah, I basically try to find rest views and since I know how they are implemented, I can introspect the classes | 21:34 |
srichter | it si very specific to our way, but that's ok | 21:34 |
srichter | that is true for all of API doc anyways | 21:34 |
* mgedmin nods | 21:37 | |
povbot | /svn/commits: * mg committed revision 5227: | 21:37 |
povbot | /svn/commits: Implemented createCourse and createSection in SchoolToolClient. | 21:37 |
srichter | I am just worried about the usefulness of the info I am going to provide | 21:37 |
srichter | mgedmin: what info are you looking for? | 21:38 |
mgedmin | what's the XML schema for creating $something | 21:39 |
mgedmin | and the like | 21:39 |
srichter | ok, then I think the REST API doc will be useful to you | 21:41 |
mgedmin | would be useful right now, if it existed already :-) | 21:41 |
povbot | /svn/commits: * mg committed revision 5228: | 21:58 |
povbot | /svn/commits: Further steps on the restive client fdoctest: | 21:58 |
povbot | /svn/commits: - Response class now has a sensible __repr__. | 21:58 |
povbot | /svn/commits: - RestConnectionFactory now has a handle_errors class attribute. | 21:58 |
povbot | /svn/commits: - README.txt acknowledges that it is a ftest already, albeit incomplete. | 21:58 |
povbot | /svn/commits: - Reviewed the object deletion part of the ftest. | 21:58 |
* mgedmin hates to read relaxng grammars | 22:00 | |
mgedmin | gimme BNF any time! | 22:00 |
mgedmin | SchoolTool> get /post | 22:05 |
mgedmin | 404 Not Found | 22:05 |
mgedmin | Content-Type: application/octet-stream | 22:05 |
mgedmin | Resource is not text, use save <filename> to save it | 22:05 |
mgedmin | interesting... do our REST error views not set the content-type properly? | 22:05 |
srichter | mmh, I thought they are set manually | 22:06 |
srichter | mgedmin: will the rest client become the REST equivalent for testbrowser? | 22:07 |
srichter | if this is a case, we should really develop a plugin framework for new features | 22:08 |
mgedmin | srichter, I haven't actually thought about that | 22:10 |
mgedmin | I think we actually want to show the raw XMLs in RESTive view functional tests | 22:10 |
mgedmin | 'cause thats our API | 22:10 |
* mgedmin tries to find the unit tests for src/schooltool/client.py | 22:11 | |
srichter | but exactely this makes the tests so very brittle | 22:11 |
* mgedmin looks at the canonical location, which is src/schooltool/tests/test_client.py | 22:11 | |
* mgedmin fails to find the tests there | 22:11 | |
srichter | my ideal would be testbrowser-like functionality, but having high-level XML introsepction tools instead | 22:11 |
mgedmin | srichter, brittle how? | 22:11 |
srichter | for example, the main REST view announces its top-level containers | 22:11 |
mgedmin | ... in random order | 22:11 |
srichter | or not, it does not matter | 22:12 |
srichter | so there is a test testing for the output | 22:12 |
srichter | this works well for schooltool alone | 22:12 |
mgedmin | and, I suppose, the presence or absence of some containers is something you do not want to care about in a ftest | 22:12 |
mgedmin | I see your point | 22:12 |
srichter | yep :-) | 22:12 |
mgedmin | I disagree that you need a high-level client for that | 22:12 |
srichter | there are many examples like that in the REST ftests | 22:12 |
mgedmin | just xpath tools for inspecting the response | 22:12 |
srichter | as long as we fix the current situation, I am fine | 22:13 |
srichter | :-) | 22:13 |
* mgedmin finds the test at /home/mg/src/schooltool/src/schooltool/app/tests/test_client.py and promptly moves it | 22:14 | |
povbot | /svn/commits: * mg committed revision 5229: | 22:15 |
povbot | /svn/commits: We have a very strong convention in SchoolTool that the tests for a module | 22:15 |
povbot | /svn/commits: somedir/foo.py | 22:15 |
povbot | /svn/commits: are always found either in | 22:16 |
povbot | /svn/commits: somedir/tests/test_foo.py | 22:16 |
povbot | /svn/commits: or in | 22:16 |
povbot | /svn/commits: somedir/tests.py | 22:16 |
mgedmin | OHIC | 22:19 |
mgedmin | src/schooltool/client.py does this: | 22:19 |
mgedmin | ctype = response.getheader('Content-Type', | 22:19 |
mgedmin | 'application/octet-stream') | 22:19 |
mgedmin | the server probably doesn't set the header altogether | 22:19 |
* mgedmin muses | 22:23 | |
mgedmin | so, if I've got a response object from httplib | 22:23 |
mgedmin | how do I enumerate all headers? | 22:24 |
*** jelkner has joined #schooltool | 22:24 | |
mgedmin | getheaders() of course, duh! | 22:24 |
jelkner | jinty: brian, you're here, cool! | 22:24 |
jelkner | i have a question/proposal for you... | 22:25 |
jelkner | thla: hi tom! | 22:25 |
mgedmin | srichter, btw we used to use our command-line client for RESTive functional tests | 22:26 |
mgedmin | with some special markup to do XML normalization | 22:27 |
mgedmin | so that item order in a collection or whitespace changes wouldn't break the tests | 22:27 |
mgedmin | the tests were truly functional then, also -- we had a live server and talked to it over http | 22:27 |
srichter | mmh, we should have something similar again :-) | 22:28 |
mgedmin | have you seen the normalize_xml function in schooltool.testing.utils? | 22:29 |
th1a | Wouldn't using the client for REST functional tests also keep the client up to date? | 22:29 |
th1a | jelkner: Hi. | 22:29 |
mgedmin | th1a, we have two clients, don't forget | 22:30 |
mgedmin | schooltool.client and schooltool.restclient (nee guiclient) | 22:30 |
mgedmin | we now use real REST views in the schooltool.restclient ftest to keep it up to date | 22:31 |
mgedmin | so you wish has been granted already | 22:31 |
th1a | OK. | 22:31 |
jelkner | thla: i wanted to run something by you when you get a moment, tom | 22:32 |
povbot | /svn/commits: * mg committed revision 5230: | 22:33 |
povbot | /svn/commits: Added a 'headers on|off' command to the command-line client. It shows full HTTP response headers. Comes in handy while debugging the RESTive server manually. | 22:33 |
*** tiredbones has quit IRC | 22:38 | |
* mgedmin wants buildbot to complain on IRC... anyone wanna hack buildbot's irc plugin? | 22:40 | |
povbot | /svn/commits: * alga committed revision 5231: | 22:45 |
povbot | /svn/commits: Whitespace in a docstring. What could be less significant? | 22:45 |
jelkner | jinty: are you here? thla: do you have a moment? | 22:45 |
povbot | /svn/commits: * alga committed revision 5232: | 22:47 |
povbot | /svn/commits: Improved the speed of section assignments plugin pi times. | 22:47 |
mgedmin | jelkner, btw 'th1a' != 'thla' (the digit 'one' versus the letter 'l') | 22:47 |
povbot | /svn/commits: * alga committed revision 5233: | 22:48 |
povbot | /svn/commits: Added a documentation on the sample data framework, with an explanation of how to add a new plugin. | 22:48 |
mgedmin | 'self.request._app_server[7:]' | 22:49 |
mgedmin | wonderful | 22:49 |
* mgedmin weeps | 22:49 | |
srichter | whaaattt? | 22:50 |
srichter | where is that? | 22:50 |
mgedmin | TermView (restive) extracts the server hostname in this way | 22:52 |
mgedmin | to construct rfc-822 IDs for iCalendar events representing the term | 22:52 |
srichter | :-( | 22:53 |
*** alga has quit IRC | 23:07 | |
jelkner | mgedmin: which one is tom? | 23:11 |
jelkner | never mind he's a 1 not an l | 23:12 |
jelkner | i've been doing that wrong... | 23:12 |
jinty | hoi jelkner | 23:13 |
jelkner | hi jinty! | 23:13 |
povbot | /svn/commits: * mg committed revision 5234: | 23:13 |
povbot | /svn/commits: Implemented SchoolToolClient.createTerm. | 23:13 |
jelkner | i have a question/proposal for you | 23:13 |
povbot | /svn/commits: Added a section on duplicate object creation to README.txt. | 23:13 |
jelkner | are you ready? | 23:13 |
jinty | just woke up from my unexpectedly lon siesta | 23:13 |
jinty | yeah | 23:13 |
* jinty rubs his eyes | 23:13 | |
jelkner | it is too important at this stage to get fixes into cando to wait for me... | 23:14 |
jinty | ah, | 23:14 |
jelkner | i propose we keep just paying you to do that if you don't mind | 23:14 |
jinty | heh;) | 23:14 |
jelkner | i mean for branch updates | 23:14 |
jelkner | once we have a new (and broken, unstable, etc) trunk | 23:15 |
jinty | sure, I've got no problem with that. | 23:15 |
povbot | /svn/commits: * mg committed revision 5235: | 23:15 |
jelkner | i can start packaging that | 23:15 |
povbot | /svn/commits: Fixing brainfart: _createGenericObject does a POST which cannot overwrite existing objects, duh! | 23:15 |
jelkner | i'm sure i'll break things early on myself, but it won't hurt that way | 23:15 |
jelkner | but i have another idea | 23:15 |
jelkner | tom and i were both complaining about the new artwork in edubuntu today | 23:16 |
jelkner | i decided that it is best for me to stop whining and to try to do something about it | 23:16 |
jinty | hmm | 23:16 |
jelkner | i want to learn to package desktop themes | 23:16 |
jelkner | do you know anything about that? | 23:16 |
jelkner | gnome themes, i mean | 23:16 |
jinty | no I really have no idea | 23:17 |
jinty | should be a system for that | 23:17 |
povbot | /svn/commits: * mg committed revision 5236: | 23:17 |
povbot | /svn/commits: getTerms now returns TermRef objects. | 23:17 |
jelkner | what i want to do is to create themes for chemistry classes, math classes, computer science classes, etc... | 23:17 |
jinty | perhaps the first place to start is download a current themes package | 23:18 |
jinty | and see how that works | 23:18 |
jelkner | can we look into that during our 1st hour lesson this sunday? | 23:18 |
jelkner | 9 am? | 23:18 |
jinty | yeah, | 23:18 |
jelkner | cool | 23:18 |
jelkner | that is a rather harmless activity that won't brake anything | 23:19 |
jinty | I'll do some reasearching before then | 23:19 |
jelkner | good way to learn packaging, i hope ;-) | 23:19 |
jelkner | cool | 23:19 |
jelkner | i've got to get back to cando documentation | 23:19 |
jelkner | i'll talk to you sunday morning.... | 23:19 |
* jinty remembers how many times he broke schooltool when no one-was using it | 23:19 | |
jelkner | yeah, lots of folks are using it now | 23:20 |
jinty | sur till then. I'll make a cando update in a little while | 23:20 |
jelkner | great, thanks! | 23:20 |
jinty | I know:) | 23:20 |
*** jelkner has quit IRC | 23:20 | |
povbot | /svn/commits: * mg committed revision 5237: | 23:21 |
povbot | /svn/commits: SchoolToolError.deleteObject can now accept a FooRef object. | 23:21 |
mgedmin | eek, its late here! | 23:21 |
mgedmin | cheers everyone! | 23:21 |
*** mgedmin has quit IRC | 23:21 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!