povbot | /svn/commits: * srichter committed revision 4859: | 00:20 |
---|---|---|
povbot | /svn/commits: 1. Added a couple more files to ignore on the root. | 00:20 |
povbot | /svn/commits: 2. Import the new testbrowser using the same mechnism Zope 3 itself is | 00:20 |
povbot | /svn/commits: downloaded. This is great, since I now do not have to constantly adjust our version. | 00:20 |
povbot | /svn/commits: Fixed tests to match the new version. | 00:20 |
*** FarcePest has quit IRC | 01:45 | |
*** srichter is now known as hter | 04:19 | |
*** hter is now known as srichter | 04:20 | |
povbot | /svn/commits: * srichter committed revision 4860: | 04:56 |
povbot | /svn/commits: Merge final trunk revisions into the branch: | 04:56 |
povbot | /svn/commits: Merged: 4703, 4706, 4708, 4709 (partial), 4710, 4712 (partial), 4713, 4716, | 04:56 |
povbot | /svn/commits: 4718, 4719, 4720, 4723, 4729, 4732, 4735, 4741, 4745, 4748, 4751, 4753, 4758, 4761, 4762, 4768, 4769, 4770, 4771, 4783, 4787, 4788, 4833, 4835 | 04:56 |
povbot | /svn/commits: Ignored: 4722, 4731, 4746 (already fixed), 4760, 4775 (already fixed), | 04:56 |
povbot | /svn/commits: 4898 (N/A), 4799 (N/A), 4837 (see 4835) | 04:56 |
*** tvon has quit IRC | 08:51 | |
*** tvon has joined #schooltool | 09:16 | |
*** SteveA has joined #schooltool | 09:21 | |
*** azazel has joined #schooltool | 12:44 | |
*** Ricey has quit IRC | 12:44 | |
azazel | hi all! | 12:45 |
azazel | can someone explain me the diff between schooltool and schoolbell? | 12:45 |
*** Ricey has joined #schooltool | 13:10 | |
*** Aiste has joined #schooltool | 13:50 | |
*** th1a has joined #schooltool | 14:10 | |
*** mgedmin has joined #schooltool | 14:14 | |
srichter | mgedmin: I finished merging the trunk changes to the branch | 14:16 |
srichter | I still have some issues with old location references though | 14:17 |
srichter | even though I convert all instances to the new class paths, for some reason the references to those objects do not get updated | 14:18 |
srichter | it is very hard to track down all references systematically (due to circular refs) | 14:18 |
srichter | I'll contact Tim and see what he has to say | 14:19 |
srichter | one way would be to hack the ObejctReader to mark classes that have an old path automatically with _p_changed = True | 14:19 |
mgedmin | hm... a generation script that marks all objects as changed? | 14:20 |
srichter | another would be of course to leave the references around until we have a ZODB solution and remove the deprecation warnings | 14:20 |
srichter | yes | 14:20 |
srichter | that's all that is needed | 14:20 |
mgedmin | I once did some hacking so that I could traverse the graph of object references and set all Persistent objects reachable from a given source | 14:21 |
srichter | uuuh, I would love to see that script | 14:21 |
mgedmin | (I was debugging some Copy & Paste issues that left some shared subobjects between the original and the copy) | 14:21 |
mgedmin | it was a simple hack around locationCopy, IIRC | 14:21 |
srichter | I also looked at fsrecover, but it seems too much work | 14:21 |
mgedmin | srichter, http://paste.plone.org/3475 | 14:23 |
*** ignas has joined #schooltool | 14:24 | |
mgedmin | annotatedLocationCopy(foo) returns a list of (object, id) for all objects (not necessarily Persistent) that are reachable from foo | 14:24 |
mgedmin | id shows whether that object would be cloned or aliased if you did copy & paste -- irrelevant for this use case | 14:24 |
srichter | ok | 14:25 |
srichter | I gotta go | 14:25 |
srichter | I will be back in about 3 hours | 14:25 |
srichter | th1a: before I leave: I have not read the entire UI doc yet, but we also have nested menus now in Zope 3, so we might be able to utilize them | 15:07 |
th1a | Quick question: Does DTML actual work in Zope 3.1? | 15:08 |
th1a | actually | 15:08 |
srichter | it should | 15:08 |
mgedmin | (even if it does, we ought to pretend it doesn't) | 15:08 |
srichter | however, not for views | 15:09 |
srichter | so if someone asks whether they can use DTML to extend ST, we say no :-) | 15:09 |
th1a | Well, we could use DTML to make non-XML templates (i.e., CSV). | 15:11 |
th1a | But we don't need to get into it now. | 15:11 |
*** bskahan has joined #schooltool | 15:11 | |
th1a | bskahan: Did you see the email I sent? | 15:12 |
srichter | th1a: the UI doc is a good start | 15:13 |
th1a | I'm not sure how it translates into Zope 3 jargon: views, skins, layers, adapters, etc. | 15:13 |
* srichter would really like to start working with UML for this stuff | 15:13 | |
mgedmin | I'm not sure DTML would be a considerably better fit than ZPT for CSV files... | 15:16 |
mgedmin | "<tal:x replace="structure var1"/>", "<tal:x replace="structure var2"/>" | 15:16 |
mgedmin | versus | 15:16 |
th1a | I was under the impression that you can't use ZPT for non-XML, but perhaps that is just something I imagined. | 15:17 |
mgedmin | "&dtml.howdoidsablexmlquoting-var1;", "&dtml.howdoidisablexmlquoting-var2;" | 15:17 |
mgedmin | you can use ZPT for anything (ok, not binary stuff), although that might not be the best option | 15:18 |
mgedmin | you can disable XML quoting by using 'structure' where necessary, and you can get rid of all tags | 15:18 |
mgedmin | replacing XML quoting with something else might be more difficult | 15:18 |
mgedmin | <tal:x replace="structure python:csv_quote(var1)"/> | 15:19 |
mgedmin | or maybe <tal:x replace="structure var1/quote:csv"/> | 15:19 |
mgedmin | a custom templating mini-language for CSV migh work best | 15:19 |
th1a | I was thinking that as well. Regardless, I don't think we're going to deal with that question in the short term. | 15:20 |
bskahan | th1a: just looking at it now | 15:25 |
bskahan | I'm wondering what hardware paul saitta is using that has performance problems | 15:26 |
th1a | Do we have some chunky .ics files for testing? | 15:26 |
bskahan | can probably find them via google | 15:27 |
th1a | We need to start generating serious sample data. | 15:28 |
th1a | That's at the top of the list. | 15:28 |
bskahan | th1a: principal_* views would be abstract views not tied directly to a single content object (like a 'dashboard' view), vs object_* views would be various views on a single object (like a person) that show different information to different classes of principals? | 15:38 |
azazel | i'm trying to understand if schooltool can be a good base for developing a people and resource management app for a customerwith a core businness other than courses | 15:38 |
th1a | oof. | 15:39 |
azazel | any hint? | 15:39 |
bskahan | azazel: probably schoolbell would. its a good calendar application that you could add CRM features to | 15:39 |
th1a | azazel: Do you have much Python & Zope experience? | 15:40 |
azazel | th1a: yes, expecially Zope 2.x and plone experience | 15:40 |
th1a | OK. that's a good start. | 15:41 |
azazel | my customer has a vast (and good) database of resources in an existing postgres db, any idea if i can reuse it directly with an orm (like sqlobject?) | 15:43 |
th1a | I don't really know. I think there are adapters for postgres for Zope 3, but that's a bit out of my range. | 15:44 |
bskahan | azazel: there isn't anything built into schoolbell to handle SQL backends, but the idea has been discussed and Marius seemed to think it would be possible for someone to develop | 15:44 |
th1a | bskahan: object_* views don't change based on who is viewing them, except by permissions. | 15:45 |
th1a | i.e., some people can't see them, or all of them. | 15:45 |
bskahan | the object_* views are essentially what we have now, correct? | 15:45 |
azazel | bskahan: thanks, | 15:46 |
bskahan | azazel: no problem | 15:46 |
th1a | Well, we have the equivalent of both, really. | 15:46 |
th1a | If you think of a person's calendar view as a principal view. | 15:46 |
th1a | But in this case, all the principals get the same view. | 15:46 |
azazel | just another question is it possible to set the view permission an a cal to a person but not the write permission? | 15:46 |
th1a | Yes... | 15:47 |
th1a | Although there is a bug in the new release that is causing the permissions to go wonky. | 15:47 |
th1a | I'd like to get a bugfix release out today... | 15:47 |
th1a | I don't know where gintas is. | 15:48 |
azazel | th1a: from the standard schooltool interface or from the zmi? | 15:48 |
th1a | ZMI? | 15:48 |
th1a | I'm talking about the SchoolTool web interface. | 15:49 |
azazel | i've found it, thanks... setup access | 15:49 |
th1a | bskahan: Are you busy today? | 15:53 |
bskahan | th1a: I'm sorry, I'm not quite following what the principal vs. object view is. Why is the calendar a principal view | 15:53 |
bskahan | for the middle of the day | 15:53 |
bskahan | I'll be available more in the evening, but that's the middle of the night for you | 15:53 |
th1a | Well, YOUR calendar is a principal view, in that you can modify it to overlay other calendars & create events. | 15:54 |
th1a | I guess other object calendars would become read only in this model. | 15:54 |
th1a | Probably. | 15:54 |
bskahan | what do you need? | 15:54 |
th1a | I have been reminded that gintas is in Denmark. | 15:54 |
th1a | I *really* want to put an updated tarball on the site today. | 15:55 |
th1a | Because this permissions bug is a real problem. | 15:55 |
th1a | There are just two zcml files to switch. | 15:55 |
th1a | And everyone here is a bit stressed and busy. | 15:55 |
bskahan | I''m pretty swamped until 6, I can do it then | 15:56 |
th1a | I should be able to do it before then. | 15:56 |
bskahan | sorry, if I had done a release previously I'd say I'd do it this morning, but I'm not entirely sure of everything that's involved | 15:58 |
bskahan | and I don't want to rush it | 15:58 |
th1a | NP. | 15:59 |
th1a | As manager of the project, I have the most leeway to do it sloppily. | 15:59 |
th1a | If you know what I mean. | 15:59 |
bskahan | heh | 16:00 |
*** ignas has quit IRC | 16:01 | |
bskahan | not "do it sloppily", you can "prioritize time constraints" ;) | 16:01 |
*** ignas has joined #schooltool | 16:26 | |
mgedmin | th1a, I can do an updated tarball, if you give me the original tarball and the two new zcml files | 16:34 |
th1a | I'm doing it right now... | 16:35 |
th1a | http://source.schooltool.org/svn/branches/schoolbell-1.2.x/src/schoolbell/app/configure.zcml | 16:44 |
th1a | http://source.schooltool.org/svn/branches/schoolbell-1.2.x/src/schoolbell/app/configure.zcml | 16:45 |
th1a | http://source.schooltool.org/svn/branches/schooltool-0.11.x/src/schooltool/configure.zcml/svn/branches/schooltool-0.11.x/src/schooltool/configure.zcml | 16:45 |
th1a | Ach. | 16:45 |
th1a | http://source.schooltool.org/svn/branches/schooltool-0.11.x/src/schooltool/configure.zcml | 16:46 |
mgedmin | uhh | 16:46 |
th1a | There are two files. | 16:47 |
th1a | The first one I sent twice. | 16:47 |
th1a | Let me message you directly. | 16:47 |
mgedmin | I'll look into it after lunch | 16:49 |
srichter | mgedmin: I don't understand how your code takes care of all the references | 17:44 |
srichter | it seems very specific to your use case | 17:44 |
srichter | update: Jim thinks that a straightforward change in ZODB can fix the problem | 18:05 |
*** eldafar has joined #schooltool | 18:08 | |
eldafar | anyone alive? | 18:09 |
*** eldafar has quit IRC | 18:10 | |
*** eldafar has joined #schooltool | 18:11 | |
*** eldafar has quit IRC | 18:11 | |
*** eldafar has joined #schooltool | 18:12 | |
th1a | Back from lunch. | 18:44 |
eldafar | hey | 18:49 |
eldafar | do you know off the top of your head how to set cookies in zope3? | 18:49 |
th1a | The amount of specific technical details about Zope3 I keep on top of my head is still quite small. | 18:50 |
mgedmin | srichter, I didn't know that references to a persistent object stored the class name | 18:57 |
mgedmin | I assumed references only stored the OID | 18:57 |
srichter | no | 18:58 |
srichter | did you follow the #zope3-dev discussion | 18:58 |
srichter | I have a solution to the problem now, since we have a file storage | 18:59 |
mgedmin | I just read it | 18:59 |
srichter | I am simply going through all oids and _p_changed = True all objects | 18:59 |
srichter | that should take care of it | 18:59 |
mgedmin | ok | 18:59 |
srichter | mgedmin: I would prefer if the translations are not retrieved for every "make run" | 19:04 |
srichter | it makes startup much slower than it has to be | 19:04 |
mgedmin | "make run" is a silly shortcut for developers | 19:07 |
mgedmin | run "make" once, then run ./s*-server.py directly | 19:07 |
*** th1a has quit IRC | 19:36 | |
*** gintas has joined #schooltool | 19:37 | |
mgedmin | hi, gintas! | 19:38 |
*** alga has joined #SchoolTool | 19:38 | |
gintas | hi mgedmin | 19:44 |
mgedmin | how's internet down there? | 19:44 |
gintas | pretty good | 19:45 |
gintas | ubuntu updates flew in at 700K/s | 19:45 |
gintas | but that's from a Danish mirror of course | 19:45 |
mgedmin | how hard is to make a schooltool release? | 19:45 |
mgedmin | tom wants a bugfix release that contains those two zcml permission changes | 19:45 |
mgedmin | I looked at it, and I couldn't find a release process document or anything | 19:46 |
gintas | it's no big deal, hopefully | 19:46 |
gintas | has the fix been backported? | 19:46 |
mgedmin | even the debian/ subdirs are gone | 19:46 |
mgedmin | AFAIU the fix is in both ST and SB release branches | 19:46 |
gintas | the debian subdirectories are in a different svn directory | 19:46 |
gintas | because SB/ST is not a native Debian project | 19:46 |
ignas | gintas, yes the fix was backported | 19:46 |
mgedmin | it'd be nice to tag the current release branches and release them as SB 1.2.1 and ST 0.11.1 | 19:46 |
mgedmin | afaiu | 19:46 |
mgedmin | tom just left | 19:47 |
gintas | I can probably do that | 19:47 |
gintas | actually packages are built automatically, except Windows ones | 19:47 |
mgedmin | I hesitate to ask you, but if you could do it, tom would be very happy | 19:47 |
mgedmin | I do not think he wants a new Windows package | 19:48 |
gintas | I think I should be able to upload everything today | 19:48 |
gintas | do you know anything about i18n and rosetta? | 19:49 |
mgedmin | little | 19:49 |
mgedmin | there's a makefile rule that downloads and merges rosetta translations | 19:49 |
gintas | I did not do any special things for the previous release | 19:49 |
mgedmin | jinty wrote that | 19:49 |
gintas | perhaps I should have run that rule | 19:49 |
gintas | that would be nice to figure out before the release, so that we could add some possibly new translations in addition to the bugfix | 19:50 |
gintas | is jinty around? | 19:50 |
mgedmin | sadly no | 19:51 |
mgedmin | he's away this week | 19:51 |
mgedmin | in ivija we have a script that does a release | 19:52 |
gintas | I have a similar script, it's in the Debian packaging directory | 19:52 |
mgedmin | is it completely automated? | 19:53 |
mgedmin | does it do everything? | 19:53 |
gintas | most things, yes | 19:54 |
gintas | it exports SB & ST, and builds the tarballs and Debian packages | 19:54 |
mgedmin | but it doesn't create tags in svn or change version numbers in __init__ files? | 19:54 |
gintas | no | 19:55 |
gintas | that's fairly easy to do; and I wanted the script not to affect the repository | 19:55 |
gintas | OTOH that should be easy to code | 19:55 |
mgedmin | the only problem is that when you and jinty are both away, the rest of us do not know how to make a release | 19:56 |
mgedmin | and be sure not to miss any steps | 19:56 |
gintas | hmm, I thought we had some document somewhere | 19:56 |
gintas | I'll see to this | 19:57 |
*** azazel_ has joined #schooltool | 19:57 | |
azazel_ | hi all | 19:57 |
azazel_ | groups in schoolbell are used to group :-) both people and resources | 19:59 |
azazel_ | ? | 19:59 |
gintas | the latest SchoolBell version does not support adding resources to groups, AFAIK | 20:00 |
gintas | ouch, the 'get-rosetta-translations' makefile rule does not work any more, it shows a heap of 404 errors | 20:06 |
gintas | the Rosetta website is confusing for me | 20:10 |
gintas | in fact, I can't find any SchoolBell translations on Rosetta at all | 20:17 |
*** lunarosity has joined #schooltool | 20:18 | |
*** hwo4 has quit IRC | 20:36 | |
srichter | mgedmin: based on the outcome at #zope3-dev, what do we want to do? | 21:13 |
mgedmin | I would like to understand what the problem is | 21:14 |
srichter | so I did P1.N1.P2 (P -> persistent; N -> non-persistent) | 21:15 |
srichter | if I move the references, then P2 gets not updated when doing P1._p_changed = True | 21:16 |
srichter | but the iterator should get P2 too, huh? | 21:16 |
mgedmin | yes | 21:16 |
mgedmin | did you add a debug print and notice that both P1 and P2 are returned by the iterator? | 21:16 |
srichter | I am trying to do that next | 21:17 |
srichter | I have not updated using the iterator yet | 21:17 |
*** eldafar has quit IRC | 21:19 | |
*** azazel_ has quit IRC | 21:39 | |
srichter | mgedmin: note that you used p_changed instead of _p_changed | 21:41 |
mgedmin | oops | 21:41 |
srichter | aha | 21:41 |
srichter | and then it fails | 21:41 |
mgedmin | yep | 21:41 |
mgedmin | it works if I do obj._p_activate(); obj._p_changed = True | 21:43 |
mgedmin | but not if I try to do iteration over records | 21:44 |
mgedmin | works now | 21:45 |
mgedmin | my iteration loop is this: | 21:45 |
mgedmin | record = ('\x00\x00\x00\x00\x00\x00\x00\x00',) | 21:45 |
mgedmin | while True: | 21:45 |
mgedmin | obj = conn.get(record[0]) | 21:45 |
mgedmin | obj._p_activate() | 21:45 |
mgedmin | obj._p_changed = True | 21:45 |
mgedmin | if record[-1] is None: | 21:45 |
mgedmin | break | 21:45 |
mgedmin | record = conn._storage.record_iternext(record[-1]) | 21:45 |
mgedmin | I'd be surprised if it were correct, though | 21:46 |
srichter | that should work | 21:46 |
srichter | just print the record | 21:46 |
mgedmin | if I comment out the _p_activate() line, the code breaks | 21:46 |
srichter | if you get three entries you are good to go | 21:46 |
mgedmin | I get | 21:47 |
mgedmin | $ ./run | 21:47 |
mgedmin | <class 'new.A'> | 21:47 |
mgedmin | <class 'new.B'> | 21:47 |
mgedmin | <class 'new.C'> | 21:47 |
mgedmin | when I use the loop I pasted here in zodb-test2/migrate.py | 21:47 |
mgedmin | instead of mucking with conn.root() | 21:47 |
srichter | really? | 21:47 |
srichter | the first entry should be conn.root() | 21:47 |
mgedmin | wanna another tarball? | 21:47 |
* mgedmin nods | 21:48 | |
srichter | just paste all of test2/migrate | 21:48 |
mgedmin | srichter, http://paste.plone.org/3492 | 21:48 |
srichter | it works! | 21:49 |
srichter | I just tried _p_activate() in the evolution script | 21:49 |
srichter | mgedmin: ok, everything is great now :-) | 22:20 |
*** Aiste has quit IRC | 22:20 | |
*** alga has quit IRC | 22:21 | |
mgedmin | yay | 22:22 |
*** mgedmin has quit IRC | 22:22 | |
*** ignas has quit IRC | 22:28 | |
povbot | /svn/commits: * srichter committed revision 4861: | 22:34 |
povbot | /svn/commits: Finally got the evolution script fixed. Both, Marius and I, learned a lot about the ZODB. But all is fixed now and look how simple the code is!!! | 22:34 |
povbot | /svn/commits: * gintas committed revision 4862: | 22:42 |
povbot | /svn/commits: Tagging SchoolBell 1.2.1 | 22:42 |
povbot | /svn/commits: * gintas committed revision 4863: | 22:42 |
povbot | /svn/commits: Tagging SchoolTool 0.11.1 | 22:42 |
povbot | /svn/commits: * gintas committed revision 4864: | 22:51 |
povbot | /svn/commits: Set SchoolBell version number in release | 22:51 |
povbot | /svn/commits: * gintas committed revision 4865: | 22:52 |
povbot | /svn/commits: Set SchoolTool version number in release | 22:52 |
povbot | /svn/commits: * gintas committed revision 4866: | 22:55 |
povbot | /svn/commits: Set SchoolBell version number in release | 22:55 |
povbot | /svn/commits: * gintas committed revision 4867: | 22:55 |
povbot | /svn/commits: Set SchoolTool version number in release | 22:55 |
povbot | /svn/commits: * gintas committed revision 4868: | 22:57 |
povbot | /svn/commits: Bound SchoolTool 0.11.1 to SchoolBell 1.2.1 | 22:57 |
*** bskahan has quit IRC | 23:25 | |
*** admp has joined #schooltool | 23:26 | |
povbot | /svn/commits: * gintas committed revision 4869: | 23:58 |
povbot | /svn/commits: Revision 4841 directly backported revision 4616 from trunk, which brought in a dependency of WFMC, which we do not have in the tarball. | 23:58 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!