aelkner | pcadune: for some reason, the actions menu is not coming up unless i'm in the manager's blog. | 00:00 |
---|---|---|
aelkner | i didn't change any of the registration in that area, so I'm confused. | 00:00 |
aelkner | pcardune: i'm typing challenged, so it didn't ping you :) | 00:00 |
pcardune | aelkner: when you merged from trunk... | 00:01 |
aelkner | only eldar's changes came in | 00:01 |
aelkner | those were to the page template and view class | 00:01 |
aelkner | no reg | 00:01 |
eldar | hmmm | 00:01 |
eldar | i'm getting the same thing as aelkner, no action menu unless i'm a manager | 00:02 |
eldar | is it something i did, i only changed batching and the template batch listing | 00:02 |
aelkner | pcardune: i saw your discussion about security with ignas | 00:02 |
aelkner | did you make any changes as a result. | 00:02 |
aelkner | to the trunk i mean. | 00:03 |
pcardune | yeah | 00:03 |
pcardune | they were security changes... | 00:03 |
pcardune | hmmmmm | 00:03 |
pcardune | strange, because functional tests pass | 00:03 |
aelkner | if you try just testing journal ftests... | 00:04 |
aelkner | maybe they aren't boing included in the global ftests. | 00:04 |
aelkner | eldar, could you try journal ftests? | 00:04 |
eldar | ok | 00:04 |
eldar | i'm getting pytz thing which i gotta fix | 00:05 |
eldar | on my system, so right now i can't help you | 00:05 |
aelkner | i'm assuming python2.4 test.py -1fm cando.journal from the Schooltool dir in case you had another way | 00:05 |
aelkner | I had a pytz problem once | 00:06 |
aelkner | then I blew away the dir | 00:06 |
eldar | alright, i install pytz system wide | 00:06 |
aelkner | and rechecked out the proj | 00:06 |
eldar | it's not complaining about that anymore | 00:06 |
aelkner | eldar: i don't think you needed to do that. | 00:07 |
aelkner | because the eggs are supposed to. | 00:07 |
eldar | jinty said i did | 00:07 |
aelkner | i think | 00:07 |
aelkner | ok, i could be wrong | 00:07 |
eldar | or i could've misinterpreted what he said | 00:08 |
aelkner | anyway, are you running the journal ftests the same way i did above? | 00:08 |
aelkner | i wouldn't know if there was another way | 00:08 |
aelkner | just checking to be sure we aren't comparing apples and oranges | 00:08 |
eldar | module object has no attribute 'interfaces' | 00:08 |
aelkner | this is the trunk? | 00:09 |
eldar | yeh ... | 00:09 |
aelkner | hmm | 00:09 |
aelkner | that sounds familiar | 00:09 |
aelkner | could you paste details? | 00:10 |
pcardune | eldar: which module object? | 00:10 |
eldar | File "/home/eldar/cando/SchoolTool/src/cando/virginia/interfaces.py", line 34, in ? | 00:10 |
eldar | class IScoreSystemRequirement(requirement.interfaces.IRequirement): | 00:10 |
eldar | zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/home/eldar/cando/SchoolTool/src/cando/journal/browser/ftesting.zcml", line 10.2-10.38 | 00:10 |
eldar | ZopeXMLConfigurationError: File "/home/eldar/cando/SchoolTool/src/cando/virginia/configure.zcml", line 7.2-12.6 | 00:10 |
eldar | AttributeError: 'module' object has no attribute 'interfaces' | 00:10 |
aelkner | carn that looks familiar, and i think i fixed it, but i can't remember how (: | 00:11 |
pcardune | aelkner: is that a smiley face? | 00:12 |
aelkner | that's a frown | 00:12 |
pcardune | ? | 00:12 |
aelkner | for not being able to come up with the solution | 00:12 |
eldar | i think he misplaced the paranthesis | 00:12 |
pcardune | :( or (:? | 00:12 |
pcardune | lol | 00:12 |
aelkner | dyslexia :) | 00:12 |
aelkner | (: is not a frown :) | 00:12 |
pcardune | (:) ):( (:( ):) ??? | 00:13 |
aelkner | in other words, a poker face | 00:13 |
pcardune | i see | 00:13 |
aelkner | eldar: btw if you get that failure just running journal ftests, you should check to see if global ftests work. | 00:14 |
aelkner | if so that would be a serious problem | 00:14 |
aelkner | i'll try it first on my branch | 00:15 |
aelkner | since they take forever... | 00:16 |
eldar | indeed | 00:16 |
aelkner | eldar: what's you testing.zcml look like for journals so I can compare with mine? | 00:19 |
aelkner | ftesting | 00:19 |
aelkner | pcardune: make ftest worked even though journal ftests don't. Could we have been hiding failed tests for some time now without knowing it? | 00:21 |
pcardune | yes, we could have | 00:23 |
* pcardune runs ftests | 00:23 | |
pcardune | ouch | 00:23 |
eldar | omg | 00:24 |
eldar | it didn't run any cando tests >.< | 00:24 |
aelkner | that could be a simple include of the cando package in the global ftesting.zcml. | 00:25 |
*** th1a has quit IRC | 00:25 | |
pcardune | aelkner: ok, it's fixed in trunk now | 00:25 |
pcardune | the journal ftest that is | 00:25 |
aelkner | looking for your diff... | 00:26 |
eldar | it's just one line, needed to include the requirement package apparently | 00:26 |
eldar | uh, do you see this message? the internet is being jumpy | 00:27 |
aelkner | funny that I don't have that line, yet i only fail much later in the tests | 00:27 |
aelkner | eldar: i see it | 00:28 |
eldar | cool, thanks | 00:28 |
aelkner | eldar: if you add the line:in Paul's changeset, can you get to the failure that i get, namely, the lack of menu? | 00:29 |
eldar | uh, my branch is being annoying, because of the internet, it won't update | 00:31 |
aelkner | bummer | 00:32 |
aelkner | pcardune: could you start up your trunk's server to see if you can get the menu items to come up in the browser? | 00:32 |
pcardune | sure | 00:34 |
eldar | brb gonna reset | 00:35 |
*** eldar has quit IRC | 00:35 | |
pcardune | apparently it does not come up | 00:35 |
*** th1a has joined #schooltool | 00:35 | |
pcardune | aelkner: but the functional tests pass... | 00:36 |
pcardune | that is odd | 00:36 |
aelkner | indeed | 00:37 |
aelkner | could be that the ftest for journal weren;t as picky as they are for me now that I've added the threaded tests. | 00:37 |
pcardune | yes | 00:38 |
pcardune | this is probably the case | 00:38 |
aelkner | i only fail when it reaches my first test. | 00:38 |
aelkner | but then i looked at you tests and saw that there was one for section journals | 00:38 |
aelkner | and that wasn't the manager only case. | 00:38 |
pcardune | I'll look into this now | 00:39 |
aelkner | however, when i looked in the browser, there was no menu for section journals | 00:39 |
pcardune | well, section journals are now only accessible to teachers and admin | 00:39 |
aelkner | i made sure to log in as a jelkner who was the teach of my section | 00:40 |
aelkner | is there something i left out, like making jelkner belong to the teacher group? | 00:40 |
aelkner | i'm not sure what i'm tlaking about, but it sounded familiar. | 00:40 |
pcardune | hmmm | 00:41 |
pcardune | yes | 00:41 |
pcardune | try doing that first | 00:41 |
aelkner | doing that made the nemu appear for. | 00:42 |
aelkner | jelkner's blog works, too | 00:43 |
pcardune | ah | 00:43 |
aelkner | but aelkner's doesn't | 00:43 |
aelkner | aelkner is not a member of any group | 00:43 |
aelkner | could that be it? | 00:44 |
pcardune | possibly | 00:44 |
aelkner | i added aelkner to the student group and logged in as aelkner. no luck | 00:45 |
aelkner | so it looks like students are not allowed to see their own blogs :) | 00:45 |
pcardune | woops | 00:47 |
pcardune | remind me next time to not make such hasty fixes | 00:47 |
pcardune | aelkner: I'm beginning to think we should work on this together | 00:47 |
pcardune | because the modifications will not be fun to merge | 00:48 |
aelkner | sure. | 00:48 |
pcardune | aelkner: let's use your branch | 00:48 |
aelkner | what do i need to do? checkout the trunk for starters? | 00:48 |
pcardune | and we'll try to get threaded journal stuff working before we do other bigger journal related things | 00:49 |
pcardune | or at least to a point where we could merge it into the trunk | 00:49 |
aelkner | then should we work on my branch to fix it? | 00:49 |
pcardune | yeah | 00:50 |
pcardune | i've already got a copy of your branch checked out | 00:50 |
pcardune | I just need to update it | 00:50 |
aelkner | ok. | 00:50 |
aelkner | so this will be my first time working on the same branch as someone at the same time. | 00:51 |
aelkner | when you make a change, you will tell me, and then I do an svn up? | 00:51 |
aelkner | and visaversa | 00:51 |
pcardune | yes | 00:52 |
pcardune | but we'll use gobby! | 00:53 |
pcardune | basically, just do an svn up before you commit | 00:53 |
aelkner | that part confused me when i saw you at pycon because I'm not used to doing it in that order. perforce was different. | 00:54 |
*** th1a has quit IRC | 00:54 | |
aelkner | in perforce, one would the the update, make changes and then commit. | 00:54 |
pcardune | well, you should: update, make changes, update, commit | 00:55 |
aelkner | ok | 00:55 |
pcardune | or: update, make changes, update, fix conflicts, update, commit | 00:55 |
aelkner | i'm used the fixing conflicts part already working on ny branch | 00:55 |
aelkner | lucjily my perforce experience came in handy | 00:56 |
aelkner | sorry for the typos. i don't touch type, so i fat-finger a lot | 00:56 |
aelkner | so who's going to start sobby? | 00:57 |
aelkner | pcardune: ping | 00:58 |
pcardune | ok, i got sobby up on madog, 6522 | 00:58 |
pcardune | aelkner: pong | 00:58 |
aelkner | that's table tennis to those who really play :) | 00:59 |
aelkner | this is my first gobby session with this machine, so i have to install... | 00:59 |
pcardune | oh ok | 00:59 |
*** gpaci has quit IRC | 01:08 | |
*** jinty has quit IRC | 01:37 | |
*** mlinnell has quit IRC | 01:40 | |
*** jfroche_ has quit IRC | 02:14 | |
*** didymo has quit IRC | 02:25 | |
*** smalekgh has joined #schooltool | 04:38 | |
smalekgh | question about the dictionary class used by schooltool: The return value of ISchoolToolApplication()['courses'] is a python dictionary, no? So, isn't it supposed to have support for all standard methods like .values()? | 05:34 |
smalekgh | pcardune: ping | 06:20 |
pcardune | smalekgh: yes | 06:21 |
pcardune | it's not a python dictionary, but it acts like one | 06:21 |
smalekgh | and it doesn't have the .values | 06:21 |
smalekgh | method | 06:21 |
pcardune | it does | 06:21 |
smalekgh | ... | 06:21 |
* smalekgh ponders errors and walks around in circles | 06:22 | |
pcardune | what error are you getting? | 06:22 |
smalekgh | Well, not getting it anymore, because I went in an entirely less appetizing direction, but it was complaining about traversing from the dictionary to .values() | 06:23 |
smalekgh | I'll try it again and get the actual error | 06:23 |
pcardune | ok | 06:23 |
smalekgh | by the way, please note that I went back to using .values() after finding it to work from a different place, and the error, by the by, is from an entirely different method of doing what I'm doing >_< | 06:33 |
smalekgh | lisppaste5: url | 06:33 |
lisppaste5 | To use the lisppaste bot, visit http://paste.lisp.org/new/schooltool and enter your paste. | 06:33 |
lisppaste5 | smalekgh pasted "Traversal error" at http://paste.lisp.org/display/43442 | 06:33 |
lisppaste5 | smalekgh pasted "Annndddd the .pt" at http://paste.lisp.org/display/43443 | 06:34 |
smalekgh | The error stems from me trying to repeat through ISchoolToolApplication()['courses'] in a .pt | 06:35 |
smalekgh | by getting it and then tacking on a /values | 06:35 |
* pcardune looking | 06:35 | |
smalekgh | just a reminder, we're not actually doing it that way >_< | 06:35 |
pcardune | smalekgh: if you do view/someMethod/values, then in python that would be: view.someMethod.values | 06:37 |
smalekgh | ya | 06:37 |
pcardune | if you want view.someMethod().values, then you have to do it a bit differently | 06:37 |
smalekgh | which is exactly what I put in the view class | 06:37 |
smalekgh | and it worked perfectly | 06:37 |
smalekgh | the placement doesn't interchange >_< | 06:37 |
pcardune | i would be surpised if that worked | 06:39 |
smalekgh | ... then be surprised >_< | 06:39 |
pcardune | try <tr tal:define="courses view/deprecatedGetAllCourses" tal:repeat="course courses"> | 06:41 |
pcardune | at least to humor me :) | 06:41 |
smalekgh | actualllyyyy... I'm pretty sure I had tried that already | 06:41 |
smalekgh | oh, and I can't try that, because jama's working on some .py files >_< | 06:41 |
smalekgh | and that repeats the names, no? | 06:42 |
pcardune | O.o <--- that is the only flat face one I like | 06:42 |
smalekgh | not the actual courses | 06:42 |
pcardune | oh woops, you should do courses/values | 06:42 |
pcardune | alternatively, why not just make GetAllCourses return the values? | 06:43 |
smalekgh | because that's what we're already doing | 06:43 |
smalekgh | the deprecated tack on means that we aren't doing that >_< | 06:43 |
smalekgh | the way it's actually working right now is getAllCourses is returning app['courses | 06:44 |
smalekgh | ahem*** | 06:44 |
smalekgh | app['courses'].values() | 06:44 |
pcardune | so, why do you need to get the values from what it returns? | 06:44 |
smalekgh | to display em' | 06:44 |
pcardune | it gives you a list of courses, and a course does not have a value attribute | 06:44 |
smalekgh | no... | 06:44 |
smalekgh | it gives me a dictionary | 06:44 |
smalekgh | and I say .values() | 06:45 |
smalekgh | and I get a list >_< | 06:45 |
pcardune | app['courses'] gives you a dictionary like object - yes. then app['courses'].values() gives you a list | 06:45 |
aelkner | smalekgh: what does >_< mean? | 06:45 |
pcardune | so if getAllCourses() returns app['courses'].values(), then you don't need to call values() on what it returns | 06:46 |
smalekgh | it's like O.o except with a greater connotation for slapping one's self in the face | 06:46 |
smalekgh | and a greater lol connotation | 06:46 |
smalekgh | so it's like lolling while slapping yourself in the face | 06:46 |
smalekgh | >_< | 06:46 |
aelkner | what does O.o mean? | 06:46 |
smalekgh | errrrr | 06:46 |
smalekgh | that's kind of the odd thing | 06:46 |
smalekgh | I really don't know | 06:46 |
smalekgh | pcardune: I'm not! | 06:46 |
smalekgh | I'm talking about deprecatedGetAllCourses | 06:47 |
pcardune | oh, so I'm looking at the wrong thing then | 06:47 |
aelkner | So your saying things that you really don;t know | 06:47 |
smalekgh | which is the one that's having the errors | 06:47 |
aelkner | interesting | 06:47 |
smalekgh | I removed it already >< | 06:47 |
smalekgh | er, I removed deprecatedGetAllCourses already | 06:47 |
pcardune | oh | 06:47 |
pcardune | so what should I be looking at? | 06:47 |
smalekgh | aelkner: smiley's tend to have wierd meanings that depend on the situation, so its kinda hard... | 06:47 |
smalekgh | pcardune: I don't know >_< I'll sitck it back in there, it's basically just like getAllCourses() minus the .values() part in the return value | 06:48 |
pcardune | I can already feel the generation gap... gappening | 06:48 |
smalekgh | actually, wait, it is | 06:48 |
pcardune | no no no, don't put it back, just keep you funciton that returns whatever.values(), and iterate over whatever it returns | 06:48 |
pcardune | and come back to me if you still have problems | 06:48 |
aelkner | I guess I have one of those outdated face versions, but I tend to either smile or frown, wink maybe, but that's about it... | 06:49 |
pcardune | what about :/ | 06:50 |
smalekgh | problems have been gone, actually, for a while now >_< I was just showing you something old that happened to pop up around an hour ago | 06:50 |
pcardune | I find that pretty effective | 06:50 |
smalekgh | :-/ | 06:50 |
smalekgh | > :/ | 06:50 |
smalekgh | errr, wait a minute | 06:50 |
smalekgh | the greater sign is in the wrong place | 06:50 |
pcardune | i don't like things that require 3 characters | 06:50 |
smalekgh | then what is O.o ? | 06:50 |
pcardune | it is too long | 06:50 |
pcardune | that is a newage thing, it's different | 06:50 |
smalekgh | ...... | 06:50 |
pcardune | my liking 0.o is an exception to the new age rule, which supersedes the three character rule | 06:52 |
smalekgh | what other new age smileys, then, do you officially recognize? | 06:52 |
pcardune | anything that is eye mouth eye | 06:53 |
pcardune | rather than eyes mouth | 06:53 |
smalekgh | T_T I just broke my module | 07:02 |
pcardune | What is T_T? | 07:02 |
smalekgh | crying | 07:02 |
smalekgh | by the way... alan, O.o == *raised eyebrow* | 07:03 |
aelkner | i see. | 07:03 |
pcardune | looks like Frankenstein to me | 07:03 |
pcardune | or maybe a frog | 07:03 |
smalekgh | LOL | 07:03 |
*** wjohnsto has joined #schooltool | 07:04 | |
wjohnsto | pcardune: ayt? | 07:04 |
pcardune | yes | 07:04 |
wjohnsto | I have a question about dictionaries... | 07:04 |
pcardune | surprised? | 07:05 |
wjohnsto | well I mean | 07:05 |
wjohnsto | I am considering it's midnight here, but that means it's normal time where you are | 07:05 |
wjohnsto | for a dictionary | 07:05 |
wjohnsto | if I want to assign a variable to the dictionary's key, how would I do that | 07:05 |
wjohnsto | ? | 07:05 |
smalekgh | you mean like, change a key to an item? | 07:06 |
wjohnsto | well here | 07:06 |
wjohnsto | I'll give you a direct example | 07:06 |
wjohnsto | I say something like dict[school]='name' | 07:07 |
wjohnsto | and later, I want to assign a variable to "school" | 07:08 |
wjohnsto | not an item | 07:08 |
wjohnsto | like, if there was a "getkey()" function or something | 07:08 |
smalekgh | you want to make a key be a variable | 07:08 |
smalekgh | in the sense that you change the variable | 07:08 |
pcardune | wjohnsto: why do you want to be able to do this? | 07:09 |
wjohnsto | because | 07:09 |
wjohnsto | I was thinking about it | 07:10 |
wjohnsto | and pcardune, I thought if I had a dictionary with the keys being the school name, and the items being the school id's | 07:10 |
wjohnsto | then I could later use those id's to add electives to the schools | 07:10 |
pcardune | you have it the other way around, you want the id's to be the keys, as they are presumably unique | 07:11 |
pcardune | why not have the keys be the school ids, and the items being the school objects themselves? | 07:11 |
smalekgh | errr, many to one dict? | 07:12 |
wjohnsto | let me try that | 07:12 |
wjohnsto | it's annoying though because I am just now learning dictionaries, haha | 07:12 |
wjohnsto | or, moreso than before | 07:13 |
pcardune | dictionaries are pretty much the air you breath in python/zope/programming in general | 07:14 |
*** povbot has joined #schooltool | 07:59 | |
pcardune | povbot: help | 07:59 |
povbot | pcardune: (help [<plugin>] [<command>]) -- This command gives a useful description of what <command> does. <plugin> is only necessary if the command is in more than one plugin. | 07:59 |
pcardune | povbot: help help | 08:02 |
povbot | pcardune: (help [<plugin>] [<command>]) -- This command gives a useful description of what <command> does. <plugin> is only necessary if the command is in more than one plugin. | 08:02 |
pcardune | povbot: help report | 08:02 |
povbot | pcardune: Error: There is no command "report". | 08:02 |
smalekgh | ...?? | 08:02 |
pcardune | just testing :L | 08:05 |
smalekgh | :L == ? | 08:06 |
*** E-nnovative1 has joined #schooltool | 08:09 | |
smalekgh | pcardune: is there any way to add a link to an annotation of an object on that object's index page? | 08:11 |
pcardune | sure, use the schooltool_actions menu | 08:12 |
smalekgh | ... couldja please explain to my newbish mind? | 08:13 |
pcardune | use a menuItem directive | 08:18 |
pcardune | you can see examples in just about any cando/somepackage/browser/configure.zcml file | 08:18 |
smalekgh | I know about the menuItem directive, but doesn't that just add to the Action menu? | 08:19 |
smalekgh | of the object it- | 08:19 |
smalekgh | .. | 08:19 |
smalekgh | darnit... why didn't I figure that out on my own <_< | 08:19 |
smalekgh | oh wait... shoot. Uh, what are all of the attributes one can attach to a menuItem directive? | 08:20 |
pcardune | I dont know... look it up..! | 08:22 |
pcardune | :) | 08:22 |
pcardune | ++apidoc++ | 08:23 |
pcardune | is your friend | 08:23 |
smalekgh | ... I'm going to jump the gun and say you were thinking- DARNIT | 08:23 |
smalekgh | I was wrong | 08:23 |
smalekgh | uhh, how do you access ++apidoc++ again? | 08:26 |
pcardune | localhost:port/++apidoc++ | 08:27 |
smalekgh | <_< ... it... isn't... working... wait, should there be any http: stuff before it | 08:28 |
smalekgh | ? | 08:28 |
pcardune | yes | 08:28 |
smalekgh | http://maddog.yhspatriot.net:8122/++apidoc++ | 08:28 |
pcardune | yeah | 08:28 |
smalekgh | no >_< | 08:28 |
pcardune | oh, small detail, you'll want to use a plain zope isntance | 08:29 |
smalekgh | <_< | 08:29 |
pcardune | otherwise you have to enable devmode in schooltool | 08:29 |
pcardune | which can be enabled from schooltool.conf | 08:30 |
smalekgh | oye | 08:30 |
pcardune | although I'm not sure if that works | 08:30 |
smalekgh | ah well, I'ma try to make the menu items work tomorrow then... | 08:31 |
*** aelkner has quit IRC | 08:31 | |
*** smalekgh has left #schooltool | 08:51 | |
*** Aiste has joined #schooltool | 09:03 | |
*** thisfred has joined #schooltool | 09:50 | |
*** jinty has joined #schooltool | 09:54 | |
*** jinty has quit IRC | 10:01 | |
*** pcardune has quit IRC | 10:07 | |
*** E-nnovative1 has quit IRC | 10:26 | |
*** E-nnovative1 has joined #schooltool | 10:27 | |
*** jfroche has joined #schooltool | 11:07 | |
*** jfroche has quit IRC | 11:07 | |
*** jfroche has joined #schooltool | 11:09 | |
*** E-nnovative1 has quit IRC | 12:14 | |
*** jfroche has quit IRC | 12:51 | |
*** mgedmin has joined #schooltool | 13:09 | |
*** ignas has joined #schooltool | 13:21 | |
*** mgedmin has quit IRC | 14:38 | |
*** Cripps has quit IRC | 15:36 | |
*** CrippsFX has joined #schooltool | 15:53 | |
*** eldar has joined #schooltool | 16:01 | |
eldar | morning to all | 16:02 |
wjohnsto`away | eldar: goodmorning | 16:08 |
*** wjohnsto`away is now known as wjohnsto | 16:08 | |
fsufitch | good morning | 16:11 |
*** mgedmin has joined #schooltool | 16:37 | |
*** pcardune has joined #schooltool | 16:51 | |
eldar | yo | 16:51 |
fsufitch | hello | 16:51 |
pcardune | hi | 16:54 |
*** gpaci has joined #schooltool | 16:55 | |
*** th1a has joined #schooltool | 17:21 | |
*** gpaci_ has joined #schooltool | 17:29 | |
*** gpaci has quit IRC | 17:30 | |
*** deathomen[ has joined #schooltool | 18:01 | |
*** deathomen[ has quit IRC | 18:01 | |
*** wjohnsto` has joined #schooltool | 18:01 | |
*** wjohnsto has quit IRC | 18:16 | |
*** thisfred has quit IRC | 18:27 | |
fsufitch | alright, i'm moving location to ACC | 18:30 |
eldar | cool | 18:31 |
eldar | see yo usoon | 18:31 |
*** th1a has quit IRC | 18:31 | |
*** fsufitch has quit IRC | 18:32 | |
*** gpaci has joined #schooltool | 18:38 | |
*** Aiste has quit IRC | 18:41 | |
*** gpaci_ has quit IRC | 18:45 | |
*** th1a has joined #schooltool | 18:46 | |
*** jfroche_ has joined #schooltool | 18:47 | |
pcardune | eldar: did you see that document that welsh sent us again with the permissions layed out? | 18:54 |
pcardune | eldar: I want to assign one intern to writing a security.txt doctest that just tests all those out | 18:54 |
eldar | huh? | 18:57 |
* eldar is checking his mail | 18:57 | |
eldar | pcardune: what is it titled? | 18:57 |
pcardune | eldar: oh, I guess it doesn't say much about what permissions should be | 18:59 |
pcardune | the title is CanDo Permissions, Security, IE Compatibility... | 18:59 |
pcardune | eldar: but there is a nice big google doc spreadsheet with all the specifications | 19:01 |
eldar | eldar: can you share it with me please? | 19:02 |
pcardune | eldar: it is shared with you | 19:03 |
*** wjohnsto has joined #schooltool | 19:03 | |
pcardune | and, were you talking to yourself? | 19:04 |
eldar | oops >.< | 19:04 |
eldar | i guess i was :-[ | 19:05 |
eldar | i'm reading over welsh's email right now | 19:05 |
eldar | uh it's really vague | 19:10 |
pcardune | yeah, I thought it had the spreadsheet | 19:12 |
eldar | alright, how do i read this spreadsheet? | 19:12 |
eldar | oh it's a permission list | 19:13 |
eldar | hmmm | 19:13 |
eldar | pcardune: who do you want to put on this? | 19:13 |
pcardune | whoever isn't already working on something else | 19:13 |
eldar | we haven't found anything for chris beacham, right? | 19:14 |
eldar | or is he already working on something? | 19:14 |
pcardune | yes, I think he finished printable forms | 19:15 |
pcardune | so yeah, you could give it to him | 19:15 |
eldar | so where is this security.txt gonna be shoved? | 19:16 |
*** th1a has quit IRC | 19:20 | |
*** wjohnsto` has quit IRC | 19:21 | |
pcardune | eldar: in cando/ | 19:24 |
eldar | does he know how to write browser tests? | 19:27 |
pcardune | he will soon | 19:31 |
pcardune | if he doesn't already | 19:31 |
pcardune | they aren't that hard | 19:31 |
eldar | yeah, all he needs to do is just look at the already existing browser tests | 19:31 |
*** wjohnsto is now known as wjohnsto`away | 19:33 | |
*** wjohnsto`away has left #schooltool | 19:33 | |
dwelsh | pcardune: welsh/elkner calling | 19:36 |
pcardune | hi dwelsh | 19:36 |
dwelsh | pcarduen: on skype | 19:36 |
pcardune | ok | 19:36 |
*** dwelsh has quit IRC | 19:39 | |
*** cpcarey has joined #schooltool | 19:43 | |
*** aelkner has joined #schooltool | 19:56 | |
*** mlinnell has joined #schooltool | 19:57 | |
*** tdoggette has joined #schooltool | 19:59 | |
pcardune | well, it's 1pm at ACC | 20:00 |
pcardune | everyone there yet eldar? | 20:01 |
eldar | pcardune: ya lot of people are here | 20:01 |
eldar | chris and filip aren't here yet, masood, jama, and a whole bunch are here | 20:02 |
pcardune | ok | 20:02 |
eldar | we're getting them on irc right now | 20:02 |
pcardune | ok | 20:02 |
*** jelkner has joined #schooltool | 20:02 | |
pcardune | hi jelkner | 20:03 |
Lumiere | hi all | 20:03 |
pcardune | Lumiere: is it possible to get coverage reports for cando tests? | 20:03 |
*** smalekgh has joined #schooltool | 20:03 | |
smalekgh | HIIIIIIIIII!!! | 20:04 |
pcardune | breakfast cereals should be made illegal... too much sugar | 20:04 |
pcardune | smalekgh: did you solve your problems from yesterday? | 20:04 |
smalekgh | welllll, define 'problems' >_< Yes, but we still haven't added some menuItems to allow access from person to schedule | 20:05 |
smalekgh | or course to coursereqs | 20:05 |
smalekgh | And I had cornbread too. My cereal had too little sugar... | 20:06 |
Lumiere | pcardune: we can work on it with jinty | 20:06 |
pcardune | Lumiere: awesome | 20:06 |
jelkner | pcardune: is there anyone with whom we need to check-in? | 20:09 |
jelkner | everyone seems to be busy working already! ;-) | 20:09 |
*** fsufitch has joined #schooltool | 20:09 | |
fsufitch | hello, all | 20:09 |
pcardune | Well, most folks checked in yesterday or the day before with me | 20:10 |
smalekgh | pcardune/someoneelsewhohasenoughpowertosay'dothis'andmakeusdothat: so, after we make our .pts pretty now with css stuff, what do we do? | 20:10 |
pcardune | we need to check in with Chris Beachem | 20:10 |
pcardune | We have an assignment for him | 20:10 |
smalekgh | sounds ominous | 20:10 |
pcardune | smalekgh: well, does it work? | 20:10 |
jelkner | pcardune: and he isn't here :-( | 20:10 |
pcardune | smalekgh: and are there tests (both unit and functional tests) | 20:11 |
pcardune | smalekgh: can you give me a demo? | 20:11 |
smalekgh | oooooo, sounds even more ominous [for us] | 20:13 |
fsufitch | pcardune, chris doesnt seem to be coming to the ACC today | 20:13 |
fsufitch | oh nvm, jelkner already said that | 20:13 |
pcardune | fsufitch: oh well, I guess he won't get his assignment then | 20:13 |
pcardune | fsufitch: I told dave welsh you wanted to show him the printable forms | 20:14 |
fsufitch | yes, he's around and said he will look at them ASAP | 20:14 |
cpcarey | pcardune: we were told that you came up with a new plan for sifagent | 20:16 |
pcardune | yes, I did | 20:17 |
*** wjohnsto has joined #schooltool | 20:17 | |
smalekgh | where are all of the schooltool zcml directives defined? | 20:17 |
cpcarey | do tell | 20:17 |
pcardune | smalekgh: all over the schooltool directory :) | 20:17 |
*** Makorihi has joined #schooltool | 20:17 | |
cpcarey | we're all in #stagent btw | 20:17 |
cpcarey | if you want to meet there | 20:18 |
pcardune | ok, i'll join you there | 20:18 |
cpcarey | *#stAgent | 20:18 |
Lumiere | pcardune: ftests running on cando | 20:20 |
pcardune | great | 20:20 |
Lumiere | pcardune: there is another problem | 20:32 |
Lumiere | it isn't pytz itself | 20:33 |
pcardune | Lumiere: it is? | 20:33 |
Lumiere | there's someone importing pytz a second time | 20:33 |
Lumiere | I *removed* the package | 20:33 |
pcardune | pytz does get imported in schooltool testrunner | 20:34 |
pcardune | where the second time is after that I don't know | 20:34 |
pcardune | possibly in calendaring code | 20:34 |
ignas | wouldn't it make more sense to talk about stagent in here? i mean this channel has logs, and is kind of schooltool related anyway ... | 20:35 |
pcardune | ignas: yes, I suppose this is the case | 20:36 |
tdoggette | pcardune: we're all here | 20:38 |
pcardune | tdoggette: so, first step is.... do you all have a working checkout of stagent? | 20:38 |
cpcarey | my bzr up isn't working | 20:38 |
*** mgedmin has quit IRC | 20:38 | |
pcardune | ignas: I'll post the log from the other room to schooltool/cando mailing lists | 20:38 |
cpcarey | it's only updating to revision 145 | 20:38 |
tdoggette | I'm good at revision 147. | 20:39 |
mlinnell | I have 147 | 20:39 |
cpcarey | don't rub it in | 20:39 |
pcardune | cpcarey: you should compare the output from bzr info | 20:39 |
pcardune | cpcarey: you might be on a different branch | 20:39 |
tdoggette | checkout of branch: http://bazaar.launchpad.net/~stagent-developers/stagent/stagent-dev/ | 20:40 |
cpcarey | Location: | 20:40 |
cpcarey | branch root: file:///home/ccarey/stagent-dev/ | 20:40 |
cpcarey | Related branches: | 20:40 |
cpcarey | parent branch: http://bazaar.launchpad.net/~stagent-developers/stagent/stagent-dev/ | 20:40 |
cpcarey | Format: | 20:40 |
cpcarey | control: Meta directory format 1 | 20:40 |
cpcarey | working tree: Working tree format 4 | 20:40 |
cpcarey | branch: Branch format 5 | 20:41 |
cpcarey | repository: Knit repository format 1 | 20:41 |
cpcarey | In the working tree: | 20:41 |
cpcarey | 65 unchanged | 20:41 |
cpcarey | 0 modified | 20:41 |
cpcarey | 0 added | 20:41 |
cpcarey | 0 removed | 20:41 |
cpcarey | 0 renamed | 20:41 |
cpcarey | 3 unknown | 20:41 |
cpcarey | 9 ignored | 20:41 |
cpcarey | 21 versioned subdirectories | 20:41 |
cpcarey | Branch history: | 20:41 |
cpcarey | 146 revisions | 20:41 |
cpcarey | 202 days old | 20:41 |
cpcarey | first revision: Wed 2006-12-06 17:07:34 +0000 | 20:41 |
cpcarey | latest revision: Tue 2007-06-26 12:38:14 -0400 | 20:41 |
cpcarey | Revision store: | 20:41 |
cpcarey | 147 revisions | 20:41 |
cpcarey | 454 KiB | 20:41 |
cpcarey | it's different from theirs | 20:41 |
eldar | next time please use the paste | 20:43 |
pcardune | what is different? that looks right to me | 20:43 |
tdoggette | eldar: speaking only for myself, I've got no idea how to use lisppaste | 20:44 |
pcardune | lisppaste5: url | 20:44 |
lisppaste5 | To use the lisppaste bot, visit http://paste.lisp.org/new/schooltool and enter your paste. | 20:44 |
lisppaste5 | tdoggette pasted "tdoggette's bzr info" at http://paste.lisp.org/display/43484 | 20:45 |
cpcarey | oh that's how that works | 20:45 |
fsufitch | pcardune, dwelsh approved my printable forms | 20:45 |
fsufitch | what now? | 20:45 |
pcardune | fsufitch: barcodes! | 20:45 |
eldar | commit | 20:45 |
fsufitch | i got the barcode.gif working... | 20:45 |
pcardune | but first, talk to eldar about merging it into trunk | 20:45 |
cpcarey | i should paste mine too then | 20:45 |
eldar | well, commit into the branch first | 20:46 |
fsufitch | commit to where? | 20:46 |
eldar | your branch | 20:46 |
fsufitch | ok | 20:46 |
pcardune | eldar: i believe it is already committed no? | 20:46 |
eldar | i don't know, is it, filip? | 20:46 |
fsufitch | i made a few fixes to conform with mr welsh's specs | 20:46 |
lisppaste5 | cpcarey pasted "Chris Carey's bzr info" at http://paste.lisp.org/display/43485 | 20:46 |
pcardune | cpcarey: mlinnell, tdoggette: you should all do another pull, because I just pushed up some changes | 20:47 |
fsufitch | eldar, how do i specify where to commit to? | 20:47 |
cpcarey | mine says the tree is up to date at revision 146 :( | 20:47 |
eldar | fsufitch: do you have a fresh cando trunk check out? | 20:47 |
fsufitch | because it's trying to commit to svn.schooltool.org | 20:47 |
mlinnell | ok, updated to 148 | 20:47 |
tdoggette | Check. | 20:47 |
eldar | well, first you commit to the branch, then i'll help you merge it in to the trunk | 20:48 |
fsufitch | should i do svn co before committing | 20:48 |
eldar | no no, what you should be working on right now is the branch | 20:48 |
eldar | it's different from trunk | 20:48 |
fsufitch | yeah | 20:48 |
eldar | alright, i'll come ove rand help | 20:48 |
*** bvuong has joined #schooltool | 20:49 | |
pcardune | cpcarey: you'll have to live with using their branch for now then | 20:49 |
cpcarey | doggette had this problem before and someone fixed it | 20:50 |
bvuong | hey all. I'm tryin to learn zope right now. I'm kinda confused on how you restart the zope server though. | 20:50 |
mlinnell | that someone being wdickers | 20:50 |
cpcarey | should i delete my whole stagent-dev folder and redo the branch? | 20:51 |
pcardune | cpcarey: that might be a good idea | 20:51 |
mlinnell | he's removing it | 20:53 |
mlinnell | but it's taking a while | 20:53 |
smalekgh | When one adds an annotation to another object, does that annotation recieve a reference to that object? And if it does, what's its name >_< ? | 20:54 |
tdoggette | He wedged a mouse on the enter key to say yes for him on write-protected files. | 20:54 |
pcardune | smalekgh: nope | 20:55 |
pcardune | it does not | 20:55 |
smalekgh | ... darnit | 20:55 |
pcardune | but you can make it locatable | 20:55 |
smalekgh | how? | 20:55 |
pcardune | and set the __parent__ attribute to the object whose annotation it's on | 20:55 |
pcardune | tdoggette: cpcarey: use rm -rf stagent-dev, and it won't prompt you | 20:56 |
pcardune | smalekgh: are you using emacs? you should use exuberant ctags to find the locate function... I believe eldar knows how to set that up | 20:57 |
mlinnell | cool, it worked for cpcarey | 20:57 |
pcardune | mlinnell: cpcarey, tdoggette, I've set up a sobby server on maddog running on port 6523 | 20:59 |
pcardune | please join me there | 20:59 |
tdoggette | Gobby? | 20:59 |
pcardune | yes | 20:59 |
*** th1a has joined #schooltool | 20:59 | |
bvuong | I kinda need help on zope. How do you restart the zope server? | 20:59 |
pcardune | hi th1a | 20:59 |
pcardune | bvuong: ping eldar | 21:00 |
smalekgh | eldar is busy >_< | 21:00 |
smalekgh | he's helping filip | 21:00 |
tdoggette | I'm the only one with gobby installed, give us a sec. | 21:00 |
*** gpaci is now known as pacman | 21:01 | |
th1a | pcardune: Hi. | 21:01 |
pcardune | Lumiere: do you know what port ranges are open on maddog? | 21:02 |
pcardune | th1a: I think I came up with a simpler solution than REST. check the schooltool mailing list about that. | 21:02 |
mlinnell | pcardune: can't get past "setting up connection encryption" in gobby | 21:02 |
pcardune | mlinnell: yeah, I think that port is blocked | 21:03 |
mlinnell | hmm one sec | 21:03 |
pcardune | mlinnell: try port 6113 | 21:04 |
mlinnell | that port worked | 21:04 |
Lumiere | it is all on the cando wiki | 21:07 |
fsufitch | pcardune, it's committed and happy :) | 21:08 |
fsufitch | what's next in line for barcodes? | 21:08 |
fsufitch | i mean, since barcode.gif is working | 21:08 |
pcardune | we need a way to print out a list of barcodes | 21:09 |
bvuong | doesn't sound too hard. What do you mean by that though? | 21:09 |
pcardune | so you need to make a page that shows all the barcodes for all people | 21:09 |
pcardune | and another one that shows all barcodes for all resources | 21:09 |
pcardune | and in fact, it would be best if you could select a subset of these to print out | 21:10 |
th1a | If the agent is built directly into schooltool, it would just send events directly when they are triggered -- there would be no need for the cron style batching. | 21:10 |
th1a | pcardune ^ | 21:10 |
pcardune | th1a: ah, that makes it even better then | 21:11 |
th1a | th1a: Yes. | 21:11 |
pcardune | th1a: but what about recieving data from another agent? | 21:11 |
Lumiere | pdf would be nice | 21:11 |
Lumiere | for barcodes | 21:11 |
pcardune | fsufitch: talk to Lumiere for barcode user stories | 21:11 |
fsufitch | i can do pdf | 21:11 |
th1a | I guess GetMessage happens periodically. | 21:11 |
th1a | But you could just have that run in a separate thread forever. | 21:11 |
fsufitch | Lumiere, what about barcode user storied :) | 21:12 |
fsufitch | *stories | 21:12 |
th1a | GetMessage and then sleep(15000) | 21:12 |
th1a | Or whatever. | 21:12 |
fsufitch | Lumiere, so for now should i go with the printable bar code list? | 21:12 |
pcardune | th1a: and we won't have to worry about spawning that thread for a while | 21:12 |
wjohnsto | wow. | 21:12 |
pcardune | we can get plenty of results without it | 21:13 |
pcardune | ignas: what is your recommendation for creating third party plugins for schooltool? | 21:13 |
Lumiere | go with making a pdf barcode list (hand it a list of barcodes to make and it returns a pdf) | 21:13 |
pcardune | ignas: we need a plugins folder :) | 21:13 |
fsufitch | uhh, i dont know how to do a pdf with all the bar codes | 21:13 |
bvuong | there's a problem about making barcodes into a pdf format | 21:13 |
fsufitch | i can make a webpage with all the barcodes on it in GIF formats | 21:14 |
fsufitch | gif works... | 21:14 |
pcardune | Lumiere: print to pdf :) | 21:14 |
bvuong | gif would work | 21:14 |
bvuong | not sure about pdf | 21:14 |
pcardune | I'd say do it in gif for now, and we can come back to pdf if we really need to | 21:14 |
pcardune | ignas: ? | 21:14 |
Lumiere | that works then | 21:14 |
fsufitch | ok | 21:14 |
ignas | pcardune: at the moment - will do i guess, just add plugins folder, put slugs of plugins in there, and add <include *> thingie (the one that was in old site.zcml) in there | 21:14 |
eldar | pcardune: so umm apparently, the annotated object is a parent of the annotation o.O | 21:15 |
ignas | eldar: yes, standard procedure is to do that | 21:15 |
pcardune | really? i guess that annotation factory does that for you | 21:15 |
ignas | eldar: parent of SchoolToolCalendar is person for example | 21:15 |
eldar | well that came in handy :) | 21:15 |
pcardune | but there is nothing that says when you put something in an annotation, the location gets set up | 21:15 |
ignas | even though SchoolToolCalendar is in person.__annotations__['schooltool_calendar'] | 21:16 |
fsufitch | pcardune, also, i need my own branch | 21:16 |
fsufitch | a branch called filipbranch or something | 21:16 |
ignas | pcardune: not automatically, we do that ourselves | 21:16 |
eldar | oh i'll ste that up for you | 21:16 |
eldar | set* | 21:16 |
fsufitch | because right now i'm still working on printable-forms | 21:16 |
pcardune | ignas: I think that is what I meant | 21:17 |
eldar | pcardune: you think we should remove the printable forms branch? or just leave it there and create a fsufitch branch? | 21:17 |
pcardune | have a separate branch for barcode stuff | 21:17 |
pcardune | leave printable forms around | 21:18 |
pcardune | we may use it again later | 21:18 |
eldar | wait, should i call it barcode? or fsufitch? | 21:18 |
pcardune | call it barcode, as there will be multiple people working on it | 21:18 |
eldar | oh ok | 21:18 |
pcardune | ignas: should slugs be automatically picked up from plugin folders? or should plugins have a "setup" to install them? | 21:20 |
ignas | pcardune: no autoinstall of plugins | 21:21 |
pcardune | :( | 21:21 |
pcardune | ok | 21:21 |
th1a | pcardune: Can you see now why I wanted to figure out which method of interaction between the agent and SchoolTool made most sense before we wrote a pile of specifications? | 21:21 |
ignas | and if they are a part of standard setup - you might want to add them directly to site.zcml | 21:21 |
pcardune | th1a: the pile of specificaitons still isn't a bad idea. thinking of an easier way doesn't make the specification pile less necessary - in my mind at least. It just puts it off for a bit | 21:22 |
pcardune | ignas: ok, sounds good | 21:22 |
th1a | pcardune: I'm just saying, it is a rather different pile of specifications today than it would have been last week. | 21:23 |
pcardune | th1a: I think we are thinking of different specification piles :) | 21:23 |
pcardune | ignas: so, how does the path to plugins get added to the python path on schooltool startup? | 21:24 |
th1a | pcardune: It wouldn't be the first time. | 21:24 |
eldar | it should be done through site.zcml | 21:24 |
eldar | no? | 21:24 |
eldar | that's how package-includes is included | 21:24 |
eldar | schooltool's site.zcml needs to be changed | 21:24 |
pcardune | eldar: but that is for things that are already on the python path | 21:24 |
eldar | so it thinks about a plugin directory | 21:24 |
eldar | is it? | 21:24 |
eldar | it looked like a rather hardcoded directory inclusion to me | 21:25 |
ignas | eldar: the idea is to allow people to easily have small things like barcodes enabled, without modifying the main site.zcml | 21:25 |
ignas | at least i think | 21:25 |
pcardune | yes :) | 21:25 |
ignas | while keeping the core setup of the application, hand picked | 21:26 |
Lumiere | pcardune: on skype if you need me | 21:27 |
eldar | yeah i get that | 21:27 |
eldar | i was just suggesting, having the site.zcml include whatever is in the plugins directory | 21:27 |
pcardune | ignas: what about for bigger plugins where the plugin project doesn't consist of only src code? | 21:27 |
ignas | pcardune: for example? | 21:27 |
pcardune | ignas: like, schooltool.sifagent has a src/schooltool/sifagent directory structure | 21:28 |
pcardune | we want to develop it while it is in that directory structure without copying sifagent to SchoolTool/src/schooltool/ | 21:28 |
ignas | pcardune: for our internal projects (zope components) we symlink | 21:29 |
pcardune | ok, so symlinking is only problematic for zpkg, but not for zcml includes | 21:29 |
ignas | yep | 21:29 |
Lumiere | that's good | 21:29 |
ignas | if you feel adventurous - convert sifagent into an egg | 21:29 |
eldar | zpkg is dead! | 21:29 |
pcardune | that is good to know | 21:29 |
ignas | have it's development version in eggs | 21:29 |
Lumiere | pcardune: can you clean up cando trunk | 21:29 |
ignas | or something like that | 21:29 |
Lumiere | to not copy cando into the schooltool tree ;) | 21:30 |
pcardune | ignas: yes, eventually | 21:30 |
ignas | i think zope corp does it that way | 21:30 |
pcardune | Lumiere: we can now that zpkg is dead | 21:30 |
ignas | so you can have all the namespace package magic | 21:30 |
pcardune | ignas: yes, that is precisely what I was looking for | 21:30 |
pcardune | namespace package magic | 21:30 |
* ignas has no idea about how development eggs work | 21:31 | |
ignas | so i can't really help you | 21:31 |
ignas | ask J1m | 21:31 |
tdoggette | pcardune: we all lost our connections. | 21:34 |
pcardune | me 2 | 21:34 |
pcardune | i'll open it up again | 21:34 |
pcardune | ok it's up | 21:35 |
*** pacman is now known as pacman_ | 21:45 | |
*** th1a has quit IRC | 21:48 | |
smalekgh | pcardune: ping | 21:49 |
*** pacman_ has quit IRC | 21:49 | |
*** pacman has joined #schooltool | 21:49 | |
pcardune | smalekgh: pong | 21:49 |
smalekgh | yay! | 21:50 |
smalekgh | uhhhh, how does one go about running a functional test? | 21:50 |
smalekgh | besides make ftest | 21:50 |
eldar | alright | 21:50 |
pcardune | ./test.py -f -m some.module | 21:50 |
eldar | well paul got to you first | 21:50 |
eldar | if you want it to stop on the first failure | 21:50 |
eldar | you do -1f | 21:51 |
pcardune | i'm the second fastst answerer in the west | 21:51 |
eldar | go to Schooltool directory | 21:51 |
smalekgh | TypeError("The test to add must be callable") | 21:51 |
eldar | and do python2.4 test.py -1fm cando.schedule | 21:51 |
eldar | or scheduling, i forgot what you guys called the module | 21:51 |
eldar | hmm myabe you didn't set up your tests properly | 21:52 |
eldar | in the configuration | 21:52 |
Lumiere | pcardune: look at the ftests on the buildbot | 21:52 |
Lumiere | schooltool is trying to use both and failing | 21:52 |
pcardune | ignas: should plugins directory be in schooltool-skel/etc/package-includes/plugins, or just schooltool-skel/etc/plugins | 21:52 |
Lumiere | cando is NOT seeing the the egg | 21:53 |
Lumiere | and not finding the now uninstalled package | 21:53 |
pcardune | heh | 21:53 |
Lumiere | ignas: any ideas | 21:53 |
smalekgh | how does one go about correctly configuring the functional tests? | 21:55 |
*** th1a has joined #schooltool | 21:56 | |
*** jfroche_ has quit IRC | 22:01 | |
*** pacman is now known as pacman_ | 22:02 | |
*** ignas has quit IRC | 22:03 | |
*** wjohnsto is now known as wjohnsto`ACC | 22:03 | |
wjohnsto`ACC | *cricket* *cricket* | 22:18 |
*** th1a has quit IRC | 22:20 | |
wjohnsto`ACC | pcardune: is there some way to easily bypass duplicate errors? | 22:21 |
pcardune | wjohnsto`ACC, if name not in container: container[name] = whateverObject | 22:22 |
pcardune | instead of just container[name] = whateverObject | 22:22 |
wjohnsto`ACC | ok | 22:22 |
wjohnsto`ACC | else: pass | 22:22 |
eldar | you don't need else | 22:23 |
eldar | if you're gonna put pass in it :) | 22:23 |
Lumiere | if you don't need to do anything with else | 22:23 |
Lumiere | don't put it in there | 22:23 |
Lumiere | it just looks ugly | 22:23 |
Lumiere | and drives me up the wall | 22:23 |
*** Aiste has joined #schooltool | 22:33 | |
*** whaddon has joined #schooltool | 22:42 | |
whaddon | pcardune: How do I access the security policy for timeclock in python | 22:43 |
pcardune | whaddon: what aspect of the security policy? | 22:43 |
whaddon | the ISecurityPolicy object | 22:44 |
pcardune | what is your usecase? | 22:45 |
pcardune | or what are you trying to do with it? | 22:45 |
whaddon | Use the checkPermission method | 22:46 |
pcardune | you shouldn't need to get the SecurityPolicy to use the checkPermission method | 22:46 |
whaddon | What should I use? | 22:47 |
*** bvuong has left #schooltool | 22:47 | |
pcardune | just say checkPermission('timclock.somepermission', self.request.principal) | 22:47 |
whaddon | Where do I import a checkPermission method that is not part of a class | 22:48 |
pcardune | whaddon: from zope.security import checkPermission | 22:50 |
whaddon | Thank you | 22:50 |
*** mattva01 has joined #schooltool | 22:54 | |
smalekgh | pcardune: ping | 22:57 |
*** smalekgh has left #schooltool | 22:57 | |
*** smalekgh has joined #schooltool | 22:58 | |
smalekgh | pcardune: ping | 22:58 |
pcardune | smalekgh: pong eldar ping | 22:58 |
smalekgh | lol >_< Uh, what does 'inconsistent whitespace' mean to you? | 22:58 |
Makorihi | ValueError: line 11 of the docstring for browser.txt has inconsistent leading whitespace: '\r' is the error we aquired | 22:59 |
fsufitch | pcardune, if i want to attach the page for selecting which people to appear on the barcode printout to the persons/ thing so it looks like persons/barcodeselect.html, what do i put in the for= attribute in the zcml definition of the tag? | 23:00 |
fsufitch | eldar suggested IPersonContainer | 23:00 |
fsufitch | where might I be able to find this class? | 23:00 |
fsufitch | interface | 23:01 |
fsufitch | thing | 23:01 |
pcardune | fsufitch: schooltool.person.interfaces | 23:01 |
fsufitch | thx | 23:01 |
pcardune | Makorihi: that looks like a windows thing | 23:01 |
smalekgh | wha? | 23:02 |
fsufitch | haha pwned by windoze!! | 23:02 |
pcardune | Makorihi: make sure you are using just spaces, and just editing files in linux | 23:02 |
smalekgh | bu-bu-bu-bu-but... | 23:02 |
smalekgh | we're doing this ON maddog! >_< | 23:02 |
pcardune | Lumiere might be able to help you | 23:02 |
pcardune | something to do with the default carriage return being used? | 23:03 |
Lumiere | hmm | 23:03 |
pcardune | windows puts in \c\r or something like that, and unix is just \n? | 23:03 |
Lumiere | yes | 23:03 |
Lumiere | unix2dos and dos2unix | 23:03 |
Lumiere | on maddog | 23:03 |
Lumiere | I think | 23:03 |
smalekgh | dos2unix sounds good | 23:03 |
smalekgh | it isn't installed... | 23:04 |
smalekgh | the command I mean | 23:04 |
Lumiere | sec | 23:04 |
smalekgh | did you get it installed? | 23:05 |
Lumiere | yes | 23:07 |
Lumiere | it is installed now | 23:07 |
smalekgh | yayayayay | 23:07 |
Lumiere | lol | 23:11 |
wjohnsto`ACC | jelkner: ping | 23:22 |
smalekgh | pcardune: ping ping ping >_< | 23:23 |
pcardune | pong? | 23:23 |
smalekgh | I scored on you twice | 23:23 |
smalekgh | anyways... we happen to have failing functional tests because they don't import properly | 23:23 |
smalekgh | apparently, it wants our ftesting.zcml file to be in the SchoolTool directory | 23:24 |
smalekgh | is there any way to make it recognize we have it in SchoolTool/src/scheduling/ftesting.zcml? | 23:24 |
*** Aiste has quit IRC | 23:25 | |
wjohnsto`ACC | jelkner: ping! come on now | 23:27 |
wjohnsto`ACC | https://svn.schooltool.org/trac/cando/wiki/WorkSessions | 23:27 |
wjohnsto`ACC | brittney didn't think we had class! | 23:27 |
wjohnsto`ACC | since it's June 26 | 23:28 |
*** wjohnsto`ACC is now known as wjohnsto | 23:29 | |
smalekgh | Quick clarification please: Pinging is meant to be an attention getter. However, is its usage meant to be after or before the question/comment/statement/response? | 23:34 |
smalekgh | pcardune: ping | 23:37 |
smalekgh | (you're probably getting pretty exhasperated by my incessant pinging) | 23:38 |
pcardune | ummm | 23:38 |
pcardune | smalekgh: let me look at how you have it on maddog | 23:39 |
pcardune | smalekgh: where should I look? | 23:39 |
smalekgh | just try running python2.4 test -fm1 scheduling | 23:40 |
smalekgh | and it wants ftesting.zcml in Schooltool/ | 23:40 |
pcardune | smalekgh: yes, but what user directory are you working in? | 23:40 |
smalekgh | oh | 23:40 |
smalekgh | jmohamed | 23:40 |
pcardune | smalekgh: make your ftests.py look more like the one in cando/journal/browser | 23:42 |
smalekgh | kk | 23:42 |
*** bnguyen has joined #schooltool | 23:53 | |
wjohnsto | bnguyen: join #cool | 23:53 |
wjohnsto | wait | 23:53 |
wjohnsto | not | 23:53 |
wjohnsto | #bad | 23:53 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!