IRC log of #zope3-dev for Tuesday, 2006-11-07

* benji prefers to go to Japanese restaurants00:01
philiKONhmmmm. Teppanyaki00:02
*** febb has quit IRC00:03
*** natea has quit IRC00:08
*** natea has joined #zope3-dev00:09
timteyay, no I can browse the filles on the filesystem in the zmi00:11
*** Aiste has joined #zope3-dev00:23
*** marcin_ant has joined #zope3-dev00:46
*** marcin_ant has joined #zope3-dev00:46
*** xenru|clone has joined #zope3-dev00:49
*** timte has quit IRC00:52
*** benji has quit IRC00:56
*** povbot has joined #zope3-dev01:19
*** harobed_ has quit IRC01:31
*** stub has joined #zope3-dev01:34
*** jinty has joined #zope3-dev01:38
*** dokai has quit IRC01:50
*** dunny has quit IRC01:50
*** d2m has quit IRC01:50
*** Aiste has quit IRC01:50
*** tiredbones_ has quit IRC01:50
*** rom|zzZZ has quit IRC01:50
*** flox has quit IRC01:50
*** ktwilight has quit IRC01:50
*** __mac__ has quit IRC01:50
*** xenru|clone has quit IRC01:50
*** zagy_ has quit IRC01:50
*** srichter has quit IRC01:50
*** RaFromBRC has quit IRC01:50
*** BjornT has quit IRC01:50
*** SteveA has quit IRC01:50
*** ksmith99 has quit IRC01:50
*** guruz has quit IRC01:50
*** SmokeyD has quit IRC01:50
*** ignas has quit IRC01:50
*** rocky has quit IRC01:50
*** nouri has quit IRC01:50
*** tonico|away has quit IRC01:50
*** radix has quit IRC01:50
*** jkakar has quit IRC01:50
*** __mac__ has joined #zope3-dev01:52
*** srichter has joined #zope3-dev01:52
*** xenru|clone has joined #zope3-dev01:52
*** zagy_ has joined #zope3-dev01:52
*** irc.freenode.net sets mode: +o srichter01:52
*** dokai has joined #zope3-dev01:52
*** RaFromBRC has joined #zope3-dev01:52
*** BjornT has joined #zope3-dev01:52
*** SteveA has joined #zope3-dev01:52
*** ksmith99 has joined #zope3-dev01:52
*** guruz has joined #zope3-dev01:52
*** SmokeyD has joined #zope3-dev01:52
*** Aiste has joined #zope3-dev01:52
*** tiredbones_ has joined #zope3-dev01:52
*** rom|zzZZ has joined #zope3-dev01:52
*** flox has joined #zope3-dev01:52
*** ktwilight has joined #zope3-dev01:52
*** dunny has joined #zope3-dev01:53
*** d2m has joined #zope3-dev01:53
*** rocky has joined #zope3-dev01:53
*** radix has joined #zope3-dev01:53
*** nouri has joined #zope3-dev01:53
*** tonico|away has joined #zope3-dev01:53
*** jkakar has joined #zope3-dev01:53
*** Aiste has quit IRC01:57
*** projekt01 has joined #zope3-dev02:02
*** natea_ has joined #zope3-dev02:07
*** stu1 has joined #zope3-dev02:08
*** stub has quit IRC02:08
*** Aiste has joined #zope3-dev02:10
*** natea has quit IRC02:13
*** Aiste has quit IRC02:13
*** Aiste has joined #zope3-dev02:14
*** mexiKON has joined #zope3-dev02:37
*** benji has joined #zope3-dev02:45
*** philiKON has quit IRC02:45
*** Aiste has quit IRC02:55
*** Aiste has joined #zope3-dev03:03
*** niemeyer has quit IRC03:04
*** natea has joined #zope3-dev03:08
*** natea_ has quit IRC03:14
*** projekt01 has quit IRC03:20
*** Aiste has quit IRC03:25
*** Aiste has joined #zope3-dev03:30
*** stu1 is now known as stub03:31
*** Aiste_ has joined #zope3-dev03:41
*** Aiste has quit IRC03:41
*** jinty has quit IRC03:55
*** stub has quit IRC04:18
*** deo has quit IRC04:19
*** replicant has joined #zope3-dev04:22
*** hazmat has quit IRC04:23
*** RaFromBRC has quit IRC04:49
*** alecm has quit IRC04:53
*** natea is now known as natea|dinner04:55
*** whit has quit IRC05:13
*** whit has joined #zope3-dev05:17
*** BjornT has quit IRC05:22
*** BjornT has joined #zope3-dev05:22
*** replicant has quit IRC05:25
*** whit has quit IRC06:01
*** WebMaven has quit IRC06:33
*** alecm has joined #zope3-dev06:37
*** natea has joined #zope3-dev06:47
*** natea|dinner has quit IRC06:54
*** alecm has quit IRC07:10
*** natea has quit IRC07:10
*** alecm has joined #zope3-dev07:27
*** alecm has quit IRC07:57
*** stub has joined #zope3-dev08:09
*** yota has joined #zope3-dev08:10
*** eins has joined #zope3-dev08:10
*** rom|zzZZ has quit IRC08:17
*** philiMAC has joined #zope3-dev08:19
*** jukart has joined #zope3-dev08:25
*** stub has quit IRC08:27
*** mexiKON has quit IRC08:27
*** timte has joined #zope3-dev09:05
*** flox has quit IRC09:30
*** wrobel has joined #zope3-dev09:39
*** romanofski has joined #zope3-dev09:39
romanofskimoin09:43
*** hdima has joined #zope3-dev09:44
*** dobee has joined #zope3-dev09:52
*** dobee has quit IRC09:57
*** kobold has joined #zope3-dev10:04
*** febb has joined #zope3-dev10:09
*** dobee has joined #zope3-dev10:10
*** febb has quit IRC10:11
*** flox_ has joined #zope3-dev10:26
*** flox_ is now known as flox10:26
*** projekt01 has joined #zope3-dev10:28
*** flox_ has joined #zope3-dev10:35
*** flox has quit IRC10:35
*** flox_ is now known as flox10:35
*** Londo has joined #zope3-dev10:38
*** Aiste_ is now known as Aiste10:41
*** _projekt01 has joined #zope3-dev10:44
*** ignas has joined #zope3-dev10:56
*** projekt01 has quit IRC11:03
*** dobee has quit IRC11:05
*** timte has quit IRC11:18
*** batlogg has joined #zope3-dev11:19
*** dunny has quit IRC11:26
*** timte has joined #zope3-dev11:34
*** opetznick has joined #zope3-dev11:55
*** zagy_ has quit IRC12:07
*** batlogg has joined #zope3-dev12:07
*** zagy has joined #zope3-dev12:08
*** harobed has joined #zope3-dev12:31
*** MJ|nickcollision has joined #zope3-dev12:40
*** MJ|nickcollision is now known as MJ12:45
*** ignas has quit IRC12:51
*** jinty has joined #zope3-dev12:56
*** ignas has joined #zope3-dev13:00
*** deo has joined #zope3-dev13:03
*** niemeyer has joined #zope3-dev13:23
*** kobold has left #zope3-dev13:56
*** harobed_ has joined #zope3-dev13:57
*** J1m has joined #zope3-dev14:12
*** mkerrin has joined #zope3-dev14:15
*** xenru has joined #zope3-dev14:16
*** timte has quit IRC14:23
*** benji has quit IRC14:25
*** timte has joined #zope3-dev14:41
*** xenru|clone has quit IRC14:41
*** faassen has joined #zope3-dev14:48
*** romanofski has quit IRC14:49
*** scherand has joined #zope3-dev14:56
*** romanofski has joined #zope3-dev15:13
*** jinty has quit IRC15:13
*** harobed_ has quit IRC15:13
*** kobold has joined #zope3-dev15:30
*** benji has joined #zope3-dev15:30
scherandhi eveyone. can somebody help me try to understand some conceptual things about zope3? i am wondering how i decide where the "boundary" between two products(?)/modules(?) is or should be.15:44
scherandlet me give an example:15:45
scherandlet's say i have a site that lets me organise (scientific) conferences. the site might be more than this, but this also15:45
scherandnow i have a list/set of persons i know about that could participate at the conferences i organise. these people work in certain institutes.15:46
*** MJ has quit IRC15:46
scherandso i have kind of three "objects": persons, institutions and conferences. people have a relation to institutions and coferences.15:47
scherandhow many "modules" do i use? one (containing persons, institutions and conferences)? two (one containing people and institutions and one for conferences)? or three (one each)?15:48
faassenwhat do you mean by 'module'?15:48
faassenas in a python module? foo.py15:48
faassenanyway, in general if you design an application, my experience is to not break it up until it actually becomes easier to manage or extend broken up.15:49
scherandall the files that reside in a directory. is this a package in pyhton-talk?15:49
faassenokay, let's talk about python packages and modules, and projects for good measure, first.15:49
scherandsorry :)15:49
faassena python module is a .py file that can be imported by Python.15:49
faassenthat's okay.15:49
faassento be imported by Python it needs to be on the python path, typically.15:50
scherandright15:50
faassena python package is a directory with a __init__.py in it. python recognizes that directory as importable, just like a module, if it's on the python path.15:50
faassenit can contain sub packages and modules.15:50
scherandok15:50
faassentypically a modern python application consists of a package which contains the code, plus a few small scripts to get the whole thing started that reside outside the package.15:51
faassenif the application is really small, it may however be just all be in a single module.15:51
faassenfor a zope 3 application, you can safely assume you always use packages, though.15:51
faassennow as to the word 'project'.15:51
faassena package part of a project, but a project isn't only the package.15:51
faassena project is more than that, may contain a python setup.py, a README.txt, a change log, etc.15:51
scherandon what level you usually have the things you then "use" in zope3? package, right?15:51
faassenthey're packages, yeah.15:52
faassenanyway, to finish the project discussion, for intsance the thing you get when you check out Zope 3 from svn is not a package, it's a project.15:52
faassenwhich contains a whole bunch of packages under 'src'15:52
faassenanyway, then as a general tip in application design, don't factor stuff into different parts until you need to.15:53
faassenas only then will you be sure what needs to be in different places.15:53
faassenand you don't end up with a lot of small modules not pulling their weight.15:53
scherandok15:53
faassenso, what you could do in the zope 3 case, is a package15:53
faassenand then containing a single module, let's call it core.py15:53
faassenand you put everything you need into that for now.15:53
faassenof course eventually you may need to separate the web frontend stuff away from the implementation stuff.15:54
faassenand the interface definitions away from the implementation too.15:54
faassenand templates are going to be somewhere in the package called .pt too.15:54
faassenand then there are typical ways to organize a zope 3 package.15:54
faassenbut that's not application specific.15:54
faassenas to your application specific stuff, keep everything together for now.15:54
scherandso my whole site would be *one* package? organised as one typically does, but one folder, so to speak.15:54
faassenand only when the application grows and you see logical units split it.15:54
faassenhm..15:55
faassenyou say 'site'15:55
*** andrew_m has joined #zope3-dev15:55
faassenI'm trying to understand what you mean by the word 'site' here.15:55
scherandlet me try15:55
faassenI mean, is your application a web application which programmatically presents pages..15:55
faassenor is there also content in there?15:55
scherandthere is content. like information about the conference venue, for example15:56
faassenright.15:56
faassenanyway, unlike Zope 2, Zope 3 doesn't have an out of the box way to organize things through the ZMI.15:56
scherandbut what i think points to where i am struggling is this15:56
faassenyes.15:56
scherandright15:56
faassenanyway, in Zope 3,  you might design an application that..15:56
scherandthe magic word: zmi15:56
scherandi am coming from zope2 :)15:56
faassenright.15:56
faassenanyway, in Zope 2 you have systems like Plone or Silva or Squishdot.15:57
faassenthat you basically add the root to the Zope 2 root in the ZMI.15:57
faassenand then everything inside those applications is managed by those applications. well, broadly speaking.15:57
faassenthey have their own UIs and such.15:57
faassenin Zope 3 you'd have a similar design. you'd write an application object, like, ConferenceSite.15:57
scheranddo i set my whole "site" up by creating one "object" (the package i programmed) in the zmi?15:57
scherandi think you lead exactly the way i was looking for!15:58
faassenand you make it so that when it is created it gets filled (from some source of data) with institutions, people, etc.15:58
faassenyeah, you set it up in one big go.15:58
faassenfor now you could hardcode the information you need to be in there in Python.15:58
scherandTHAT was my question, i think :)15:58
faasseneventually you could create  UI so people can enter this information.15:58
faassenin some cases it makes sense to create subobjects to the site object.15:59
faassenlike, you make the application object be a folder, and you have a subfolder called 'persons'15:59
faassenand a person in there is a person object containing informationa bout a person.15:59
scherandright15:59
faassenwhat's nice about such a person object is that you can give it a schema and have a form generated automatically, etc.15:59
scherandbut this you would do only if necessary?15:59
faassenand then you can still give your application object some API..15:59
faassenwell, that's different from code layout. I was spekaing more from the perspective of how you lay out your code.16:00
faassennot how you lay out your data.16:00
scherandso it can work with others (through the api)?16:00
faassenI didn't understand your question entirely.16:00
faassenanyway, I have to be going, have a meeting coming up about now.16:00
faassenso I have to be quiet for now.16:00
scherandthanks a lot?16:00
scherand!16:00
andrew_mwe need to rescue some data from a zope object data base (Image objects). FTP and HTTP don't work anymore (we assumes it is because of the object names). any alternatives?16:00
faassenyou're welcome, I hope it helps you along the way. getting the application design pattenrs in your head is tricky.16:00
scherandi'll try :)16:01
faassenandrew_m: start the zope using.. hm..I forget, debug mode? there's some option to make you enter a python prompt.16:01
faassenandrew_m: then just open stuff manually and dig out the image object and save stuff to a file.16:01
andrew_mfaassen: good idea :) thanks16:01
benjifaassen: zopectl debug16:01
faassenandrew_m: what benji says.16:02
andrew_mthanks heaps!16:02
benjiandrew_m: when you get a python prompt look at the "root" object, it's the root of your object space16:05
benjiit's a mapping, use it to dig around16:05
andrew_mok.. from there i should be able to get there using root['blah']['blub'], right?16:05
benjiexactly16:06
benjiand if you want to get rid of an offending object (probably after backing up your database first) use del  root['blah']['blub']16:06
andrew_mis reneaming the objects this way a good idea?16:06
andrew_mah, yeah.. deleting is good enough16:07
*** flox has quit IRC16:10
*** natea has joined #zope3-dev16:14
*** eins has quit IRC16:20
*** deo is now known as deo|food16:29
*** whit has joined #zope3-dev16:40
*** natea_ has joined #zope3-dev16:44
*** zagy has quit IRC16:45
*** natea has quit IRC16:51
*** mgedmin has joined #zope3-dev16:56
*** deo|food is now known as deo16:58
*** natea_ has quit IRC17:00
*** natea has joined #zope3-dev17:01
*** alecm has joined #zope3-dev17:03
*** alecm has quit IRC17:04
*** jinty has joined #zope3-dev17:12
*** kobold has left #zope3-dev17:28
*** tonico|away is now known as tonico17:35
rockyhey, when chaining together formlib-based forms such that the whole process isn't valid until the last form has been submitted, where do you all typically store the interim data gathered on the all-but-last forms ?17:39
timtehidden fields in the form is one way17:41
rockystuffing the values in the session is of course another way17:42
timtebut not restful?  :)17:44
* timte hardly knows what that means17:44
*** hazmat has joined #zope3-dev17:52
*** ChanServ sets mode: +o hazmat17:52
*** scherand has quit IRC17:52
ignastimte: storing something in the page itself is not restful too17:53
timteok I thought it was only about state on the server17:54
ignasit's more about bookmarkability17:55
*** hdima has quit IRC17:55
ignasmost of the time if you can't bookmark something close the window, start another browser, open the same url and get the same result - it's not restive17:56
ignasif you'd want it perfectly restive you could make the state of the form accessible in some way, give an ID for every incomplete process and store it in ZODB17:57
ignaswith some expiration logic17:57
ignasso at the end of the day one could just bookmark the form in the middle of the process, shut down the PC go home, and continue everything next morning17:58
*** opetznick has quit IRC18:09
*** WebMaven has joined #zope3-dev18:13
*** alecm has joined #zope3-dev18:21
*** batlogg has quit IRC18:30
*** regebro has joined #zope3-dev18:31
*** mgedmin has quit IRC18:39
*** runyaga has joined #zope3-dev18:43
*** regebro has left #zope3-dev18:43
*** zagy has joined #zope3-dev18:57
*** harobed has quit IRC19:07
*** batlogg has joined #zope3-dev19:17
*** zagy_ has joined #zope3-dev19:18
*** d2m has quit IRC19:22
*** factor has left #zope3-dev19:26
*** zagy has quit IRC19:28
*** ktwilight_ has joined #zope3-dev19:28
*** BjornT has quit IRC19:29
*** stub has joined #zope3-dev19:33
*** BjornT has joined #zope3-dev19:34
*** flox has joined #zope3-dev19:35
*** RaFromBRC has joined #zope3-dev19:41
*** ktwilight has quit IRC19:43
*** batlogg has quit IRC20:09
*** jinty has quit IRC20:17
*** ignas has quit IRC20:21
*** jukart has quit IRC20:37
*** flox has quit IRC20:37
*** tonico is now known as tonico|away21:10
*** faassen has quit IRC21:12
*** batlogg has joined #zope3-dev21:20
*** henri_ has joined #zope3-dev21:25
*** mgedmin has joined #zope3-dev21:34
*** flox has joined #zope3-dev21:39
*** dunny has joined #zope3-dev22:00
*** zagy_ has quit IRC22:02
*** mkerrin has quit IRC22:03
*** whit is now known as whit|break22:07
*** whit|break is now known as whit22:14
*** xenru|clone has joined #zope3-dev22:16
*** batlogg has quit IRC22:17
*** batlogg has joined #zope3-dev22:18
*** henri_ has left #zope3-dev22:23
*** d2m has joined #zope3-dev22:25
*** xenru has quit IRC22:34
*** stub has quit IRC22:34
*** ktwilight_ is now known as ktwilight22:36
*** RaFromBRC is now known as RaFromBRC|lunch23:18
*** harobed_ has joined #zope3-dev23:46
runyagaTheuni, ?23:56

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!