*** th1a has joined #schooltool | 00:02 | |
*** pcardune has joined #schooltool | 00:59 | |
pcardune | srichter: are you around? | 04:30 |
---|---|---|
povbot` | /svn/commits: * pcardune committed revision 5844: | 05:18 |
povbot` | /svn/commits: I received the user story to be able to inherit specific requirements rather than inheriting an entire base. Now, if you try to add a requirement (via __setitem__) that is already parented, it will wrap it in InheritedRequirement. | 05:18 |
povbot` | /svn/commits: Stephan, I hope you're ok with this. | 05:18 |
*** srichter has quit IRC | 12:09 | |
*** pcardune has quit IRC | 12:13 | |
*** pcardune has joined #schooltool | 12:13 | |
povbot` | /svn/commits: * pcardune committed revision 5845: | 12:37 |
povbot` | /svn/commits: undid previous revision which was accidentally commited. sorry. | 12:37 |
*** srichter has joined #schooltool | 12:38 | |
*** huynh has joined #schooltool | 16:58 | |
povbot` | /svn/commits: * pcardune committed revision 5846: | 17:05 |
povbot` | /svn/commits: Made a PersistentInheritedRequirement class for requirements that are inherited, but not from bases. They need to be permanently wrapped rather than wrapped on the fly. Also made the IInheritedRequirement interface for easier recognition of both implementations as being Inherited Requirements. Finally, I had a long conversation with a python developer about __iter__ | 17:05 |
povbot` | /svn/commits: in the InheritedRequirement class. In short: don't delegate __iter__ dynamically by instance because the iter() function only uses the class definitions for complicated reasons involving C code. | 17:05 |
*** jinty has joined #schooltool | 17:31 | |
*** ignas has joined #schooltool | 18:24 | |
*** huynh has joined #schooltool | 18:24 | |
*** rjelliso has joined #schooltool | 18:27 | |
*** srichter has quit IRC | 18:27 | |
rjelliso | Hi | 18:28 |
huynh | morning, robbie | 18:28 |
rjelliso | It still feels like it's nighttime : < (SOMEBODY set his clock the wrong way and lost like 23948723 hours of sleep) | 18:29 |
rjelliso | But morning, anyway : > | 18:30 |
pcardune | well its 8:30am here :) | 18:31 |
rjelliso | *sigh* | 18:34 |
rjelliso | Daylight savings time is stupid, anyway, it's always cloudy! What's the point of saving daylight when it's cloudy?! | 18:34 |
* rjelliso is cranky in the mornings. | 18:34 | |
*** jelkner has joined #schooltool | 18:41 | |
jelkner | pcardune: good morning! | 18:41 |
pcardune | good morning | 18:41 |
pcardune | jelkner: you won't believe the success of me and Dave's meeting | 18:42 |
jelkner | i heard | 18:42 |
jelkner | fantastic! | 18:42 |
pcardune | jelkner: I've got all the hard parts of what we talked about basically implemented | 18:42 |
jelkner | wow! | 18:42 |
jelkner | ok, we have 15 minutes before class, let's take time for a bit of planning | 18:43 |
pcardune | sure | 18:43 |
jelkner | first of all, due to the different situations of the participants, skills levels are starting to really spread out among the participants | 18:44 |
*** wdickers has joined #schooltool | 18:44 | |
jelkner | wdickers: good morning will! | 18:44 |
wdickers | morning jelkner, so you remembered to turn your clocks forward? | 18:44 |
jelkner | i was just about to say "wdickers is leading the pack" ;-) | 18:44 |
jelkner | we did | 18:45 |
wdickers | hehe, well speak of the devil | 18:45 |
pcardune | (thankyou kubuntu) | 18:45 |
jelkner | anyway, linda and i are both behind, and likely to stay that way til summer | 18:45 |
jelkner | will and robbie have class time to work on this each day | 18:45 |
jelkner | linda doesn't | 18:46 |
jelkner | i would say the best way to proceed is to take will and robbie as far and as fast as you can | 18:46 |
pcardune | yeah, classtime is definitely a major plus | 18:46 |
jelkner | when summer starts they will be able to pair with us stragglers to bring us up to speed | 18:47 |
jelkner | btw. i will only be able to stay for about the 1st 20 minutes of class today | 18:48 |
jelkner | and we need to start out talking about tomorrows meeting at the NSF (national science foundation) | 18:48 |
pcardune | well, you know more about that than i do, i assume | 18:48 |
jelkner | we need to make sure will, linda, and robbie are ready to give what dave calls the "elevator speach" | 18:49 |
wdickers | so...does anyone know where it is? | 18:49 |
jelkner | on CanDo | 18:49 |
jelkner | yes, it is at the NSF | 18:49 |
jelkner | i'll get you there, so don't sweat it | 18:49 |
rjelliso | jelkner: elevator speech? *boggle* | 18:49 |
huynh | and we're coming back at five? | 18:49 |
jelkner | yes | 18:49 |
wdickers | hehe, okay | 18:50 |
jelkner | ok, let me describe "elevator speech" | 18:50 |
jelkner | you are at the meeting on monday, and some man in a suit walks up to you and says, "so Robbie, what is this CanDo thing all about?" | 18:50 |
jelkner | you need to be able to give him a smooth, 1 minute (hence "elevator") response that describes in broad terms what we are doing | 18:51 |
pcardune | sounds like we need secret agent ear pieces. | 18:51 |
jelkner | lol | 18:51 |
wdickers | brb | 18:51 |
pcardune | jelkner: i'd like to learn about this elevator thing. I am poor at giving smooth 1 minute overviews about things I am very excited about. | 18:51 |
jelkner | no, just a few short public speaking lessons | 18:52 |
huynh | pcardune, you ramble? | 18:52 |
pcardune | huynh: oh, to say the least, yes | 18:52 |
jelkner | ok, let's start with you then | 18:52 |
jelkner | so, paul, what is CanDo? | 18:52 |
pcardune | CanDo is primarily a philosophy | 18:53 |
jelkner | oops | 18:53 |
jelkner | a philosophy? | 18:53 |
rjelliso | err? | 18:53 |
pcardune | secondly, it is a very advanced peice of software that brings that philosophy to the classroom? | 18:53 |
jelkner | that sounds like it will take a looong time to explain | 18:53 |
pcardune | lol | 18:53 |
pcardune | that's true | 18:53 |
jelkner | how about something like this: | 18:54 |
pcardune | it is a... Competency Application for Neutralizing Deficiencies in Objectives | 18:54 |
rjelliso | woah. | 18:55 |
jelkner | CanDo is a software application written for Virginia Career and Technical Education teachers to empower them to effectively track the concrete skills acquired by their students. | 18:55 |
pcardune | 10 seconds down, 50 to go | 18:55 |
huynh | can we mention a GUI? does CanDo have one? | 18:55 |
huynh | for usability purposes | 18:56 |
jelkner | It is also designed to empower students to understand what they are supposed to know and to enable them to actively monitor their own learning process | 18:56 |
jelkner | linda: CanDo is web based | 18:56 |
jelkner | pcardune: i already talked to welsh about giving the interns his presenation on CanDo (which rocks!) | 18:57 |
jelkner | but we won't have that in place by monday | 18:57 |
jelkner | a few other things about which the 3 interns should be aware: | 18:58 |
pcardune | they should take a look at the flash demo | 18:58 |
jelkner | is there a flash demo? | 18:58 |
pcardune | yeah, it is incredible | 18:59 |
pcardune | i'll see if i can find it | 18:59 |
jelkner | well, then, that's what we want | 18:59 |
rjelliso | I think there *is* a demo server where you can test CanDo out | 18:59 |
rjelliso | Without installing it, that is | 18:59 |
rjelliso | Oh, found the flash video. | 19:00 |
jelkner | where? | 19:00 |
rjelliso | http://www.careercenter.arlington.k12.va.us/cando/videos/cando_intro.swf | 19:00 |
pcardune | that needs to be put on the schooltool site | 19:01 |
wdickers | back | 19:04 |
jelkner | we also need to do some work this summer to make sure that the presentation works with gpl flash (it doen'st now) | 19:05 |
pcardune | gpl flash exists? | 19:05 |
jelkner | absolutely | 19:05 |
jelkner | and it is in rapid development | 19:05 |
tiredbones | Hi all, I trust everyone made it trhought the time warp. | 19:05 |
jelkner | good morning | 19:06 |
wdickers | morning tiredbones....and I lost an hour T-T | 19:06 |
rjelliso | tiredbones: there's no chance of me getting the time right, I still think it's 2000. but g'morning, anyway : > | 19:06 |
wdickers | jelkner: how do we play a .swf file on ubuntu? | 19:07 |
pcardune | install flash | 19:07 |
wdickers | err where can I do that? | 19:08 |
rjelliso | the flash player download site thingy will automatically detect your OS. | 19:08 |
pcardune | just go to a page that has flash on it | 19:08 |
*** flint has joined #schooltool | 19:08 | |
pcardune | click on install plugin (it will be obvious where to click) | 19:08 |
tiredbones | jelkner, In one simple sentence, what is CanDo? | 19:08 |
rjelliso | wdickers: http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash | 19:08 |
pcardune | then it will eventually direct you to a page for manual installation | 19:08 |
flint | this damn time change, sorry I am late... | 19:08 |
jelkner | CanDo is a competency tracking application | 19:09 |
flint | wdickers, regarding flash, have your tried automatix? | 19:10 |
huynh | this is what I have right now: | 19:10 |
huynh | "CanDo? It's an interesting project. It's a software that is going to be used by Virginia Career and Techinial Education teachers and students. With the web-based software, teachers will be able to track their students' projects, and students will be able to track their own progress. The fact that it is web-based helps a lot in the usability factor because it can be accessed anywhere. " | 19:10 |
huynh | I condense everything, so my speech won't be a minute | 19:11 |
*** carljm has joined #schooltool | 19:11 | |
tiredbones | huynh, So you have to have a project? | 19:12 |
flint | huynh, good afternoon linda | 19:12 |
huynh | well, it is a task list thing | 19:12 |
wdickers | flint: nope, I'm using rjelliso's site | 19:12 |
pcardune | ok, i successfully installed it | 19:12 |
pcardune | it is very easy | 19:12 |
carljm | hi all | 19:13 |
pcardune | it even has sound! | 19:13 |
carljm | sorry i missed class last week | 19:13 |
huynh | hey, carljm | 19:13 |
wdickers | what's the installation path for mozilla? this doesn't work /usr/lib/mozilla) | 19:14 |
flint | pcardune, i missed the url.... i would be most interested in rjelliso's site, as the automatix method is not welcome among the ubuntu development community. | 19:14 |
pcardune | wdickers: I just used the one automatically chosen by the installer | 19:15 |
wdickers | there isn't one for me, I'm in root btw | 19:15 |
pcardune | flint: if you are using firefox, just go to a page with flash on it, and you will see a big fat button that says "install plugin" | 19:16 |
pcardune | go from there (that's what I did) | 19:16 |
pcardune | that demo screencast is really great | 19:17 |
flint | gotcha... i already got it on this machine... will test this on edubuntu dapper flight 5 | 19:18 |
pcardune | http://www.schooltool.org/products/cando/documentation/video/cando-2005-demo | 19:18 |
pcardune | I put it on the schooltool site under cando documentation | 19:18 |
flint | this has sound eh? | 19:19 |
pcardune | flint: yep, dave welsh is speaking | 19:20 |
jelkner | ok, it isn't working for me, and i don't have time to mess with it now | 19:21 |
jelkner | make note of the url and watch it when you can | 19:21 |
flint | pcardune, i'll bet he is, I know my sound is working... thanks. | 19:21 |
jelkner | we will make sure this summer that we save it in a way that will work with gpl flash, then playing it on ububuntu will be transparent | 19:22 |
jelkner | (it isn't now) | 19:22 |
flint | jelkner, i understand wink can do this in a pure linux environment. | 19:22 |
jelkner | wink? | 19:22 |
flint | wink | 19:22 |
jelkner | http://www.debugmode.com/wink/ | 19:23 |
jelkner | cool! | 19:23 |
jelkner | i'll follow up with that and try it out | 19:23 |
tiredbones | I guess I have to install my sound system? | 19:23 |
jelkner | ok, let's move on | 19:23 |
jelkner | i need to leave to pick up my kids | 19:24 |
flint | how did Welsh pick an non compatible audio codec? I have run these flash things before on my system... | 19:24 |
jelkner | so i'll check back later to find out what i miss | 19:24 |
pcardune | alright | 19:24 |
flint | jelkner, they are getting quite large... are you up to it? :^) | 19:24 |
jelkner | pcardune: i think that is enough prep for tomorrow, back to learning new things ;-) | 19:25 |
pcardune | ok | 19:25 |
pcardune | so, as I understand, you all figured started working with bzr | 19:26 |
pcardune | (minus the figured) | 19:26 |
pcardune | so i presume that you all have bzr branches in your home directories? | 19:27 |
wdickers | mmhm, and it's annoying to remember to keep commiting >.< | 19:27 |
*** jelkner has quit IRC | 19:28 | |
pcardune | ok, so I also suggested that you all work together to make implementations of the worklog stuff | 19:28 |
pcardune | how far did you get working together? (I know will added a number of new classes, which are in the main bzr branch) | 19:29 |
pcardune | I'd like to go over the implementation before we move on | 19:30 |
pcardune | does everyone have an updated branch? | 19:32 |
* tiredbones BOOKMARK | 19:33 | |
wdickers | what do you mean by 'updated'? | 19:33 |
pcardune | I mean, the latest revision | 19:33 |
pcardune | as in, if you are in the timeclock directory | 19:33 |
pcardune | and it is a bzr branch (which is should be) | 19:34 |
flint | where should we pull from? | 19:34 |
pcardune | then you should be able to type "bzr update" | 19:34 |
pcardune | flint: pull from http://dc.ubuntu-us.org/~pcardune/timeclock | 19:34 |
flint | result of bzr update: | 19:34 |
flint | bzr: ERROR: exceptions.IOError: [Errno 13] Permission denied: u'/home/wdickers/zope3/lib/python/timeclock/.bzr/branch-lock' | 19:34 |
flint | at /usr/lib/python2.4/site-packages/bzrlib/lock.py line 47 | 19:34 |
flint | in _open | 19:34 |
flint | pcardune, i will do the pull you advise... | 19:35 |
flint | result: | 19:36 |
flint | bzr pull http://dc.ubuntu-us.org/~pcardune/timeclock | 19:36 |
flint | bzr: ERROR: exceptions.IOError: [Errno 13] Permission denied: u'/home/wdickers/zope3/lib/python/timeclock/.bzr/branch-lock' | 19:36 |
flint | at /usr/lib/python2.4/site-packages/bzrlib/lock.py line 47 | 19:36 |
flint | in _open | 19:36 |
wdickers | I got | 19:36 |
wdickers | 0 revision(s) pulled. | 19:36 |
flint | does will have to close or commit before I can pull or update? | 19:36 |
pcardune | flint: why don't you make a fresh branch (as in "bzr branch http://dc.ubuntu-us.org/~pcardune/timeclock timeclock")" | 19:37 |
flint | worth a try... | 19:37 |
pcardune | rjelliso and huynh how are you doing? | 19:37 |
pcardune | tiredbones: did you also get set up using bzr? | 19:37 |
pcardune | flint: first delete the timeclock directory | 19:38 |
tiredbones | pcardune, I have it installed, but I haven't played with it yet. | 19:38 |
pcardune | tiredbones: if you've used any other revision control system, it is *very similar*, i suggest performing the same command I advised flint to do | 19:39 |
rjelliso | Likewise here, it's installed and I've done the tutorial, haven't fiddled around with it too much yet | 19:39 |
huynh | ditto robbie | 19:40 |
flint | indeed "bzr branch http://dc.ubuntu-us.org/~pcardune/timeclock" worked well. | 19:41 |
pcardune | well, it is very simple to use. Have each of you performed this command? | 19:41 |
rjelliso | The bzr branch? | 19:41 |
wdickers | yes, got flash working at last =) | 19:42 |
pcardune | yes | 19:42 |
carljm | yes | 19:42 |
pcardune | ok, so lets take a look at what will put in there | 19:43 |
pcardune | first open up timeclock/interfaces.py | 19:43 |
pcardune | this all looks good except for the commented out person attribute in IWorkLog | 19:44 |
pcardune | wdickers: were you having problems with this? | 19:44 |
wdickers | the person attribute? Yes | 19:45 |
wdickers | Except I don't remember what they were. Let me try runing it uncommented | 19:45 |
wdickers | File "/home/wdickers/zope3/lib/python/timeclock/interfaces.py", line 54, in IWorkLog | 19:46 |
wdickers | person = Object( | 19:46 |
wdickers | zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/home/wdickers/zope3/etc/site.zcml", line 7.2-7.55 | 19:46 |
wdickers | ZopeXMLConfigurationError: File "/home/wdickers/zope3/etc/package-includes/timeclock-configure.zcml", line 1.0-1.31 | 19:46 |
wdickers | ZopeXMLConfigurationError: File "/home/wdickers/zope3/lib/python/timeclock/configure.zcml", line 3.2 | 19:46 |
*** alga has joined #SchoolTool | 19:46 | |
wdickers | NameError: name 'Object' is not defined | 19:46 |
wdickers | oh wait, let me try importing Object | 19:46 |
pcardune | also another thing, whenever you are editing these files, or just using python in general, use spaces instead of tabs | 19:46 |
pcardune | for each new level of indentation, you should add 4 spaces | 19:47 |
wdickers | haha, that worked | 19:47 |
wdickers | really? Okay, 4 it is then | 19:47 |
pcardune | with most editors you can make the tab button use spaces instead of actual tabs | 19:47 |
wdickers | what about vi? Since that's what I have to use on the command line | 19:48 |
rjelliso | I'm sure there's a way to do it, probably in the .vimrc | 19:49 |
pcardune | in command mode, type ":set et" | 19:49 |
pcardune | and ":set ts=4" i believe | 19:49 |
pcardune | if you put that in .vimrc, you won't have to type it in every time you start up vim | 19:49 |
wdickers | where is .vimrc? | 19:50 |
*** jinty has quit IRC | 19:50 | |
wdickers | is it in $home? Because apparently I don't have one | 19:50 |
pcardune | wdickers: just create one | 19:51 |
wdickers | And what should be in it, just :set ts=4 ? | 19:52 |
pcardune | umm, i think you just do the same thing except without the colon | 19:53 |
wdickers | well I have | 19:54 |
wdickers | :set et | 19:54 |
wdickers | :set ts=4 | 19:54 |
rjelliso | Nah. | 19:54 |
rjelliso | No colon. | 19:54 |
wdickers | and it seems to work | 19:54 |
flint | ok editing interfaces .py and fixing the container broke the code for me. | 19:54 |
pcardune | ok, I'm copying what I have onto the maddog server | 19:56 |
flint | "NameError: name 'Object' is not defined | 19:56 |
flint | " god I wish i understood this stuff... I have tried. | 19:56 |
wdickers | you have to import Object from zope.schema | 19:56 |
pcardune | at the top of the file | 19:57 |
pcardune | what I have is available at http://maddog.yhspatriot.net/~pcardune/timeclock | 19:57 |
flint | add object with a comma | 19:57 |
flint | this worked...from zope.schema import Text, Datetime, Object | 19:58 |
pcardune | ok, so judging by our amount of conversation about the interfaces two classes ago, I assume everyone understands what's going with the interfaces | 19:59 |
pcardune | if not, please stop em | 19:59 |
pcardune | me | 19:59 |
pcardune | now lets look at the implementation (which is in work.py) | 19:59 |
pcardune | since we uncommented the person attribute in the interface, we need to add it in the implementation | 20:01 |
wdickers | right, but how does it know which person we want to use? | 20:01 |
pcardune | wdickers: it doesn't, and we won't worry about that for now. | 20:02 |
wdickers | okay | 20:02 |
pcardune | all we want to do is put a person attribute in the WorkLog class and set it's value to None | 20:02 |
wdickers | What do you mean by None, "" or litterally None? | 20:03 |
flint | pcardune, does it matter where we put it in work.py like the bottom or the top? | 20:03 |
carljm | btw, in the branch i got from pcardune just now there was also a typo in browser/configure.zcml that kept me from running it | 20:03 |
flint | carljm, ok what was it? what line? | 20:04 |
wdickers | carljm: where was it? | 20:04 |
pcardune | flint: you want to put the person attribute in the WorkLog class | 20:04 |
pcardune | carljm: was that the one that said work.interfaces instead of timeclock.interfaces? | 20:05 |
carljm | wdickers,: yep, that one | 20:05 |
flint | that is currently "class WorkLog(BTreeContainer): | 20:05 |
flint | " eh? | 20:05 |
wdickers | xD whoops, sorry | 20:05 |
carljm | flint: around line 60 | 20:05 |
carljm | flint: i mean 78 :-) | 20:06 |
carljm | flint: nope, I mean 108 | 20:06 |
wdickers | *checks* but that part was commented out | 20:07 |
wdickers | I mean in the browser/configure | 20:07 |
carljm | hmm, not in what I pulled from pcardune | 20:07 |
carljm | anyway, I fixed that, and the indentation | 20:07 |
wdickers | okay | 20:07 |
carljm | can be pulled from /home/cmeyer/zope3/lib/python/timeclock on maddog | 20:07 |
pcardune | ok, so flint, do you have the person attribute in place? | 20:08 |
*** jelkner has joined #schooltool | 20:08 | |
wdickers | Would it be like this? | 20:08 |
wdickers | person = None | 20:08 |
flint | carl i am looking at line 109 in timeclock/browser/configure.zcml, and it looks like this: for="work.interfaces.IWorkLogEntry" is that correct? | 20:09 |
pcardune | wdickers: yes, that's right | 20:09 |
pcardune | flint: no, it should say timeclock.interfaces instead of work.interfaces | 20:09 |
flint | pcardune, got it. | 20:10 |
pcardune | good | 20:11 |
wdickers | corrected and committed | 20:11 |
flint | interestingly enough that was not a fatal error... | 20:11 |
pcardune | so, this is pretty strait forward, we are keeping it very simple for now | 20:11 |
flint | but adding person = none appears to be a fatal error... to the runzope start anyway... | 20:12 |
pcardune | flint: well, it should be person = None (with a capital N) | 20:13 |
flint | yep, taking it out of work.py and python started right back up... | 20:13 |
wdickers | working for me | 20:13 |
flint | /python/zope3/ | 20:13 |
flint | there is nothing I like more than a language that is case sensitive... | 20:14 |
carljm | except I get a system error if I actually try to add a person | 20:14 |
jelkner | can i sneak a quick word in here about tomorrow? | 20:14 |
pcardune | jelkner: sure | 20:15 |
jelkner | wdickers, rjelliso, huynh: you will need to bring a photo id to get into NSF | 20:15 |
huynh | school id? | 20:15 |
rjelliso | Oh dear : < | 20:15 |
jelkner | if that is all you have | 20:15 |
rjelliso | What else besides a school ID could we bring? | 20:16 |
jelkner | school id will have to do, i think | 20:16 |
jelkner | passport would be better | 20:16 |
rjelliso | Ah... I could probably bring that, long as i don't lose it | 20:16 |
rjelliso | : > | 20:16 |
flint | jelkner, what kind of facist state does not allow children into government buildings? | 20:16 |
huynh | me too | 20:16 |
jelkner | anyway, don't dress to dumpy | 20:16 |
rjelliso | Define 'dumpy'? | 20:16 |
jelkner | wdickers: i'll pick you up at the glass doors at 3:25 pm | 20:17 |
rjelliso | Clean, more-or-less casual clothes okay? | 20:17 |
wdickers | okay, see you there jelkner | 20:17 |
huynh | jeans? | 20:17 |
jelkner | huynh: i'll pick you up by the pool at 3:40 pm | 20:17 |
jelkner | huynh: sure | 20:17 |
huynh | okay | 20:17 |
jelkner | cya tomorrow... | 20:17 |
jelkner | sorry for the interruption | 20:18 |
flint | rjelliso, i can define facist... come to vermont and tour the government buildings without "your papers" | 20:18 |
flint | :^) | 20:18 |
rjelliso | Haha! | 20:18 |
*** jelkner has quit IRC | 20:18 | |
rjelliso | I'm tempted to do that just to give ye olde governmente officiales a bad time. : > | 20:18 |
flint | rjelliso, i sincerely wish this were funny... | 20:18 |
flint | rjelliso, do not fight battles you cannot win... I shall return. | 20:19 |
pcardune | ok | 20:20 |
pcardune | so where were we? | 20:20 |
carljm | pcardune: the branch I got from you an hour ago also had the old "container/contained" typo bug back in it | 20:20 |
carljm | in interfaces.py, line 23 | 20:20 |
pcardune | oh | 20:21 |
pcardune | I have an updated branch | 20:21 |
pcardune | I will upload it in a minute | 20:21 |
carljm | anyway, i've got a working branch now in /home/cmeyer/timeclock | 20:22 |
carljm | with all the indentation standardized | 20:22 |
flint | what file is the "container/contained" typo in | 20:22 |
carljm | flint: interfaces.py | 20:23 |
carljm | line 23 | 20:23 |
carljm | if you got the same branch off dc.ubuntu-us.org that I did | 20:23 |
flint | carljm, IContainer? | 20:24 |
flint | carljm, class IPersonContainer(IContainer): | 20:24 |
flint | ? | 20:24 |
carljm | flint: IPersonContained should inherit IContained, IPersonContainer should inherit IContainer | 20:24 |
carljm | just watch the r's and d's :-) | 20:25 |
flint | carljm, line 24 in my stuff... | 20:25 |
rjelliso | One sec, el luncho | 20:26 |
flint | looks good... | 20:27 |
pcardune | ok, i have a working branch on http://dc.ubuntu-us.org/~pcardune/timeclock | 20:27 |
flint | pcardune, mine is currently working should i pull from you? | 20:28 |
pcardune | no, if it's working, you are fine | 20:28 |
flint | pcardune, i define working as no major zope3 startup errors when you runzope.... how's that for a loose definition? | 20:29 |
pcardune | that's passable | 20:29 |
carljm | flint: the only reason you might want to merge is to fix the indentation stuff - if you edit a file with tabs in it and later use spaces, python will choke | 20:29 |
flint | carljm, i fixed those in my branch, the reason to update would be to sync for bughunts... | 20:30 |
pcardune | ok | 20:31 |
pcardune | so, we've gone over the interfaces and implementation | 20:31 |
pcardune | will started making some browser views (auto generated forms) | 20:31 |
pcardune | although they don't work | 20:31 |
pcardune | so if everyone is ok with the interfaces and implementation, open up timeclock/browser/configure.zcml | 20:32 |
pcardune | You can start your zope server | 20:33 |
pcardune | and browser to the main screen | 20:34 |
pcardune | log in | 20:34 |
pcardune | and click on "Top" | 20:34 |
pcardune | so that you see the add menu on the left | 20:34 |
pcardune | Will has defined an addform for IWorkLog | 20:34 |
pcardune | (around line 60 in browser/configure.zcml) | 20:35 |
flint | got a "Work Log" but no IWorkLog... | 20:35 |
pcardune | flint: the IWorkLog is in the configuration | 20:35 |
pcardune | in the display you should see "Add Work Log" | 20:35 |
pcardune | if you click on it you will get a server error | 20:36 |
wdickers | yup | 20:36 |
flint | I see "Work Log" under the "Add" menu. | 20:36 |
flint | which I believe is what /timeclock/browser/configure.zcml calls for. | 20:37 |
flint | at line 60 | 20:37 |
pcardune | flint: yes, click on that | 20:37 |
pcardune | you should get an error like ComponentLookupError: ((<zope.schema._field.Object object at 0xb3d52fcc>, <zope.publisher.browser.BrowserRequest instance URL=http://localhost:8080/@@+/action.html>), <InterfaceClass zope.app.form.interfaces.IInputWidget>, u'') | 20:38 |
flint | new screen with "A system error occurred." is the result of clicking on this... | 20:38 |
pcardune | if you go to the command line where the zope server is running, it will show you the traceback | 20:38 |
pcardune | with an error like that at the end | 20:38 |
pcardune | one of the many skills you will develope in working with zope is learning how to decipher error messages | 20:39 |
wdickers | yeah, but I have some more junk after that | 20:39 |
wdickers | File "/usr/local/src/Zope3/src/zope/component/__init__.py", line 154, in getMultiAdapter | 20:39 |
wdickers | raise ComponentLookupError(objects, interface, name) | 20:39 |
wdickers | ComponentLookupError: ((<zope.schema._field.Object object at 0xb45785ac>, <zope.publisher.browser.BrowserRequest instance URL=http://maddog.yhspatriot.net:8082/@@+/action.html>), <InterfaceClass zope.app.form.interfaces.IInputWidget>, u'') | 20:39 |
wdickers | 69.143.168.221 - - [2/Apr/2006:13:37:05 -0400] "GET /@@+/action.html?type_name=AddWorkLog.html HTTP/1.1" 500 84 "http://maddog.yhspatriot.net:8082/@@contents.html" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051010 Firefox/1.0.7 (Ubuntu package 1.0.7)" | 20:39 |
wdickers | 69.143.168.221 - - [2/Apr/2006:13:37:05 -0400] "GET /favicon.ico HTTP/1.1" 404 4241 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051010 Firefox/1.0.7 (Ubuntu package 1.0.7)" | 20:39 |
pcardune | yeah, you will, i pasted the relevant portion | 20:39 |
wdickers | okay | 20:39 |
pcardune | ComponentLookupError: ((<zope.schema._field.Object object at 0xb3d52fcc>, <zope.publisher.browser.BrowserRequest instance URL=http://localhost:8080/@@+/action.html>), <InterfaceClass zope.app.form.interfaces.IInputWidget>, u'') | 20:39 |
pcardune | so everyone look at that error | 20:39 |
flint | I am so happy to not be the only one with this error! | 20:39 |
pcardune | so the only thing that you will really be able to recognize is the part that says zope.schema._field.Object | 20:40 |
pcardune | and if you read up on auto generated forms, you will no what the word widget refers to | 20:41 |
pcardune | (from zope.app.form.interfaces.IInputWidget) | 20:41 |
carljm | it doesn't know how to display an entry form for an IPerson | 20:41 |
pcardune | so, we know there is a problem involving a schema field... of the Object type | 20:41 |
pcardune | carljm: exactly | 20:42 |
pcardune | so, zope has these preset "widgets" which are just pieces of html for entering different kinds of data | 20:42 |
pcardune | it has widgets for the Text, TextLine, Choice, List, and some others | 20:43 |
pcardune | one of the ones which it does not have a predefined widget for is the Object schema field | 20:43 |
flint | richter goes into great detail on how to use re to filter these widgets.... why? | 20:43 |
pcardune | as will said before "how is it going to know which person we want the work log to be for?" | 20:43 |
pcardune | basically, this is a difficult problem to solve. at least to difficult for there to be a predefined widget. Eventually we are going to have to define our own widget for selection a person | 20:44 |
flint | we know that the person is identified as a string of some type throught the widget interface. the person is not id'd as say html. | 20:44 |
pcardune | for selecting a person* | 20:45 |
flint | pcardune, I bet you mean something with the asterisk... | 20:45 |
pcardune | we aren't going to do that right now, because it is fairly involved and time consuming | 20:45 |
pcardune | i just mean that i meant to say "for selecting a person" instead of "for selection a person" | 20:45 |
pcardune | so, since we don't want to create a Person widget now, nor do we want to make custom add views, we have to find a way to circumvent the problem for now | 20:46 |
pcardune | we have to tell zope that we don't want to enter anything in person field, and not to display a widget for it | 20:47 |
pcardune | we have to edit the addform configuration in browser/configure.zcml | 20:47 |
pcardune | if you look up the addform zcml directive in apidoc (you should all know how to use apidoc by now) | 20:48 |
pcardune | you will see we have the option of specifying a "fields" attribute | 20:48 |
pcardune | (in fact, you can see the fields attribute in action for the Person addform (line 32) | 20:49 |
pcardune | anyways, we want to add the fields attribute to the addform for IWorkLog | 20:49 |
pcardune | does anyone have any idea what we want to put for the fields attribute? | 20:50 |
carljm | fields="" | 20:51 |
pcardune | carljm: that is a pretty good guess (that was my first guess) | 20:51 |
pcardune | unfortunately, if we put fields="", then it will just use the entire schema instead and we will have the same problem | 20:51 |
pcardune | we have to put something in fields | 20:52 |
wdickers | maybe list all the attributes except object? | 20:52 |
wdickers | s/object/person | 20:52 |
pcardune | wdickers: exactly, except that we don't have any other attributes | 20:52 |
wdickers | oh yeah, I'm thinking about WorkLogEntry | 20:52 |
pcardune | so, we have to create some other attribute for our worklog to have | 20:53 |
pcardune | wdickers: we want some really simple attribute | 20:53 |
pcardune | i suggest just making that same old generic "title" attribute | 20:53 |
pcardune | it's simple, fast, and title's seem to come in handy even when we don't realize it (we can always remove it later if we don't need it) | 20:54 |
pcardune | s/title's/titles | 20:54 |
pcardune | so, who needs help in doing this? (flint?) | 20:54 |
flint | pcardune, you might as well be speaking greek. | 20:55 |
pcardune | ok, think about what we are doing | 20:55 |
flint | pcardune, show me what to do... the line number reference in configure.zcml is not correct, and I am still looking for addform in the apidoc. but i found the apidoc. | 20:56 |
flint | huynh, lisa you got all this? | 20:56 |
huynh | it's coming along | 20:56 |
flint | huynh, courage my dear... | 20:57 |
*** ffsnoopy has joined #schooltool | 20:57 | |
wdickers | title = TextLine( | 20:57 |
wdickers | title = u"IWorkLog Title", | 20:57 |
wdickers | description = u"Title of IWorkLog", | 20:57 |
wdickers | required = False) | 20:57 |
wdickers | besides the horrible spacing, would that work? | 20:58 |
pcardune | wdickers: that works, except you probably want to say Work Log Title instead of IWorkLog Title | 20:58 |
wdickers | okay | 20:58 |
flint | put in the AddWorkLog.html area? | 20:59 |
wdickers | <addform | 21:00 |
wdickers | label="Add Work Log" | 21:00 |
wdickers | name="AddWorkLog.html" | 21:00 |
wdickers | schema="timeclock.interfaces.IWorkLog" | 21:00 |
wdickers | content_factory="timeclock.work.WorkLog" | 21:00 |
wdickers | permission="zope.ManageContent" | 21:00 |
wdickers | fields=title | 21:00 |
wdickers | /> | 21:00 |
wdickers | Is that how it should look? | 21:00 |
pcardune | flint: no, this is a schema field. It goes in the IWorkLog schema/interface (in interfaces.py) | 21:00 |
pcardune | wdickers: good, except title should have quotes | 21:01 |
*** lhuynh has joined #schooltool | 21:01 | |
wdickers | okay | 21:01 |
pcardune | ok, i have a working version on the dc.ubuntu-us.org branch | 21:02 |
wdickers | okay, mine is working too, I just had to import TextLine | 21:04 |
*** jinty has joined #schooltool | 21:04 | |
pcardune | ok, it's 2pm | 21:05 |
flint | pcardune, i did not find the working example at "http://maddog.yhspatriot.net/~pcardune/timeclock/" | 21:05 |
ffsnoopy | pcardune: i guess gaim doesn't support PMs | 21:05 |
ffsnoopy | i tried messaging you 5 mins ago | 21:06 |
pcardune | ffsnoopy: diddo. yeah, i thought so | 21:06 |
pcardune | that's because i said: "ok, i have a working version on the dc.ubuntu-us.org branch" | 21:06 |
ffsnoopy | jinty: are you there? | 21:06 |
wdickers | well it's past 2 and I must be going. See you all monday or next Sunday | 21:06 |
rjelliso | Back | 21:06 |
carljm | later | 21:07 |
pcardune | ffsnoopy: you should use xchat or konversation or some derivative | 21:07 |
*** wdickers has quit IRC | 21:07 | |
flint | pcardune,lets pretend that I know that and have a full url to this branch... :^) | 21:07 |
ffsnoopy | okay, ill install it | 21:07 |
ffsnoopy | brb | 21:07 |
*** ffsnoopy has left #schooltool | 21:07 | |
pcardune | flint: you should, i pasted it above. if you need it again, the full url is http://dc.ubuntu-us.org/~pcardune/timeclock | 21:07 |
jinty | ffsnoopy: yep | 21:08 |
flint | pcardune, one of the religious beliefs I hold about programming is that it never hurts to be pedantic... | 21:08 |
*** ffsnoopy has joined #schooltool | 21:08 | |
jinty | ffsnoopy: yep | 21:08 |
flint | pcardune, why make a confusing partial reference when a full reference is just a mouse click away? | 21:09 |
pcardune | flint: it saves me from typing :) i'll be more explicit in the future | 21:10 |
ffsnoopy | jinty: how do I use access the svn repository now that I have an account? | 21:10 |
flint | pcardune, explicit is such a better word than pedantic :^) | 21:10 |
jinty | ffsnoopy, try this: svn co svn+ssh://ffsnoopy@svn.schooltool.org/cando/trunk cando | 21:11 |
rjelliso | Gah, ought to be heading out now, dog must be walked... I'll see you next sunday (Monday) : > | 21:14 |
*** rjelliso has quit IRC | 21:14 | |
jinty | ffsnoopy: you should also subscribe to the cando checkins list: http://lists.schooltool.org/pipermail/cando-checkins/ | 21:15 |
*** srichter has joined #schooltool | 21:16 | |
*** th1a has quit IRC | 21:16 | |
flint | srichter, good afternoon Stephan, you up for lunch sometime next week? | 21:17 |
jinty | ffsnoopy: how's it going? | 21:18 |
*** carljm has quit IRC | 21:18 | |
*** huynh has quit IRC | 21:20 | |
*** lhuynh has quit IRC | 21:20 | |
flint | sksk | 21:29 |
*** flint has left #schooltool | 21:29 | |
*** pcardune has left #schooltool | 21:44 | |
*** jinty has quit IRC | 21:50 | |
*** Gwynn has quit IRC | 21:57 | |
*** alga has quit IRC | 21:57 | |
*** pcardune has joined #schooltool | 22:08 | |
*** alga has joined #SchoolTool | 22:28 | |
*** jinty has joined #schooltool | 22:30 | |
*** ffsnoopy has quit IRC | 22:40 | |
*** Gwynn has joined #schooltool | 22:55 | |
*** strichter has joined #schooltool | 23:06 | |
*** srichter has quit IRC | 23:07 | |
*** strichter is now known as srichter | 23:07 | |
*** strichter has joined #schooltool | 23:19 | |
*** srichter has quit IRC | 23:19 | |
*** strichter is now known as srichter | 23:23 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!