*** fsufitch has quit IRC | 00:11 | |
*** fsufitch_ has joined #schooltool | 00:12 | |
*** th1a has quit IRC | 00:25 | |
*** alga has quit IRC | 00:46 | |
*** alga has joined #SchoolTool | 01:01 | |
*** fsufitch_ has quit IRC | 01:12 | |
*** th1a has joined #schooltool | 01:55 | |
*** fsufitch has joined #schooltool | 02:14 | |
fsufitch | aelkner, th1a: ping | 02:15 |
---|---|---|
aelkner | fsufitch: ping | 02:40 |
*** th1a has quit IRC | 02:45 | |
*** th1a has joined #schooltool | 02:45 | |
fsufitch | aelkner: ping | 03:52 |
fsufitch | you still there? | 03:52 |
*** povbot has joined #schooltool | 04:24 | |
*** alga has quit IRC | 04:41 | |
*** fsufitch has quit IRC | 05:05 | |
*** fsufitch has joined #schooltool | 05:07 | |
*** th1a_ has joined #schooltool | 05:10 | |
*** th1a has quit IRC | 05:11 | |
*** mgedmin has quit IRC | 05:34 | |
*** th1a_ has quit IRC | 06:03 | |
*** th1a_ has joined #schooltool | 06:04 | |
*** th1a_ has quit IRC | 06:13 | |
aelkner | fsufitch: ping | 08:20 |
*** yvl has joined #schooltool | 08:41 | |
*** alga has joined #SchoolTool | 09:52 | |
*** fsufitch has quit IRC | 13:31 | |
*** jelkner has joined #schooltool | 14:41 | |
*** alga has quit IRC | 14:50 | |
*** alga has joined #SchoolTool | 14:51 | |
*** ignas has joined #schooltool | 14:53 | |
*** replaceafill has joined #schooltool | 15:30 | |
jelkner | good morning! | 15:30 |
ignas | jelkner: hi | 15:48 |
*** fsufitch has joined #schooltool | 16:06 | |
fsufitch | jelkner: hi :) | 16:07 |
fsufitch | aelkner: ping | 16:07 |
fsufitch | i need some info on how to make tjtalk a schooltool module | 16:07 |
fsufitch | i tried to figure out myself yesterday, and i just screwed over a bunch of instances of schooltool and cando | 16:08 |
ignas | fsufitch: hmm | 16:15 |
ignas | fsufitch: tjtalk is a zope3 product? | 16:15 |
fsufitch | ignas: yes | 16:15 |
ignas | fsufitch: as I we don't have an app startup event at this very moment | 16:16 |
fsufitch | ignas: all i'd need is to be able to access the info stored in ST right now such as people | 16:16 |
ignas | i would add an "ADD TJ" view on the application | 16:16 |
ignas | hmm | 16:16 |
fsufitch | okayy... | 16:16 |
fsufitch | but how to get it to recognize tjtalk as a valid object to add? | 16:16 |
ignas | well - everything is a valid object to add to app | 16:17 |
fsufitch | so ISchooltoolApplication can contain everything? | 16:17 |
ignas | what you do in the view, you do app = ISchoolToolApplication(None) | 16:17 |
ignas | and app['unique.stuff.tjtalk'] = TJTalk() | 16:17 |
ignas | or STTJTalk | 16:17 |
fsufitch | "unique.stuff"? | 16:17 |
ignas | well app is a shared namespace | 16:18 |
fsufitch | i know | 16:18 |
ignas | so i prefer people calling stuff "schooltool.gradebook" | 16:18 |
fsufitch | ah | 16:18 |
ignas | "schooltool.lyceum.journal" | 16:18 |
ignas | instead of "journal" | 16:18 |
ignas | because - you never know who else will decide to have a "journal" | 16:18 |
ignas | but tjtalk is pretty unique by itself | 16:19 |
fsufitch | how is cando contained? | 16:19 |
jelkner | hi all | 16:19 |
ignas | cando has no "cando" module | 16:19 |
fsufitch | jelkner: hi | 16:19 |
fsufitch | ignas: ohh | 16:19 |
jelkner | i'm skyping w/replaceafill | 16:19 |
ignas | cando is a set of different modules like competencies and stuff | 16:19 |
fsufitch | i see | 16:19 |
ignas | so when you add the tjtalk module | 16:19 |
ignas | you will want to access it | 16:19 |
ignas | which you can do by just doing localhost:7080/tjtalkid | 16:20 |
ignas | (the id of the container) | 16:20 |
ignas | though - in the perfect case you would add a traversal plugin | 16:20 |
fsufitch | i see | 16:20 |
ignas | that traverses into a user friendly id | 16:20 |
ignas | while hides the actual ID from the user | 16:20 |
ignas | as it is an implementation detail | 16:20 |
fsufitch | ah | 16:21 |
fsufitch | that makes sense | 16:21 |
fsufitch | but right now i just need to get things like login and the internal plumbing taken care of | 16:21 |
ignas | yeah | 16:21 |
ignas | which is why I said "in the perfect case" | 16:21 |
ignas | i know you want to get it working first | 16:21 |
fsufitch | :) | 16:21 |
fsufitch | i'll do it sometime though, just for the sake of good practice | 16:21 |
ignas | so when you have the object in there you can try traversing into it, and doing stuff with it | 16:22 |
fsufitch | yup | 16:22 |
fsufitch | how can i write the view though | 16:22 |
fsufitch | like where can i write it <_< | 16:22 |
ignas | well - i'd do it this way | 16:22 |
fsufitch | and can i access the ZMI, because that would be the easiest way to do it... | 16:22 |
ignas | no you can't do ZMIU | 16:23 |
ignas | ZMI | 16:23 |
fsufitch | darn :-P | 16:23 |
fsufitch | do i have to build that view into schooltool though? | 16:23 |
ignas | let me explain | 16:23 |
fsufitch | okok, i'm listening :) | 16:24 |
ignas | i'd checkout schooltool.stapp2008spring for example | 16:24 |
ignas | copy it (without the .bzr dir) | 16:24 |
ignas | search and replace all the stap2008spring stuff with tjtalk | 16:24 |
ignas | remove "entry_points" thing from setup.py | 16:25 |
ignas | rename src/schooltool/stapp2008 to src/schooltool/tjtalk | 16:25 |
*** th1a has joined #schooltool | 16:25 | |
ignas | open the configure.zcml in src/schooltool/tjtalk | 16:25 |
ignas | remove all that stuff | 16:26 |
ignas | ok - actually, remove the src/schooltool/stapp2008 | 16:26 |
ignas | altogether | 16:26 |
ignas | and just add src/schooltool/tjtalk | 16:26 |
ignas | add __init__.py | 16:26 |
ignas | in there, and configure.zcml | 16:26 |
ignas | in configure.zcml register the view you will add to __init__.py | 16:27 |
ignas | open buildout.cfg in the place where you ran buildout last time | 16:27 |
ignas | in it - in the develop line add path to schooltool.tjtalk thing | 16:27 |
ignas | open instance/school.zcml, and add <include package="schooltool.tjtalk" /> | 16:27 |
ignas | run bin/buildout | 16:28 |
ignas | and try make run | 16:28 |
ignas | and check if you can see the view | 16:28 |
fsufitch | ok | 16:28 |
ignas | kind of hazy, so if you get stuck or don't know for sure - ask | 16:29 |
* th1a will be happy to see schooltool.tjtalk... | 16:29 | |
ignas | what you need is setup.py that is talking about "schooltool.tjtalk" | 16:29 |
fsufitch | ignas: thanks :) | 16:29 |
ignas | and src/schooltool/tjtalk with __init__.py from schooltool.stapp in src/schooltool/ | 16:30 |
ignas | and __init__ and configure.zcml in src/schooltool/tjtalk | 16:30 |
ignas | these are the vital parts of an egg+Zope3 package | 16:30 |
ignas | then you register the egg in buildout.cfg (by adding it to develop, and probably all the places you see "eggs=") | 16:31 |
ignas | you add path to setup.py (without the filename setup.py of course) to develop | 16:31 |
ignas | and add the name of the egg (schooltool.tjtalk) to all the eggs parts | 16:31 |
ignas | then you want to make schooltool aware of your new zope3 package | 16:31 |
ignas | which you do by adding <include /> directive in school.zcml of the default instance | 16:32 |
fsufitch | ignas: there is no instance/school.zcml | 16:36 |
fsufitch | was i supposed to run make after checking out? | 16:36 |
ignas | ahh | 16:38 |
ignas | well - bin/make-schooltool-instance instance/ | 16:38 |
ignas | hmm | 16:39 |
fsufitch | there's no bin ;) | 16:39 |
ignas | where are you looking for bin/ ? | 16:39 |
fsufitch | in the stapp checkout | 16:39 |
ignas | you said - you broke some schooltool instances | 16:39 |
ignas | where did you break them?> | 16:39 |
fsufitch | nono, those are deleted now | 16:39 |
fsufitch | now i did a bzr branch lp:~schooltool-owners/schooltool/schooltool.stapp2008spring tmpstapp | 16:39 |
ignas | what checkouts do you have now? | 16:39 |
ignas | yep | 16:40 |
ignas | you don't do anything in there :) | 16:40 |
fsufitch | just one checkout in tmpstapp of schooltool.stapp2008spring | 16:40 |
fsufitch | oh | 16:40 |
ignas | you find your old stapp | 16:40 |
ignas | where you already had schooltool running | 16:40 |
fsufitch | oh! | 16:40 |
ignas | and register your new package in there | 16:40 |
ignas | the idea is this | 16:40 |
ignas | you can have multiple buildouts | 16:40 |
ignas | so you could have a buildout in there too | 16:40 |
ignas | but it is more convenient to have only one buildout | 16:40 |
ignas | and configure it in some way when working | 16:41 |
ignas | at least to me | 16:41 |
ignas | ... | 16:41 |
fsufitch | yeah i see | 16:41 |
fsufitch | well, buildout detected schooltool.tjtalk so that's good | 16:44 |
fsufitch | now to write that view | 16:44 |
ignas | well - you know how to write a view in zope3? | 16:45 |
ignas | and you know how to register it so it would be in schooltool_actions | 16:45 |
ignas | in schooltool for ISchoolToolApplication? | 16:45 |
ignas | and not an adding view | 16:45 |
ignas | a "do anything view" | 16:45 |
ignas | well - you can add a button "Do the stuff" | 16:46 |
ignas | so you will be able to change the code to delete the tjtalk if you mess it up for example | 16:46 |
fsufitch | well shouldn't i just do a <tal:block condition="view/runstuff" /> ? | 16:46 |
ignas | i would do tal:condition="view/request/UPDATE" | 16:47 |
ignas | and a form with a button "UPDATE" | 16:47 |
ignas | and then add view/doStfu | 16:47 |
ignas | that returns the status | 16:47 |
ignas | and shows it | 16:47 |
ignas | that should kind of work | 16:48 |
ignas | oh and - NEVER DO THAT IN PRODUCTION CODE | 16:48 |
fsufitch | i know :-P | 16:48 |
ignas | most of the stuff i am telling you are quick hacks to get it up ;) | 16:48 |
fsufitch | i can tell :-P | 16:48 |
*** replaceafill has quit IRC | 16:48 | |
ignas | fsufitch: good, because some people can't... | 16:49 |
ignas | ;) | 16:50 |
fsufitch | :) | 16:50 |
fsufitch | where is the ISchooltoolApplication interface? | 16:50 |
fsufitch | i can't find it >.> | 16:50 |
ignas | schooltool.app.interfaces ? | 16:51 |
ignas | where did you expect? | 16:51 |
fsufitch | oh whoops, i was looking for "ISchooltoolApplication" not "ISchoolToolApplication" | 16:51 |
*** alga has quit IRC | 16:52 | |
fsufitch | ignas: do i need to include a layer? | 16:52 |
ignas | IDefaultBrowserLayer will do | 16:53 |
ignas | you will take care of the layers when it will be working | 16:53 |
fsufitch | k | 16:54 |
fsufitch | whee this looks so beautiful, with schooltool being referenced inside of tjtalk ^_^ | 16:57 |
fsufitch | i feel... complete | 16:57 |
ignas | :D | 16:57 |
fsufitch | it's like i know what i'm doing again | 16:58 |
fsufitch | ignas: ConfigurationError: ('Invalid value for', 'package', 'ImportError: Module schooltool has no global tjtalk') | 17:26 |
fsufitch | darn... | 17:26 |
ignas | __init__.py in src/schooltool/ | 17:26 |
ignas | in the tjtalk module? | 17:26 |
fsufitch | it has __import__('pkg_resources').declare_namespace(__name__) in it | 17:26 |
ignas | is the tjtalk module in the list of paths in bin/start-schooltool-instance ? | 17:26 |
ignas | if not - buildout.cfg has no tjtalk egg set... | 17:27 |
fsufitch | hmm | 17:28 |
ignas | lisppaste5: url | 17:28 |
lisppaste5 | To use the lisppaste bot, visit http://paste.lisp.org/new/schooltool and enter your paste. | 17:28 |
ignas | your buildout.cfg please ;) | 17:28 |
fsufitch | class is sortof over <_< | 17:29 |
fsufitch | i'll eb quick | 17:29 |
ignas | well - i'll be gone in 1 hour | 17:29 |
ignas | so you have some time left, but not much ;) | 17:29 |
lisppaste5 | fsufitch pasted "buildout.cfg" at http://paste.lisp.org/display/68630 | 17:29 |
fsufitch | in the eggs for the schooltool.stapp2008spring part? | 17:31 |
ignas | all of the places you see eggs | 17:31 |
ignas | add (in the next line) | 17:31 |
ignas | schooltool.tjtalk | 17:31 |
ignas | only in [scripts] if you are feeling lazy | 17:31 |
ignas | and run bin/buildout | 17:31 |
fsufitch | cool | 17:32 |
fsufitch | i gotta dash to my next class | 17:33 |
fsufitch | cya! :) | 17:33 |
ignas | bye | 17:33 |
fsufitch | i'll get it working! | 17:33 |
*** fsufitch has quit IRC | 17:33 | |
th1a | aelkner: ayt? | 17:45 |
*** jelkner has quit IRC | 17:45 | |
*** replaceafill has joined #schooltool | 18:12 | |
th1a | How was your trip home replaceafill? | 18:13 |
replaceafill | th1a, good no problem at all thank God :) | 18:13 |
*** Aiste has quit IRC | 18:36 | |
*** ignas has quit IRC | 18:45 | |
aelkner | th1a: ayt? | 19:29 |
*** elarson_ has joined #schooltool | 19:33 | |
*** elarson_ has left #schooltool | 19:34 | |
*** rjelliso has joined #schooltool | 19:34 | |
*** rjelliso has left #schooltool | 19:34 | |
th1a | aelkner: ping | 19:41 |
aelkner | th1a: ping | 19:49 |
aelkner | for some reason, my notification sound doesn't always work | 19:49 |
th1a | Mine never works, aelkner. | 19:55 |
aelkner | so the ball's in sla's court as far as getting CAS going | 19:56 |
th1a | Perhaps we should talk on the phone. | 19:56 |
aelkner | ok, ki'll call | 19:56 |
th1a | Give me 10 minutes. | 19:56 |
*** aelkner has quit IRC | 20:01 | |
*** th1a_ has joined #schooltool | 20:26 | |
*** th1a has quit IRC | 20:28 | |
*** aelkner has joined #schooltool | 20:33 | |
*** th1a_ has quit IRC | 20:59 | |
*** th1a_ has joined #schooltool | 21:00 | |
*** ignas has joined #schooltool | 21:23 | |
ignas | th1a_, ayt | 21:23 |
*** jelkner has joined #schooltool | 21:24 | |
ignas | jelkner, hi | 21:24 |
jelkner | hi ignas! | 21:27 |
jelkner | thanks for helping fsufitchi this morning | 21:27 |
jelkner | we should edit that conversation into a small tutorial | 21:28 |
ignas | well - I should add bin/make-schooltool-plugin | 21:30 |
ignas | that would just do it | 21:30 |
ignas | automatically | 21:30 |
ignas | most of it | 21:30 |
ignas | and then add a tutorial on enabling it | 21:30 |
ignas | but - no time... | 21:31 |
ignas | by the way - know any details about CanDo schooltool slowdons? | 21:31 |
ignas | maybe even URL's on things that are extra slow | 21:31 |
*** mgallagh has joined #schooltool | 21:31 | |
*** mattva01 has joined #schooltool | 21:32 | |
*** mgallagh has quit IRC | 21:32 | |
jelkner | ignas: do u want me to write up a blueprint? | 21:38 |
ignas | an email will do | 21:38 |
jelkner | blueprint is better | 21:38 |
jelkner | we can forget about it for now | 21:38 |
ignas | it might be that i will only need like 5 minutes to say what will have to get fixed | 21:38 |
ignas | ahh | 21:38 |
ignas | about tutorial | 21:39 |
jelkner | yes | 21:39 |
ignas | or about slow downs? | 21:39 |
jelkner | i'm talking about make-schooltool-plugin | 21:39 |
jelkner | mattva01 is working on slow downs | 21:39 |
ignas | well - you can write a blueprint if you want, but I am not sure it's worth you spending time on it | 21:39 |
ignas | because it's part of my plan to have | 21:39 |
ignas | make-school-setup | 21:39 |
ignas | make-schooltool-plugin | 21:39 |
jelkner | ok, as you wish | 21:40 |
ignas | next to make-schooltool-instance | 21:40 |
*** mattva01 has quit IRC | 21:40 | |
*** replaceafill has quit IRC | 21:58 | |
*** fsufitch has joined #schooltool | 22:29 | |
fsufitch | ignas: success!! :) | 22:29 |
fsufitch | http://localhost:7080/tjtalk now references my tjtalk instance | 22:29 |
fsufitch | and schooltool.tjtalk is now a schooltool module | 22:30 |
fsufitch | jelkner: ping | 22:30 |
fsufitch | jelkner: when you get back could you go to my project's launchpad page and put your desires for what tjtalk should do into a blueprint? | 22:32 |
fsufitch | aelkner: ping | 22:35 |
aelkner | you rang? | 22:40 |
aelkner | fsufitch: ping | 22:43 |
fsufitch | aelkner: i have to go now, school's over | 22:51 |
fsufitch | i just wanted to warn you that now that i got tjtalk working as a schooltool module, i'll be bothering you a lot about how to use schooltool :) | 22:51 |
aelkner | ok | 22:54 |
*** replaceafill has joined #schooltool | 22:56 | |
*** fsufitch has quit IRC | 22:58 | |
*** jelkner has quit IRC | 23:04 | |
replaceafill | aelkner, you there? | 23:20 |
*** th1a__ has joined #schooltool | 23:24 | |
*** th1a_ has quit IRC | 23:26 | |
aelkner | replaceafill: yes | 23:40 |
replaceafill | aelkner, i'm getting an import error with the cando refactoring 6 branch | 23:41 |
replaceafill | aelkner, from schooltool.requirement.requirement.unwrap.... | 23:42 |
replaceafill | aelkner, i deleted my old eggs and i'm trying again | 23:42 |
aelkner | no, it's not the eggs | 23:43 |
replaceafill | :O | 23:43 |
aelkner | it's the fact that you're using the latest schooltool.gradebook | 23:43 |
aelkner | and cando is not ready for my removal of inheritance | 23:43 |
replaceafill | :O right! | 23:43 |
replaceafill | should i use some version directive or something? | 23:44 |
aelkner | for now, could you just remove all references you find to things like that | 23:44 |
aelkner | if you find for instance | 23:44 |
aelkner | a use of IInheritedRequirement.providedBy() | 23:45 |
aelkner | just assume no and get rid of the reference | 23:45 |
aelkner | also | 23:45 |
aelkner | unwrap is not needed anymore as no requirements are ever wrapped anymore (no inheritance) | 23:45 |
aelkner | so you can just assume unwar(x) = x | 23:46 |
aelkner | unwrap(x) = x | 23:46 |
replaceafill | ok | 23:46 |
aelkner | i think that's all you'll find | 23:46 |
replaceafill | so any reference i find, i change the code | 23:46 |
replaceafill | like the unwrap imports | 23:46 |
aelkner | yeah, could you take a crack at removing all unwraps and IInheritedRequirement.providedBy calls | 23:47 |
aelkner | and make one clear checkin out of it | 23:47 |
aelkner | i think that would be best for us to track it in the future | 23:47 |
aelkner | you could send me the diff before committing if you'd like | 23:47 |
replaceafill | so, i remove all the references and imports until tests pass, right? | 23:48 |
replaceafill | get the diff and send it to u | 23:48 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!