*** balor has joined #schooltool | 00:01 | |
*** replaceafill has joined #schooltool | 00:23 | |
*** balor has quit IRC | 01:08 | |
*** jelkner has quit IRC | 01:13 | |
*** replaceafill has quit IRC | 01:19 | |
*** aelkner__ has joined #schooltool | 01:41 | |
*** aelkner_ has quit IRC | 01:43 | |
*** fsufitch has joined #schooltool | 02:48 | |
*** fsufitch_ has joined #schooltool | 03:09 | |
*** fsufitch has quit IRC | 03:12 | |
*** fsufitch_ has quit IRC | 05:08 | |
*** th1a_ has joined #schooltool | 05:23 | |
*** th1a has quit IRC | 05:23 | |
*** th1a_ has quit IRC | 06:20 | |
*** balor has joined #schooltool | 10:23 | |
*** sstevens has joined #schooltool | 12:11 | |
*** aelkner__ has quit IRC | 12:29 | |
*** aelkner has joined #schooltool | 12:30 | |
*** balor has quit IRC | 12:32 | |
*** balor has joined #schooltool | 13:16 | |
*** balor has quit IRC | 13:54 | |
*** balor has joined #schooltool | 14:48 | |
*** ignas has joined #schooltool | 15:05 | |
*** th1a has joined #schooltool | 15:39 | |
sstevens | hey, does anyone know the state of the RESTive interface in the current schooltool trunk? | 15:46 |
---|---|---|
th1a | sstevens: I would say "deprecated." | 15:46 |
th1a | It could be revived someday. | 15:46 |
th1a | It was too much developer load to maintain. | 15:47 |
sstevens | hm, do you have any idea how out of date it is? if it could still be started and used in its current state? | 15:49 |
ignas | sstevens: nope | 15:49 |
th1a | sstevens: Why do you need it? | 15:49 |
ignas | sstevens: gone, completely in the last refactoring | 15:49 |
*** alga has joined #SchoolTool | 15:49 | |
sstevens | my final project for university is looking at developing a thick desktop client as a registration system | 15:50 |
ignas | sstevens: do you want full access to everything | 15:50 |
ignas | or just persons for example? | 15:50 |
* ignas does not know what a "registration system" is | 15:51 | |
balor | ignas: It's for marking students absent or present in class. | 15:51 |
ignas | hmm, attendance can be "marked" using ajax | 15:52 |
ignas | the missing part in schooltool.lyceum.journal is | 15:52 |
ignas | the list of possible meetings, and the list of students in the section | 15:52 |
ignas | you could technically gather meetings by using ical export of the section calendar i would guess | 15:53 |
ignas | so the bare minimum is adding a view of your choice that lists all the students in a section, and loads the existing data in some way | 15:53 |
balor | ignas: So there's an AJAX interface but it's just not RESTful? | 15:53 |
ignas | balor: well in that particular place - yes | 15:54 |
ignas | balor: not everywhere, just like REST never did attendance for us | 15:54 |
ignas | from what I can recall | 15:54 |
balor | ignas: And creating a new "Student List" view will allow AJAX querying of such a list? | 15:54 |
ignas | balor: it is doable, i mean - it's just a view | 15:55 |
balor | ignas: Great | 15:55 |
ignas | though you should probably look at schooltool.lyceum.journal first | 15:55 |
ignas | and see if it works for you | 15:55 |
ignas | and see what information you need | 15:55 |
ignas | and what you want to "input" | 15:55 |
balor | sstevens: For the start you could assume that you have "Student A" and "Student B" in a class and mark them present or absent. Then you could exteend schooltool.lyceum.journal with the Student List view. | 15:56 |
balor | sstevens: That'd give you what you want. | 15:56 |
sstevens | *reading* | 15:56 |
ignas | the data structures are like that: | 15:57 |
ignas | a list of all the sections or a list of sections for a teacher | 15:57 |
ignas | a list of students in a section | 15:57 |
ignas | a list of meetings for a section | 15:58 |
ignas | attendance or grades are in the intersections student vs meeting | 15:58 |
sstevens | Right, ok, that makes sense, so this is coming at it from a different way than before, hm. | 16:00 |
ignas | different from what? | 16:02 |
th1a | Our REST interfaces are in part a product of their own ambition. Originally SchoolTool only worked via REST. Then we started doing an HTML UI. So we had two complete, separate interfaces, so we ended up running two different servers to keep them straight (since HTTP Accept: doesn't really work the way it should)... | 16:02 |
sstevens | ignas: oh apologies, the way I was considering approaching it before | 16:02 |
th1a | ...so now we're at a point where if you can't start the REST server you can't use ANY REST. | 16:03 |
th1a | In most cases, people would have just kept these views mixed in with their other ones, which is technically incorrect, but they're just views. | 16:04 |
th1a | So, correct me ignas, if you wanted to you could pull out some of the old code and patch it in. | 16:04 |
ignas | th1a: two servers were because it is difficult to do PUT and DELETE requests in Zope3 as normal views | 16:04 |
th1a | OK. | 16:05 |
ignas | so we would have had the views in the same place too (probably), but could not do that without 2 different publishers properly | 16:05 |
ignas | the biggest underestimation was the fact that you must provide a full library for REST access, or else - it's easier to write the import/export code in schooltool directly rather than use REST | 16:06 |
ignas | which means - less work, faster operation | 16:06 |
th1a | Right -- we approached it as an all or nothing thing. Most people don't do that. | 16:07 |
sstevens | thank you for the history, it's very helpful. Initially the vague plan was to have a thick desktop client pulling its information down from the REST server and looking into a method to put information in the zodb | 16:07 |
ignas | adding the 3-4 views for attendance <-> fat client integration is easier than parsing all the XML's most of the time | 16:07 |
th1a | ignas: Yes, that's my point. | 16:07 |
sstevens | Oh, ok, sorry that point rather missed me. It makes sense now. | 16:09 |
*** dwelsh has joined #schooltool | 16:17 | |
dwelsh | th1a: you there? | 16:17 |
ignas | dwelsh: anything I could help you? | 16:24 |
aelkner | ignas: i'm getting an Assertion Errror when i run bin/buildout | 16:33 |
ignas | pictures or it didn't happen | 16:34 |
aelkner | NameError: global name 'log' is not defined | 16:34 |
ignas | in other words - could you please post/email/send the full traceback to me | 16:34 |
ignas | lisppaste5: url | 16:34 |
lisppaste5 | To use the lisppaste bot, visit http://paste.lisp.org/new/schooltool and enter your paste. | 16:34 |
lisppaste5 | aelkner pasted "bin/bujildout error" at http://paste.lisp.org/display/71018 | 16:35 |
ignas | ok, seems like your sandbox was not isolated from system packages properly | 16:36 |
ignas | aelkner: which branch are you doing this on? | 16:36 |
ignas | post me the url that svn info gives you | 16:37 |
aelkner | it happens with all my sandboxes | 16:37 |
ignas | hmm, very interestinf | 16:37 |
aelkner | Path: . | 16:37 |
aelkner | URL: https://svn.schooltool.org/cando/branches/cmr-6-plus-schoolyears | 16:37 |
aelkner | Repository Root: https://svn.schooltool.org/cando | 16:37 |
ignas | because make | 16:37 |
ignas | should be workingf | 16:37 |
ignas | i mean - in a clean repository | 16:37 |
aelkner | make works | 16:38 |
aelkner | but bin/buildout fails | 16:38 |
aelkner | and when i ran make, it didn't like it got the latest eggs | 16:39 |
ignas | post me bin/buildout | 16:39 |
aelkner | #!/home/aelkner/years_cando/cando/python/bin/python | 16:39 |
aelkner | import sys | 16:39 |
aelkner | sys.path[0:0] = [ | 16:39 |
aelkner | '/home/aelkner/.buildout/eggs/zc.buildout-1.1.1-py2.4.egg', | 16:39 |
aelkner | '/home/aelkner/.buildout/eggs/setuptools-0.6c8-py2.4.egg', | 16:39 |
aelkner | ] | 16:39 |
aelkner | import zc.buildout.buildout | 16:39 |
aelkner | if __name__ == '__main__': | 16:39 |
aelkner | zc.buildout.buildout.main() | 16:39 |
ignas | hmm, trying it on my machine | 16:40 |
balor | aelkner: It's considered good manners to use a pasetebin. i.e. copy-n-paste your code onto a site like paste.lisp.org and then to post the url to that. | 16:40 |
balor | aelkner: Think of it as youtube for code snippets. Rather than send a video you'd post it to youtube. | 16:41 |
aelkner | it was just ten lines, so i didn't bother that time | 16:41 |
ignas | aelkner: i have made a clean install and it worked for me... | 16:41 |
aelkner | could it have to do with the permissions setting on /var/log/shooltool | 16:41 |
ignas | nope | 16:42 |
ignas | what does svn st say? | 16:42 |
aelkner | ever scince i apt-get installed schooltool, i've have nothing but problems with the log dir | 16:42 |
ignas | is it a completely clean checkout? | 16:42 |
aelkner | yeah, i just did it | 16:42 |
aelkner | but bin/buildout also fails on my older cando checkout | 16:43 |
ignas | can you edit buildout.cfg and add "eggs-directory = eggs" | 16:43 |
ignas | aelkner: i'd guess your egg cache should be wiped clean | 16:43 |
ignas | and you should do make clean; make | 16:43 |
ignas | your egg cache is probably in .buildout/eggs | 16:43 |
ignas | or somewhere around there | 16:43 |
aelkner | there's a ~/.buildout/cache | 16:44 |
aelkner | that has a dist dir in it | 16:44 |
aelkner | there is no clean rule in the make file | 16:45 |
ignas | hmm | 16:45 |
ignas | cache dist is for egg tarballs | 16:45 |
ignas | to save download time | 16:45 |
ignas | ~/.buildout/eggs is for eggs | 16:45 |
aelkner | i did an find . -name '*.pyc' | xargs rm | 16:45 |
ignas | so they could be shared on your system | 16:45 |
aelkner | in the eggs dir | 16:46 |
ignas | and I want you to remove everything | 16:46 |
aelkner | say again | 16:46 |
ignas | it will take time to rebuild it again, but it should fix up any problems with eggs you currently have installed | 16:46 |
ignas | rm -rf ~/.buildout/eggs/ | 16:46 |
aelkner | i backed that dir, so i can do that | 16:47 |
ignas | just remove it, you should not have any valuable content in there | 16:47 |
ignas | problems appear because of valuable content in it most of the time ;) | 16:47 |
ignas | then in your cando checkout | 16:48 |
ignas | rm -rf python develop-eggs bin parts .installed.cfg TAGS tags ID | 16:48 |
ignas | and run | 16:48 |
ignas | make | 16:48 |
ignas | on my machine doing clean eggs failed for example because you have setuptools egg set in buildout.cfg, so you will probably have to delete the [versions] sections from buildout.cfg in the checkout | 16:52 |
*** jstraw has joined #schooltool | 16:54 | |
jstraw | hi all | 16:54 |
ignas | jstraw: hi | 16:54 |
ignas | aelkner: anything happening? | 16:56 |
aelkner | i finished | 16:56 |
aelkner | it | 16:56 |
aelkner | so now it have the latest schooltool egg, right? | 16:57 |
ignas | hmm | 16:57 |
ignas | cool | 16:57 |
ignas | bin/buildout works | 16:57 |
ignas | bin/buildout -n - fails | 16:57 |
aelkner | i can try that | 16:57 |
ignas | ahhh | 16:58 |
ignas | svn | 16:58 |
ignas | ubuntu | 16:58 |
ignas | ubuntu updated svn | 16:58 |
aelkner | yes, svn | 16:58 |
ignas | and it's incompatible with setuptools again | 16:58 |
ignas | so - mv .svn .yuck | 16:58 |
ignas | bin/buildout | 16:58 |
ignas | mv .yuck .svn | 16:59 |
aelkner | do that now? | 16:59 |
aelkner | after it already worked? | 16:59 |
ignas | run bin/buildout | 16:59 |
ignas | it will fail now | 16:59 |
ignas | most probably | 17:00 |
aelkner | bin/buildout does not fail anymore | 17:00 |
ignas | bin/buildout -n ? | 17:00 |
aelkner | ah, yes that fails | 17:01 |
aelkner | with the original Assertion error | 17:01 |
ignas | so | 17:01 |
ignas | could you please try out the workaround | 17:01 |
ignas | which is: | 17:01 |
ignas | mv .svn .svn.bak | 17:01 |
ignas | bin/buildout -n | 17:02 |
ignas | mv .svn.bak .svn | 17:02 |
ignas | and if it works | 17:02 |
ignas | post the assertion error | 17:02 |
ignas | and the workaround | 17:02 |
ignas | on the schooltool-dev mailing list | 17:02 |
ignas | so that everyone else who will encounter the problem would know what to do | 17:02 |
aelkner | when you say post to schooltool-dev, you mean write and email to that address? | 17:04 |
ignas | yes | 17:04 |
aelkner | ok | 17:04 |
aelkner | posted | 17:07 |
ignas | thanks | 17:09 |
ignas | oh | 17:09 |
ignas | did it work by the way? ;) | 17:09 |
ignas | the workaround | 17:10 |
*** jelkner has joined #schooltool | 17:10 | |
jelkner | aelkner: ping | 17:10 |
aelkner | jelkner: you don't answer your [phone | 17:11 |
jelkner | i stepped away from my desk and got you message when i got back | 17:11 |
jelkner | can u call now? | 17:11 |
aelkner | yes | 17:11 |
ignas | aelkner: the long term solution | 17:25 |
ignas | open buildout.cfg in your cando checkout | 17:25 |
ignas | and replace: | 17:25 |
ignas | setuptools = 0.6c8 with setuptools = 0.6c9 | 17:25 |
ignas | that should fix the problem for everyone with a fresh checkout | 17:25 |
ignas | people with old checkouts might have to "make clean" or something like that | 17:26 |
aelkner | i made a note of it | 17:27 |
aelkner | ignas: i found and fixed the cando bug | 17:27 |
aelkner | so i'll be releasing that to jelkner this afternoon | 17:27 |
aelkner | thanks | 17:27 |
ignas | good | 17:27 |
ignas | close it in launchpad too | 17:27 |
aelkner | after they have it workin, i will | 17:28 |
ignas | or even better - move it to cando bugtracker on launchpad and then close it ;) | 17:28 |
aelkner | ok, i'll move it now | 17:28 |
aelkner | moved | 17:29 |
*** sstevens has quit IRC | 17:29 | |
*** sstevens has joined #schooltool | 17:30 | |
ignas | aelkner: commited the make clean to that branch | 17:30 |
aelkner | thanks | 17:30 |
*** jelkner has quit IRC | 17:53 | |
ignas | th1a: http://ignas.pov.lt/all_school_tts.xls | 17:57 |
ignas | th1a: for documentation purposes | 17:58 |
ignas | th1a: is an example of all the timetable schemas that we have in our functional tests exported into an excel spreadsheet | 17:58 |
*** sstevens has quit IRC | 18:26 | |
*** sstevens has joined #schooltool | 18:28 | |
*** alga has quit IRC | 18:29 | |
th1a | aelkner: ayt? | 18:44 |
aelkner | yes | 18:44 |
th1a | Do you have something to do this afternoon? | 18:45 |
aelkner | after working with jelkner on cando, no | 18:45 |
aelkner | i could start to look into the sendmail problem | 18:47 |
th1a | OK. Do you still need to get a test server running on your box? | 18:47 |
aelkner | yes | 18:48 |
aelkner | i can install postfix as per the instructions in the book i bought | 18:48 |
th1a | OK. Let me know if you get stuck. I should be around. | 18:48 |
aelkner | ok | 18:49 |
th1a | aelkner: So basically, we think CanDo runs with the new SchoolTool. | 18:52 |
th1a | After your fix. | 18:52 |
aelkner | as far as i know | 18:53 |
th1a | OK. | 18:53 |
ignas | th1a: I think cando still does not work with school years | 19:14 |
ignas | links like go are pointing to the global section container | 19:14 |
ignas | that does not exist anymore | 19:14 |
th1a | Ah. You paying attention to this aelkner? | 19:14 |
aelkner | yes, i'll look into it | 19:15 |
th1a | Or, we could just let the users find the bugs ;-) | 19:15 |
aelkner | well that to | 19:15 |
aelkner | too | 19:15 |
th1a | Poke around a bit though. | 19:15 |
aelkner | ok | 19:15 |
*** dwelsh has quit IRC | 19:22 | |
*** jstraw has quit IRC | 20:10 | |
*** mattva01 has joined #schooltool | 20:48 | |
*** replaceafill has joined #schooltool | 20:53 | |
mattva01 | aelkner, standard update procedure... (svn up, buildout)? | 20:54 |
*** replaceafill has quit IRC | 20:54 | |
ignas | mattva01: will probably work, if not - see schooltool-dev mailing list | 21:08 |
*** mgedmin has joined #schooltool | 21:14 | |
*** ignas has quit IRC | 21:39 | |
*** mattva01 has quit IRC | 21:39 | |
*** sstevens has left #schooltool | 22:04 | |
*** replaceafill has joined #schooltool | 22:09 | |
*** balor has quit IRC | 22:57 | |
*** mgedmin has quit IRC | 23:07 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!