*** povbot has joined #schooltool | 16:27 | |
*** ignas has quit IRC | 16:31 | |
*** ignas has joined #schooltool | 16:48 | |
*** aelkner__ has joined #schooltool | 17:18 | |
aelkner__ | ignas: thanks for the containerviews directive | 17:27 |
---|---|---|
ignas | + is the adding view | 17:27 |
ignas | so i just enabled devmode | 17:27 |
ignas | and used introspector to see what views where registered on IGroupsContainer | 17:27 |
ignas | and on ITier1Container | 17:27 |
ignas | so i saw that IGroupsContainer had the adding view on it | 17:28 |
ignas | registered for + | 17:28 |
ignas | clicked on the zcml file the view was registered in | 17:28 |
ignas | and it showed me the addingViews directive | 17:28 |
ignas | containerViews i mean | 17:28 |
aelkner__ | i'm going to make a note of those trouble-shooting techniques and also do them right now | 17:29 |
th1a | Hm... | 17:51 |
th1a | How hard would it be to move "introspect" from the devmode menu into an action button (when devmode is on). | 17:52 |
th1a | ? | 17:52 |
ignas | not too difficult | 17:55 |
ignas | it was something i wanted to give as a task to andrew | 17:56 |
ignas | when he asked for something more challenging | 17:56 |
ignas | actually the idea was Making devmode menu a menu in the button row | 17:56 |
ignas | which would look better than the menu in the bottom of the screen | 17:56 |
th1a | I don't think devmode needs to be a menu at all. | 17:56 |
th1a | Most of it can go under "Manage." | 17:57 |
th1a | "Introspect" is the only thing dependent on context. | 17:57 |
th1a | And making it a button would also make it much more likely to be used. | 17:57 |
aelkner__ | ignas: would you agree that keeping person ids in objects is a better policy than keeping object references? | 18:11 |
aelkner__ | if a person is removed from the system, having the broken id wouldn't be as bad as a broken reference? | 18:11 |
ignas | yes, which is why i keep either ids or use relationships | 18:13 |
* th1a is wrong again. | 18:13 | |
aelkner__ | cool. so if my value_type is TextLine for my list of recipients, i could use a vocabulary of person ids | 18:14 |
aelkner__ | so the user can choose from a list rather than having to type in the id, right? | 18:15 |
aelkner__ | do you have an example of something similar i could use as a guide? | 18:15 |
ignas | don't know, all the list editing we do is relationship based | 18:19 |
aelkner__ | do you have much experience with custom widgets? | 18:22 |
ignas | nope | 18:22 |
aelkner__ | it's a part of zope that is rather intimidating to me | 18:23 |
aelkner__ | and yet it's something that's always needed | 18:23 |
ignas | do you really need that? | 18:24 |
aelkner__ | so i have a list of textlines | 18:24 |
aelkner__ | but should i force the user to type in the ids | 18:24 |
aelkner__ | it would be nicer to have a drop-down | 18:25 |
aelkner__ | populated with the available ids | 18:25 |
aelkner__ | but then again | 18:25 |
aelkner__ | ... | 18:25 |
aelkner__ | come to think of it | 18:25 |
ignas | multi list editing widget | 18:25 |
ignas | in an add form | 18:25 |
ignas | is a complex problem | 18:25 |
ignas | either you try doing that | 18:25 |
ignas | or just add the thing | 18:25 |
ignas | and add a form for adding people | 18:26 |
ignas | lie "add person to group" view | 18:26 |
aelkner__ | oh yes! the group view is a GREAT example | 18:26 |
ignas | so just do it like that | 18:26 |
aelkner__ | will do, thanks | 18:26 |
*** ignas has quit IRC | 18:28 | |
*** ignas has joined #schooltool | 19:43 | |
*** jelkner has quit IRC | 19:57 | |
aelkner__ | ignas: ayt? | 20:30 |
ignas | yes | 20:30 |
aelkner__ | it's bizarre | 20:31 |
aelkner__ | i'm getting all these errors when running schooltool tests | 20:31 |
aelkner__ | it keeps coming up LinkNotFound | 20:31 |
aelkner__ | for instnace | 20:31 |
aelkner__ | in addPerson, it can't find the New Person' link | 20:31 |
aelkner__ | yet | 20:31 |
ignas | did you svn up everything? | 20:31 |
aelkner__ | when i put a start http server call right before it | 20:32 |
aelkner__ | i svn up'd schooltool this morning after you suggested it | 20:32 |
th1a | That sounds like the bug I had. | 20:32 |
aelkner__ | but the http server calls up a screen that has the New Person link on it | 20:32 |
aelkner__ | oh? | 20:32 |
aelkner__ | is it something in the school.zcml? | 20:33 |
ignas | aelkner__: capitalization? | 20:33 |
aelkner__ | how do you mean? | 20:33 |
ignas | "New Person" vs "New person" | 20:34 |
ignas | for example | 20:34 |
aelkner__ | no, they are bith New Person | 20:34 |
aelkner__ | besides | 20:35 |
aelkner__ | you don't get this problem | 20:35 |
ignas | seems not | 20:35 |
ignas | are you including anything extra (non-schooltool in your "test-all") ? | 20:35 |
aelkner__ | first of all, i couldn't get test-all to work a couple of weeks back even thought test-schooltool worked | 20:36 |
aelkner__ | but now without me doing anything to schooltool | 20:36 |
aelkner__ | test-schooltool fails | 20:36 |
ignas | ahhh | 20:37 |
ignas | sla-buildout ? | 20:37 |
aelkner__ | could you see if you can recreate hte problem using a fresh sla-buildout checkout? | 20:37 |
aelkner__ | yes | 20:37 |
ignas | look at lyceum/buildout.cfg schooltool.stap2008spring/buildout.cfg | 20:38 |
ignas | or schooltool.lyceum.journal/buildout.cfg | 20:38 |
ignas | and fix your buildout.cfg accordingly | 20:38 |
ignas | involves replacing the index line with: | 20:38 |
ignas | extends = http://download.zope.org/zope3.4/versions.cfg | 20:38 |
ignas | versions = versions | 20:38 |
ignas | and addition of: | 20:39 |
ignas | [versions] | 20:39 |
ignas | setuptools = 0.6c8 | 20:39 |
ignas | block to your buildout.cfg to work around a bug in buildout | 20:39 |
ignas | the first one works around the fact that z3c.form packages have find_links messed up and pull in a whole bunch of unstable packages | 20:39 |
aelkner__ | looking | 20:40 |
aelkner__ | is there a reason why i can't bzr up schooltool.lyceum.journal? | 20:41 |
aelkner__ | bzr: ERROR: Invalid http response for http://bazaar.launchpad.net/%7Eignas/schooltool/schooltool.lyceum.journal/.bzr/repository/knits/a0/attendance.txt-20080218123041-ta8xnxcn4wmampty-4.knit: Expected a boundary (V?pINb=kdg3dY8L'4ZE8) line, got '' | 20:41 |
ignas | hmm, no idea | 20:42 |
aelkner__ | i'll try a fresh bzr checkout | 20:42 |
ignas | wait | 20:42 |
ignas | anyway you should bzr branch it from http://staging.schooltool.org/bzr2/schooltool/schooltool.lyceum.journal/trunk | 20:43 |
ignas | or bzr co --lightweight | 20:44 |
ignas | the way it's more convenient to you | 20:44 |
aelkner__ | i did: bzr co --lightweight http://bazaar.launchpad.net/~ignas/schooltool/lyceum | 20:44 |
ignas | yeah, i know, but i am moving all of them to have central repositories on schooltool.org | 20:44 |
aelkner__ | but that was a mistake becuase it created the directory, 'lyceum', not 'schooltoll.lyceum.journal' | 20:45 |
ignas | yeah lyceum is the lyceum branch | 20:45 |
ignas | not the schooltool.lyceum.journal branch | 20:45 |
aelkner__ | how do i get that? | 20:45 |
ignas | bzr co --lightweight http://staging.schooltool.org/bzr2/schooltool/schooltool.lyceum.journal/trunk | 20:48 |
ignas | bzr co --lightweight http://staging.schooltool.org/bzr2/schooltool/schooltool.lyceum.journal/trunk schooltool.lyceum.journal | 20:48 |
ignas | actually | 20:48 |
ignas | lp:~ignas/ should contain my personal branches and is not a very good place to keep central repositories anyway | 20:49 |
aelkner__ | i wish you wouldn't move things around so frequently | 20:50 |
aelkner__ | i'm having trouble getting on with my work with having to change things that don't even relate to what i'm doing | 20:51 |
aelkner__ | ' bzr co --lightweight http://staging.schooltool.org/bzr2/schooltool/schooltool.lyceum.journal/trunk schooltool.lyceum.journal | 20:51 |
aelkner__ | failed | 20:51 |
aelkner__ | bzr: ERROR: Invalid http response for http://staging.schooltool.org/bzr2/schooltool/schooltool.lyceum.journal/.bzr/repository/packs/71f1ff934019ef067e17e22956a982c2.pack: Expected a boundary (TXyz-fP5Lqw3jFjqmB=L) line, got '' | 20:52 |
aelkner__ | i didn't put the ' before the command | 20:52 |
aelkner__ | cut and paste just did that | 20:52 |
ignas | hmm | 20:53 |
ignas | bzr --version ? | 20:53 |
aelkner__ | Bazaar (bzr) 1.3.1rc1 | 20:53 |
aelkner__ | Python interpreter: /usr/bin/python 2.5.1.final.0 | 20:53 |
aelkner__ | Python standard library: /usr/lib/python2.5 | 20:53 |
aelkner__ | bzrlib: /usr/lib/python2.5/site-packages/bzrlib | 20:53 |
aelkner__ | Bazaar configuration: /home/aelkner/.bazaar | 20:53 |
aelkner__ | Bazaar log file: /home/aelkner/.bzr.log | 20:53 |
ignas | oh | 20:53 |
ignas | it's even better than the one that I have ... | 20:53 |
aelkner__ | if you think failures are better... | 20:54 |
ignas | i think you might want to pay a visit to #bzr | 20:54 |
mgedmin | ignas: 1.3.1rc1 appeared today in gutsy-backports | 20:54 |
mgedmin | I have it already | 20:54 |
ignas | hmm, works for me with 1.0.0 | 20:55 |
ignas | so it's a bug in bzr | 20:55 |
aelkner__ | i'm asking in the channel | 20:56 |
*** mgedmin has quit IRC | 20:56 | |
ignas | aelkner__: curl -I schooltool.org ? | 21:05 |
aelkner__ | HTTP/1.1 200 OK | 21:06 |
aelkner__ | Date: Wed, 09 Apr 2008 18:06:14 GMT | 21:06 |
aelkner__ | Server: Zope/(Zope 2.9.8-final, python 2.4.4, linux2) ZServer/1.1 Plone/2.5.5 | 21:06 |
aelkner__ | Accept-Ranges: none | 21:06 |
aelkner__ | Last-Modified: Wed, 09 Apr 2008 18:06:14 GMT | 21:06 |
aelkner__ | Content-Type: text/html | 21:06 |
aelkner__ | Via: 1.1 schooltool.org | 21:06 |
aelkner__ | Content-length: 460 | 21:06 |
aelkner__ | Connection: Keep-Alive | 21:06 |
aelkner__ | Set-Cookie: I18N_LANGUAGE="en"; Path=/ | 21:06 |
ignas | hmm, telnet schooltool.org 80 | 21:06 |
ignas | and then "GET /"+Enter | 21:07 |
aelkner__ | you mean Get / | 21:07 |
aelkner__ | then hit enter? | 21:07 |
ignas | yes | 21:07 |
ignas | GET | 21:07 |
aelkner__ | i got a bunch of html | 21:08 |
ignas | hmm | 21:08 |
ignas | then I really have no idea how to detect it | 21:08 |
ignas | you can do bzr+ssh:// | 21:08 |
ignas | instead of http | 21:08 |
ignas | on schooltool.org | 21:08 |
aelkner__ | what would the full command look like? | 21:09 |
ignas | bzr co --lightweight bzr+ssh://schooltool.org/var/local/bzr/schooltool/schooltool.lyceum.journal/trunk/ | 21:10 |
ignas | bzr co --lightweight bzr+ssh://schooltool.org/var/local/bzr/schooltool/schooltool.lyceum.journal/trunk/ schooltool.lyceum.journal | 21:10 |
aelkner__ | bzr: ERROR: Connection closed: please check connectivity and permissions (and try -Dhpss if further diagnosis is required) | 21:11 |
aelkner__ | i could try -Dhpss | 21:11 |
ignas | whoah | 21:11 |
ignas | can you ssh to schooltool.org ? | 21:12 |
aelkner__ | what user id would i use? aelkner? | 21:12 |
ignas | you are using svn+ssh yes? | 21:13 |
ignas | oh | 21:13 |
aelkner__ | that's what i use for schooltool, schooltool.gradebooik, and sla | 21:13 |
ignas | i think our repository is not read accessible to you :/ | 21:13 |
ignas | using ssh that is | 21:13 |
aelkner__ | i need to be added to some king od list? | 21:14 |
aelkner__ | kind of | 21:14 |
aelkner__ | not king od | 21:14 |
ignas | ok "bzr co --lightweight bzr+ssh://bazaar.launchpad.net/%7Eignas/schooltool/schooltool.lyceum.journal/" | 21:14 |
aelkner__ | do i want to use ~ instead of %7E? | 21:14 |
ignas | you can | 21:15 |
ignas | i think it works both ways | 21:15 |
aelkner__ | that worked! | 21:16 |
aelkner__ | i'll be tucking that command away for future reference | 21:16 |
aelkner__ | and bzr up said Tree up to date, meaning that i can use that | 21:17 |
ignas | yeah, it seems so | 21:17 |
aelkner__ | so, i should change my buildout.cfg to look as much like that one as possible? | 21:18 |
ignas | just the tu parts i have mentioned | 21:18 |
ignas | as you can see now - the index is gone | 21:18 |
aelkner__ | btw, there is no versions part there | 21:18 |
ignas | oh, hmm | 21:19 |
ignas | indeed, it's not up to date apparently :/ | 21:19 |
ignas | let me push an up to date version | 21:19 |
ignas | ok, done, you should wait for 2-5 minutes | 21:20 |
ignas | and bzr up | 21:20 |
ignas | or just try bzr up now | 21:20 |
aelkner__ | trying | 21:20 |
ignas | and if it does nothing - wait and do it again ;) | 21:20 |
aelkner__ | got it | 21:20 |
aelkner__ | is the unzip stuff necessary for me? | 21:21 |
aelkner__ | unzip-true i mean | 21:21 |
ignas | yes, recomended | 21:23 |
ignas | you want these eggs show up in tags | 21:23 |
ignas | and being able to edit the code or add pdb in them is nice too | 21:23 |
aelkner__ | does that have to do with the annoying temp directories that don' | 21:24 |
ignas | no | 21:24 |
aelkner__ | t allow me to step into and list some zope eggs? | 21:24 |
aelkner__ | oops | 21:24 |
ignas | annoying temp directories are fixed by going to | 21:24 |
ignas | .buildout/eggs | 21:24 |
ignas | and removing all the pyc files from all the eggs in there | 21:25 |
aelkner__ | oh | 21:25 |
ignas | it fixes pdb and tracebacks | 21:25 |
aelkner__ | that'll be nice | 21:25 |
ignas | ok, g2 run now | 21:25 |
ignas | see you | 21:25 |
aelkner__ | cya | 21:26 |
*** ignas has quit IRC | 21:44 | |
*** alga has quit IRC | 22:59 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!