*** pcardune has quit IRC | 00:03 | |
*** pcardune has joined #schooltool | 00:18 | |
pcardune | wjohnsto: I am now | 00:18 |
---|---|---|
wjohnsto | ok | 00:19 |
wjohnsto | I have a quick question | 00:19 |
pcardune | shoot | 00:19 |
wjohnsto | I have setup my zope site to include everything, including courses | 00:19 |
wjohnsto | however, I cannot get my "addCourse" function to work | 00:20 |
wjohnsto | it should work the same as everything else | 00:20 |
wjohnsto | however, when I add it I get an error: | 00:20 |
wjohnsto | ForbiddenAttribute: ('title', <Course "">) | 00:20 |
pcardune | that means you do not have the zcml configuration setup correctly | 00:21 |
wjohnsto | ok | 00:21 |
pcardune | did you remember to register the Course class in zcml? | 00:21 |
pcardune | i.e. <class class="something.something.Course"> etc. | 00:21 |
wjohnsto | I shall check | 00:22 |
wjohnsto | ok I registered it as sepg.browser.CourseView | 00:22 |
wjohnsto | which is an actual class | 00:22 |
wjohnsto | so maybe there's something wrong there | 00:23 |
wjohnsto | if self.request.get("SAVE"): | 00:23 |
wjohnsto | context = zope.security.proxy.removeSecurityProxy(self.context) | 00:23 |
wjohnsto | context.title = self.request.get("Title") | 00:23 |
pcardune | CourseView is just the class that works with a form right? | 00:25 |
pcardune | you need to fix the permission on the Course content object | 00:25 |
wjohnsto | ok | 00:25 |
wjohnsto | let's see if this works | 00:26 |
wjohnsto | so many little things to keep track of :-\ | 00:26 |
wjohnsto | sweet | 00:27 |
wjohnsto | it works now | 00:27 |
pcardune | The multiple containers thing worked out too then right? | 00:28 |
wjohnsto | yeah | 00:29 |
wjohnsto | if you want to check it out | 00:29 |
wjohnsto | http://maddog.yhspatriot.net:8120 | 00:29 |
* pcardune looks | 00:29 | |
pcardune | cool | 00:29 |
wjohnsto | simple for now | 00:29 |
wjohnsto | I already have the code working for High and Middle Schools | 00:30 |
wjohnsto | so I can implement that | 00:30 |
pcardune | good | 00:30 |
wjohnsto | and then I'll be ready to make the next big step | 00:30 |
pcardune | what is the next big step? | 00:30 |
wjohnsto | well | 00:31 |
wjohnsto | the SEPG program does things like | 00:31 |
wjohnsto | link to course desciptions and whatnot | 00:31 |
wjohnsto | and other little cool things | 00:31 |
pcardune | well course descriptions should just be stored with the course itself | 00:32 |
pcardune | so that is pretty trivial | 00:32 |
wjohnsto | yeah | 00:32 |
pcardune | I think you next big task is population the database | 00:32 |
wjohnsto | ok | 00:32 |
pcardune | everything is stored in xml files right? | 00:32 |
wjohnsto | yeah | 00:33 |
wjohnsto | well, one xml file | 00:33 |
pcardune | right | 00:33 |
pcardune | so you will have to parse the xml file to get the data out of it, and store that data into zope | 00:33 |
wjohnsto | ok | 00:33 |
pcardune | you should talk to will dickerson about parsing xml files | 00:33 |
wjohnsto | ok | 00:33 |
wjohnsto | maybe that's something to do on the 19th | 00:34 |
pcardune | I believe he has been doing a fair amount of work with that lately | 00:34 |
wjohnsto | when we have our next sprint | 00:34 |
pcardune | that would be good | 00:34 |
wjohnsto | ok, sounds good | 00:34 |
wjohnsto | thanks for the help | 00:34 |
pcardune | my pleasure | 00:34 |
pcardune | wjohnsto: oh and one more thing, I would create a root level object (which should be a container) that specifically contains divisions of interest | 00:38 |
wjohnsto | ok | 00:39 |
pcardune | Call it like SEPG | 00:39 |
pcardune | then people can just add SEPG | 00:39 |
wjohnsto | yeah | 00:39 |
pcardune | and form there they get anything SEPG related on *only* SEPG related things. | 00:39 |
wjohnsto | so | 00:39 |
wjohnsto | it wouldn't be like a normal contact container? | 00:39 |
wjohnsto | because it would be automatic? | 00:40 |
wjohnsto | like a package | 00:40 |
pcardune | form=from and on=and in my last statement | 00:41 |
pcardune | I guess I just want a centralized location of information | 00:41 |
wjohnsto | or would it be just a regular container that contains Division of Interest | 00:41 |
wjohnsto | so that people know what they are doing | 00:41 |
pcardune | so you will also have a DivisionOfInterest Container, and a schools container for example | 00:41 |
pcardune | and both of those containers should then be contained in a SEPGApplication object | 00:42 |
pcardune | something to that effect | 00:42 |
wjohnsto | ok | 00:42 |
pcardune | I'd be happy to work with you on that this weekend if you have any questions about it | 00:42 |
wjohnsto | so it's basically just adding an SEPG container type | 00:42 |
wjohnsto | I don't have a lot of time this weekend because I'm taking SATII's | 00:43 |
pcardune | ooh | 00:43 |
wjohnsto | but perhaps brittney will be around, who knows | 00:43 |
pcardune | well nevermind then, you should focus on SAT || | 00:43 |
pcardune | yes, I could work with brittney too and she can fill you in | 00:43 |
wjohnsto | ok, we'll see | 00:43 |
wjohnsto | once again, thanks | 00:43 |
pcardune | but yeah, it's just adding a SEPG container type | 00:43 |
wjohnsto | yeah | 00:44 |
wjohnsto | I understand now | 00:44 |
pcardune | your welcome | 00:44 |
wjohnsto | so that things are a little more clear | 00:44 |
pcardune | yeah | 00:44 |
wjohnsto | ok | 00:44 |
pcardune | wjohnsto: one more bit of code review: | 01:05 |
pcardune | I'd rename High_School to HighSchool | 01:05 |
pcardune | and you might want to reevaluate your decision to have a separate IHighSchool and IMiddleSchool interface | 01:05 |
pcardune | as they seem to do the exact same thing | 01:06 |
ignas | less parts, more functionality ;) | 01:15 |
pcardune | in Soviet Russia... I Interface U? | 01:16 |
ignas | IHaveNoIdea | 01:17 |
pcardune | in Soviet Russia... adapters interface you!? | 01:19 |
*** jfroche has joined #schooltool | 01:20 | |
wjohnsto | ok | 01:21 |
*** jinty has left #schooltool | 01:52 | |
*** jinty has quit IRC | 01:52 | |
*** pcardune has quit IRC | 02:20 | |
*** didymo has joined #schooltool | 02:34 | |
*** pcardune has joined #schooltool | 02:41 | |
wjohnsto | pcardune: ayt | 02:52 |
pcardune | wjohnsto: yes | 02:53 |
wjohnsto | cool | 02:54 |
wjohnsto | I made a few adjustments | 02:54 |
wjohnsto | like you said | 02:54 |
wjohnsto | http://maddog.yhspatriot.net:8120 | 02:55 |
wjohnsto | [05:29] * pcardune looks | 02:55 |
pcardune | oh, that looks good | 02:56 |
wjohnsto | ok | 02:56 |
pcardune | I would even go as far as making a container for schools (SchoolContainer) | 02:56 |
pcardune | and a container for divisions of interest | 02:56 |
pcardune | and automatically add these to the SEPG object | 02:56 |
wjohnsto | ok | 02:56 |
wjohnsto | how would I set it to automatically add all those things? | 02:57 |
pcardune | like in SEPG.__init__, you would have self['division'] = DivisionsOfInterestContainer | 02:57 |
pcardune | and self['schools'] = SchoolContainer() | 02:57 |
wjohnsto | ok | 02:58 |
wjohnsto | so what I could do | 02:58 |
wjohnsto | */what I'm going to do | 02:58 |
wjohnsto | is add another automatic division and school container | 02:59 |
wjohnsto | possibly two automatic school containers for highschool and middle school | 02:59 |
wjohnsto | right now I combined highschool and middle_school into school, because everything is exactly the same | 03:00 |
pcardune | yes, you could do that | 03:00 |
pcardune | that would be good | 03:00 |
wjohnsto | ok | 03:00 |
wjohnsto | sounds good then | 03:00 |
wjohnsto | I'll work on that | 03:01 |
wjohnsto | pcardune: I am not really understanding the automatic division thing | 03:27 |
wjohnsto | I put the commands in the __init__.py in the sepg folder? | 03:27 |
pcardune | no no | 03:28 |
pcardune | in the __init__ method of the SEPG object | 03:28 |
wjohnsto | ok | 03:28 |
wjohnsto | in the browser.py | 03:28 |
wjohnsto | it all makes sense now | 03:28 |
pcardune | you will also want to put super(SEPGClass, self).__init__() | 03:28 |
pcardune | no, not in the browser.py file | 03:28 |
pcardune | in the SEPG content object | 03:29 |
pcardune | like: | 03:29 |
pcardune | class SEPG(Contaienr): | 03:29 |
pcardune | implements(bla blah blah) | 03:29 |
pcardune | def __init__(self): | 03:29 |
pcardune | super(SEPG, self).__init__() | 03:29 |
pcardune | self['divisions']=DivisionsContainer() | 03:30 |
wjohnsto | oik' | 03:31 |
wjohnsto | **ok | 03:31 |
wjohnsto | so I don't even need to do the addmenuitem stuff for SEPG, DivisionContainer, or SchoolContainer? | 03:33 |
wjohnsto | in the configure.zcml | 03:34 |
wjohnsto | pcardune: ;) | 03:34 |
pcardune | for SEPG yes, for the others no | 03:34 |
wjohnsto | ok | 03:34 |
wjohnsto | well the SEPG still has to be added manually | 03:35 |
wjohnsto | correct? | 03:35 |
wjohnsto | because they might not want SEPG on their server | 03:35 |
pcardune | right | 03:35 |
wjohnsto | do I need an addform? | 03:36 |
wjohnsto | I should only need a page | 03:36 |
pcardune | no, you'll need an addform for SEPG | 03:36 |
wjohnsto | ok | 03:36 |
pcardune | it is just like adding any other type of content object | 03:36 |
wjohnsto | ok I should have it working now | 03:38 |
wjohnsto | pcardune: how would I set it so that when I add the SEPG package, it doesn't prompt for a title for SEPG but instead sets the title automatically? | 03:44 |
*** jinty has joined #schooltool | 03:44 | |
wjohnsto | wait | 03:45 |
pcardune | i'd say leave the title | 03:45 |
wjohnsto | ok | 03:45 |
wjohnsto | I can just do "self.title=u'SEPG'" in the __init__ right? | 03:45 |
pcardune | you could do that too | 03:46 |
* pcardune goes to dinner | 03:47 | |
*** ignas has quit IRC | 03:57 | |
*** jfroche has quit IRC | 04:04 | |
*** wjohnsto has quit IRC | 04:58 | |
*** pcardune has quit IRC | 05:01 | |
*** alga has quit IRC | 05:12 | |
*** jinty has quit IRC | 05:14 | |
*** jinty has joined #schooltool | 05:24 | |
*** jinty has quit IRC | 05:24 | |
*** pcardune has joined #schooltool | 06:25 | |
*** tdoggette has quit IRC | 06:59 | |
*** tdoggette has joined #schooltool | 07:23 | |
*** pcardune has quit IRC | 07:59 | |
*** lisppaste5 has quit IRC | 08:59 | |
*** tiredbones has joined #schooltool | 09:39 | |
*** wrobel has joined #schooltool | 09:47 | |
*** Fujitsu has quit IRC | 10:03 | |
*** pcardune has joined #schooltool | 10:23 | |
*** josemrsantos has joined #schooltool | 12:17 | |
*** josemrsantos has left #schooltool | 12:19 | |
*** Aiste has quit IRC | 12:43 | |
*** pcardune has quit IRC | 13:00 | |
*** didymo has quit IRC | 13:44 | |
*** ignas has joined #schooltool | 13:45 | |
*** alga has joined #SchoolTool | 14:42 | |
*** Aiste has joined #schooltool | 14:57 | |
*** xbeanx has joined #schooltool | 15:21 | |
*** mgedmin has joined #schooltool | 15:25 | |
*** lisppaste5 has joined #schooltool | 15:32 | |
*** jelkner has joined #schooltool | 15:35 | |
*** alga_ has joined #SchoolTool | 17:07 | |
*** Fujitsu has joined #schooltool | 17:09 | |
*** jinty has joined #schooltool | 17:21 | |
*** alga has quit IRC | 17:25 | |
*** Aiste_ has joined #schooltool | 17:31 | |
*** Aiste has quit IRC | 17:32 | |
*** mgedmin has quit IRC | 17:42 | |
*** mgedmin has joined #schooltool | 17:44 | |
*** Aiste_ is now known as Aiste | 17:50 | |
*** jinty has quit IRC | 17:50 | |
*** erchache has joined #schooltool | 18:33 | |
erchache | hi | 18:33 |
erchache | email from jinty is: jinty@web.de right? | 18:33 |
erchache | he is on sevilla | 18:33 |
erchache | and call me | 18:33 |
erchache | but i cant locate him by phone and dont know which email use normally | 18:34 |
erchache | he active voice mail....arrrgghhh | 18:41 |
*** ignas has quit IRC | 18:42 | |
*** CrippsFX is now known as jperry | 18:48 | |
*** jperry is now known as CrippsFX | 18:48 | |
*** erchache has left #schooltool | 19:06 | |
*** tiredbones has quit IRC | 19:58 | |
*** tiredbones has joined #schooltool | 20:12 | |
*** tiredbones_ has joined #schooltool | 20:14 | |
*** CrippsFX has quit IRC | 20:17 | |
*** tiredbones has quit IRC | 20:22 | |
*** Aiste_ has joined #schooltool | 20:24 | |
*** CrippsFX has joined #schooltool | 20:26 | |
*** Aiste has quit IRC | 20:26 | |
*** Aiste_ is now known as Aiste | 20:26 | |
*** CrippsFX has quit IRC | 20:26 | |
*** CrippsFX has joined #schooltool | 20:27 | |
*** kitblake has left #schooltool | 20:44 | |
*** Aiste has quit IRC | 21:02 | |
*** pcardune has joined #schooltool | 21:03 | |
*** pcardune has quit IRC | 21:13 | |
*** ignas has joined #schooltool | 21:14 | |
*** ignas has quit IRC | 21:18 | |
*** mgedmin has quit IRC | 21:56 | |
Lumiere | hi jelkner | 22:03 |
*** pcardune has joined #schooltool | 22:25 | |
*** pcardune has quit IRC | 22:26 | |
*** pcardune has joined #schooltool | 22:57 | |
*** pcardune has quit IRC | 22:59 | |
*** jfroche has joined #schooltool | 23:05 | |
*** alga_ has quit IRC | 23:10 | |
*** pcardune has joined #schooltool | 23:12 | |
*** pcardune has quit IRC | 23:36 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!