| * benji prefers to go to Japanese restaurants | 00:01 | |
| philiKON | hmmmm. Teppanyaki | 00:02 |
|---|---|---|
| *** febb has quit IRC | 00:03 | |
| *** natea has quit IRC | 00:08 | |
| *** natea has joined #zope3-dev | 00:09 | |
| timte | yay, no I can browse the filles on the filesystem in the zmi | 00:11 |
| *** Aiste has joined #zope3-dev | 00:23 | |
| *** marcin_ant has joined #zope3-dev | 00:46 | |
| *** marcin_ant has joined #zope3-dev | 00:46 | |
| *** xenru|clone has joined #zope3-dev | 00:49 | |
| *** timte has quit IRC | 00:52 | |
| *** benji has quit IRC | 00:56 | |
| *** povbot has joined #zope3-dev | 01:19 | |
| *** harobed_ has quit IRC | 01:31 | |
| *** stub has joined #zope3-dev | 01:34 | |
| *** jinty has joined #zope3-dev | 01:38 | |
| *** dokai has quit IRC | 01:50 | |
| *** dunny has quit IRC | 01:50 | |
| *** d2m has quit IRC | 01:50 | |
| *** Aiste has quit IRC | 01:50 | |
| *** tiredbones_ has quit IRC | 01:50 | |
| *** rom|zzZZ has quit IRC | 01:50 | |
| *** flox has quit IRC | 01:50 | |
| *** ktwilight has quit IRC | 01:50 | |
| *** __mac__ has quit IRC | 01:50 | |
| *** xenru|clone has quit IRC | 01:50 | |
| *** zagy_ has quit IRC | 01:50 | |
| *** srichter has quit IRC | 01:50 | |
| *** RaFromBRC has quit IRC | 01:50 | |
| *** BjornT has quit IRC | 01:50 | |
| *** SteveA has quit IRC | 01:50 | |
| *** ksmith99 has quit IRC | 01:50 | |
| *** guruz has quit IRC | 01:50 | |
| *** SmokeyD has quit IRC | 01:50 | |
| *** ignas has quit IRC | 01:50 | |
| *** rocky has quit IRC | 01:50 | |
| *** nouri has quit IRC | 01:50 | |
| *** tonico|away has quit IRC | 01:50 | |
| *** radix has quit IRC | 01:50 | |
| *** jkakar has quit IRC | 01:50 | |
| *** __mac__ has joined #zope3-dev | 01:52 | |
| *** srichter has joined #zope3-dev | 01:52 | |
| *** xenru|clone has joined #zope3-dev | 01:52 | |
| *** zagy_ has joined #zope3-dev | 01:52 | |
| *** irc.freenode.net sets mode: +o srichter | 01:52 | |
| *** dokai has joined #zope3-dev | 01:52 | |
| *** RaFromBRC has joined #zope3-dev | 01:52 | |
| *** BjornT has joined #zope3-dev | 01:52 | |
| *** SteveA has joined #zope3-dev | 01:52 | |
| *** ksmith99 has joined #zope3-dev | 01:52 | |
| *** guruz has joined #zope3-dev | 01:52 | |
| *** SmokeyD has joined #zope3-dev | 01:52 | |
| *** Aiste has joined #zope3-dev | 01:52 | |
| *** tiredbones_ has joined #zope3-dev | 01:52 | |
| *** rom|zzZZ has joined #zope3-dev | 01:52 | |
| *** flox has joined #zope3-dev | 01:52 | |
| *** ktwilight has joined #zope3-dev | 01:52 | |
| *** dunny has joined #zope3-dev | 01:53 | |
| *** d2m has joined #zope3-dev | 01:53 | |
| *** rocky has joined #zope3-dev | 01:53 | |
| *** radix has joined #zope3-dev | 01:53 | |
| *** nouri has joined #zope3-dev | 01:53 | |
| *** tonico|away has joined #zope3-dev | 01:53 | |
| *** jkakar has joined #zope3-dev | 01:53 | |
| *** Aiste has quit IRC | 01:57 | |
| *** projekt01 has joined #zope3-dev | 02:02 | |
| *** natea_ has joined #zope3-dev | 02:07 | |
| *** stu1 has joined #zope3-dev | 02:08 | |
| *** stub has quit IRC | 02:08 | |
| *** Aiste has joined #zope3-dev | 02:10 | |
| *** natea has quit IRC | 02:13 | |
| *** Aiste has quit IRC | 02:13 | |
| *** Aiste has joined #zope3-dev | 02:14 | |
| *** mexiKON has joined #zope3-dev | 02:37 | |
| *** benji has joined #zope3-dev | 02:45 | |
| *** philiKON has quit IRC | 02:45 | |
| *** Aiste has quit IRC | 02:55 | |
| *** Aiste has joined #zope3-dev | 03:03 | |
| *** niemeyer has quit IRC | 03:04 | |
| *** natea has joined #zope3-dev | 03:08 | |
| *** natea_ has quit IRC | 03:14 | |
| *** projekt01 has quit IRC | 03:20 | |
| *** Aiste has quit IRC | 03:25 | |
| *** Aiste has joined #zope3-dev | 03:30 | |
| *** stu1 is now known as stub | 03:31 | |
| *** Aiste_ has joined #zope3-dev | 03:41 | |
| *** Aiste has quit IRC | 03:41 | |
| *** jinty has quit IRC | 03:55 | |
| *** stub has quit IRC | 04:18 | |
| *** deo has quit IRC | 04:19 | |
| *** replicant has joined #zope3-dev | 04:22 | |
| *** hazmat has quit IRC | 04:23 | |
| *** RaFromBRC has quit IRC | 04:49 | |
| *** alecm has quit IRC | 04:53 | |
| *** natea is now known as natea|dinner | 04:55 | |
| *** whit has quit IRC | 05:13 | |
| *** whit has joined #zope3-dev | 05:17 | |
| *** BjornT has quit IRC | 05:22 | |
| *** BjornT has joined #zope3-dev | 05:22 | |
| *** replicant has quit IRC | 05:25 | |
| *** whit has quit IRC | 06:01 | |
| *** WebMaven has quit IRC | 06:33 | |
| *** alecm has joined #zope3-dev | 06:37 | |
| *** natea has joined #zope3-dev | 06:47 | |
| *** natea|dinner has quit IRC | 06:54 | |
| *** alecm has quit IRC | 07:10 | |
| *** natea has quit IRC | 07:10 | |
| *** alecm has joined #zope3-dev | 07:27 | |
| *** alecm has quit IRC | 07:57 | |
| *** stub has joined #zope3-dev | 08:09 | |
| *** yota has joined #zope3-dev | 08:10 | |
| *** eins has joined #zope3-dev | 08:10 | |
| *** rom|zzZZ has quit IRC | 08:17 | |
| *** philiMAC has joined #zope3-dev | 08:19 | |
| *** jukart has joined #zope3-dev | 08:25 | |
| *** stub has quit IRC | 08:27 | |
| *** mexiKON has quit IRC | 08:27 | |
| *** timte has joined #zope3-dev | 09:05 | |
| *** flox has quit IRC | 09:30 | |
| *** wrobel has joined #zope3-dev | 09:39 | |
| *** romanofski has joined #zope3-dev | 09:39 | |
| romanofski | moin | 09:43 |
| *** hdima has joined #zope3-dev | 09:44 | |
| *** dobee has joined #zope3-dev | 09:52 | |
| *** dobee has quit IRC | 09:57 | |
| *** kobold has joined #zope3-dev | 10:04 | |
| *** febb has joined #zope3-dev | 10:09 | |
| *** dobee has joined #zope3-dev | 10:10 | |
| *** febb has quit IRC | 10:11 | |
| *** flox_ has joined #zope3-dev | 10:26 | |
| *** flox_ is now known as flox | 10:26 | |
| *** projekt01 has joined #zope3-dev | 10:28 | |
| *** flox_ has joined #zope3-dev | 10:35 | |
| *** flox has quit IRC | 10:35 | |
| *** flox_ is now known as flox | 10:35 | |
| *** Londo has joined #zope3-dev | 10:38 | |
| *** Aiste_ is now known as Aiste | 10:41 | |
| *** _projekt01 has joined #zope3-dev | 10:44 | |
| *** ignas has joined #zope3-dev | 10:56 | |
| *** projekt01 has quit IRC | 11:03 | |
| *** dobee has quit IRC | 11:05 | |
| *** timte has quit IRC | 11:18 | |
| *** batlogg has joined #zope3-dev | 11:19 | |
| *** dunny has quit IRC | 11:26 | |
| *** timte has joined #zope3-dev | 11:34 | |
| *** opetznick has joined #zope3-dev | 11:55 | |
| *** zagy_ has quit IRC | 12:07 | |
| *** batlogg has joined #zope3-dev | 12:07 | |
| *** zagy has joined #zope3-dev | 12:08 | |
| *** harobed has joined #zope3-dev | 12:31 | |
| *** MJ|nickcollision has joined #zope3-dev | 12:40 | |
| *** MJ|nickcollision is now known as MJ | 12:45 | |
| *** ignas has quit IRC | 12:51 | |
| *** jinty has joined #zope3-dev | 12:56 | |
| *** ignas has joined #zope3-dev | 13:00 | |
| *** deo has joined #zope3-dev | 13:03 | |
| *** niemeyer has joined #zope3-dev | 13:23 | |
| *** kobold has left #zope3-dev | 13:56 | |
| *** harobed_ has joined #zope3-dev | 13:57 | |
| *** J1m has joined #zope3-dev | 14:12 | |
| *** mkerrin has joined #zope3-dev | 14:15 | |
| *** xenru has joined #zope3-dev | 14:16 | |
| *** timte has quit IRC | 14:23 | |
| *** benji has quit IRC | 14:25 | |
| *** timte has joined #zope3-dev | 14:41 | |
| *** xenru|clone has quit IRC | 14:41 | |
| *** faassen has joined #zope3-dev | 14:48 | |
| *** romanofski has quit IRC | 14:49 | |
| *** scherand has joined #zope3-dev | 14:56 | |
| *** romanofski has joined #zope3-dev | 15:13 | |
| *** jinty has quit IRC | 15:13 | |
| *** harobed_ has quit IRC | 15:13 | |
| *** kobold has joined #zope3-dev | 15:30 | |
| *** benji has joined #zope3-dev | 15:30 | |
| scherand | hi 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 |
| scherand | let me give an example: | 15:45 |
| scherand | let's say i have a site that lets me organise (scientific) conferences. the site might be more than this, but this also | 15:45 |
| scherand | now 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 IRC | 15:46 | |
| scherand | so i have kind of three "objects": persons, institutions and conferences. people have a relation to institutions and coferences. | 15:47 |
| scherand | how 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 |
| faassen | what do you mean by 'module'? | 15:48 |
| faassen | as in a python module? foo.py | 15:48 |
| faassen | anyway, 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 |
| scherand | all the files that reside in a directory. is this a package in pyhton-talk? | 15:49 |
| faassen | okay, let's talk about python packages and modules, and projects for good measure, first. | 15:49 |
| scherand | sorry :) | 15:49 |
| faassen | a python module is a .py file that can be imported by Python. | 15:49 |
| faassen | that's okay. | 15:49 |
| faassen | to be imported by Python it needs to be on the python path, typically. | 15:50 |
| scherand | right | 15:50 |
| faassen | a 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 |
| faassen | it can contain sub packages and modules. | 15:50 |
| scherand | ok | 15:50 |
| faassen | typically 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 |
| faassen | if the application is really small, it may however be just all be in a single module. | 15:51 |
| faassen | for a zope 3 application, you can safely assume you always use packages, though. | 15:51 |
| faassen | now as to the word 'project'. | 15:51 |
| faassen | a package part of a project, but a project isn't only the package. | 15:51 |
| faassen | a project is more than that, may contain a python setup.py, a README.txt, a change log, etc. | 15:51 |
| scherand | on what level you usually have the things you then "use" in zope3? package, right? | 15:51 |
| faassen | they're packages, yeah. | 15:52 |
| faassen | anyway, 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 |
| faassen | which contains a whole bunch of packages under 'src' | 15:52 |
| faassen | anyway, then as a general tip in application design, don't factor stuff into different parts until you need to. | 15:53 |
| faassen | as only then will you be sure what needs to be in different places. | 15:53 |
| faassen | and you don't end up with a lot of small modules not pulling their weight. | 15:53 |
| scherand | ok | 15:53 |
| faassen | so, what you could do in the zope 3 case, is a package | 15:53 |
| faassen | and then containing a single module, let's call it core.py | 15:53 |
| faassen | and you put everything you need into that for now. | 15:53 |
| faassen | of course eventually you may need to separate the web frontend stuff away from the implementation stuff. | 15:54 |
| faassen | and the interface definitions away from the implementation too. | 15:54 |
| faassen | and templates are going to be somewhere in the package called .pt too. | 15:54 |
| faassen | and then there are typical ways to organize a zope 3 package. | 15:54 |
| faassen | but that's not application specific. | 15:54 |
| faassen | as to your application specific stuff, keep everything together for now. | 15:54 |
| scherand | so my whole site would be *one* package? organised as one typically does, but one folder, so to speak. | 15:54 |
| faassen | and only when the application grows and you see logical units split it. | 15:54 |
| faassen | hm.. | 15:55 |
| faassen | you say 'site' | 15:55 |
| *** andrew_m has joined #zope3-dev | 15:55 | |
| faassen | I'm trying to understand what you mean by the word 'site' here. | 15:55 |
| scherand | let me try | 15:55 |
| faassen | I mean, is your application a web application which programmatically presents pages.. | 15:55 |
| faassen | or is there also content in there? | 15:55 |
| scherand | there is content. like information about the conference venue, for example | 15:56 |
| faassen | right. | 15:56 |
| faassen | anyway, unlike Zope 2, Zope 3 doesn't have an out of the box way to organize things through the ZMI. | 15:56 |
| scherand | but what i think points to where i am struggling is this | 15:56 |
| faassen | yes. | 15:56 |
| scherand | right | 15:56 |
| faassen | anyway, in Zope 3, you might design an application that.. | 15:56 |
| scherand | the magic word: zmi | 15:56 |
| scherand | i am coming from zope2 :) | 15:56 |
| faassen | right. | 15:56 |
| faassen | anyway, in Zope 2 you have systems like Plone or Silva or Squishdot. | 15:57 |
| faassen | that you basically add the root to the Zope 2 root in the ZMI. | 15:57 |
| faassen | and then everything inside those applications is managed by those applications. well, broadly speaking. | 15:57 |
| faassen | they have their own UIs and such. | 15:57 |
| faassen | in Zope 3 you'd have a similar design. you'd write an application object, like, ConferenceSite. | 15:57 |
| scherand | do i set my whole "site" up by creating one "object" (the package i programmed) in the zmi? | 15:57 |
| scherand | i think you lead exactly the way i was looking for! | 15:58 |
| faassen | and you make it so that when it is created it gets filled (from some source of data) with institutions, people, etc. | 15:58 |
| faassen | yeah, you set it up in one big go. | 15:58 |
| faassen | for now you could hardcode the information you need to be in there in Python. | 15:58 |
| scherand | THAT was my question, i think :) | 15:58 |
| faassen | eventually you could create UI so people can enter this information. | 15:58 |
| faassen | in some cases it makes sense to create subobjects to the site object. | 15:59 |
| faassen | like, you make the application object be a folder, and you have a subfolder called 'persons' | 15:59 |
| faassen | and a person in there is a person object containing informationa bout a person. | 15:59 |
| scherand | right | 15:59 |
| faassen | what's nice about such a person object is that you can give it a schema and have a form generated automatically, etc. | 15:59 |
| scherand | but this you would do only if necessary? | 15:59 |
| faassen | and then you can still give your application object some API.. | 15:59 |
| faassen | well, that's different from code layout. I was spekaing more from the perspective of how you lay out your code. | 16:00 |
| faassen | not how you lay out your data. | 16:00 |
| scherand | so it can work with others (through the api)? | 16:00 |
| faassen | I didn't understand your question entirely. | 16:00 |
| faassen | anyway, I have to be going, have a meeting coming up about now. | 16:00 |
| faassen | so I have to be quiet for now. | 16:00 |
| scherand | thanks a lot? | 16:00 |
| scherand | ! | 16:00 |
| andrew_m | we 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 |
| faassen | you're welcome, I hope it helps you along the way. getting the application design pattenrs in your head is tricky. | 16:00 |
| scherand | i'll try :) | 16:01 |
| faassen | andrew_m: start the zope using.. hm..I forget, debug mode? there's some option to make you enter a python prompt. | 16:01 |
| faassen | andrew_m: then just open stuff manually and dig out the image object and save stuff to a file. | 16:01 |
| andrew_m | faassen: good idea :) thanks | 16:01 |
| benji | faassen: zopectl debug | 16:01 |
| faassen | andrew_m: what benji says. | 16:02 |
| andrew_m | thanks heaps! | 16:02 |
| benji | andrew_m: when you get a python prompt look at the "root" object, it's the root of your object space | 16:05 |
| benji | it's a mapping, use it to dig around | 16:05 |
| andrew_m | ok.. from there i should be able to get there using root['blah']['blub'], right? | 16:05 |
| benji | exactly | 16:06 |
| benji | and 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_m | is reneaming the objects this way a good idea? | 16:06 |
| andrew_m | ah, yeah.. deleting is good enough | 16:07 |
| *** flox has quit IRC | 16:10 | |
| *** natea has joined #zope3-dev | 16:14 | |
| *** eins has quit IRC | 16:20 | |
| *** deo is now known as deo|food | 16:29 | |
| *** whit has joined #zope3-dev | 16:40 | |
| *** natea_ has joined #zope3-dev | 16:44 | |
| *** zagy has quit IRC | 16:45 | |
| *** natea has quit IRC | 16:51 | |
| *** mgedmin has joined #zope3-dev | 16:56 | |
| *** deo|food is now known as deo | 16:58 | |
| *** natea_ has quit IRC | 17:00 | |
| *** natea has joined #zope3-dev | 17:01 | |
| *** alecm has joined #zope3-dev | 17:03 | |
| *** alecm has quit IRC | 17:04 | |
| *** jinty has joined #zope3-dev | 17:12 | |
| *** kobold has left #zope3-dev | 17:28 | |
| *** tonico|away is now known as tonico | 17:35 | |
| rocky | hey, 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 |
| timte | hidden fields in the form is one way | 17:41 |
| rocky | stuffing the values in the session is of course another way | 17:42 |
| timte | but not restful? :) | 17:44 |
| * timte hardly knows what that means | 17:44 | |
| *** hazmat has joined #zope3-dev | 17:52 | |
| *** ChanServ sets mode: +o hazmat | 17:52 | |
| *** scherand has quit IRC | 17:52 | |
| ignas | timte: storing something in the page itself is not restful too | 17:53 |
| timte | ok I thought it was only about state on the server | 17:54 |
| ignas | it's more about bookmarkability | 17:55 |
| *** hdima has quit IRC | 17:55 | |
| ignas | most 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 restive | 17:56 |
| ignas | if 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 ZODB | 17:57 |
| ignas | with some expiration logic | 17:57 |
| ignas | so 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 morning | 17:58 |
| *** opetznick has quit IRC | 18:09 | |
| *** WebMaven has joined #zope3-dev | 18:13 | |
| *** alecm has joined #zope3-dev | 18:21 | |
| *** batlogg has quit IRC | 18:30 | |
| *** regebro has joined #zope3-dev | 18:31 | |
| *** mgedmin has quit IRC | 18:39 | |
| *** runyaga has joined #zope3-dev | 18:43 | |
| *** regebro has left #zope3-dev | 18:43 | |
| *** zagy has joined #zope3-dev | 18:57 | |
| *** harobed has quit IRC | 19:07 | |
| *** batlogg has joined #zope3-dev | 19:17 | |
| *** zagy_ has joined #zope3-dev | 19:18 | |
| *** d2m has quit IRC | 19:22 | |
| *** factor has left #zope3-dev | 19:26 | |
| *** zagy has quit IRC | 19:28 | |
| *** ktwilight_ has joined #zope3-dev | 19:28 | |
| *** BjornT has quit IRC | 19:29 | |
| *** stub has joined #zope3-dev | 19:33 | |
| *** BjornT has joined #zope3-dev | 19:34 | |
| *** flox has joined #zope3-dev | 19:35 | |
| *** RaFromBRC has joined #zope3-dev | 19:41 | |
| *** ktwilight has quit IRC | 19:43 | |
| *** batlogg has quit IRC | 20:09 | |
| *** jinty has quit IRC | 20:17 | |
| *** ignas has quit IRC | 20:21 | |
| *** jukart has quit IRC | 20:37 | |
| *** flox has quit IRC | 20:37 | |
| *** tonico is now known as tonico|away | 21:10 | |
| *** faassen has quit IRC | 21:12 | |
| *** batlogg has joined #zope3-dev | 21:20 | |
| *** henri_ has joined #zope3-dev | 21:25 | |
| *** mgedmin has joined #zope3-dev | 21:34 | |
| *** flox has joined #zope3-dev | 21:39 | |
| *** dunny has joined #zope3-dev | 22:00 | |
| *** zagy_ has quit IRC | 22:02 | |
| *** mkerrin has quit IRC | 22:03 | |
| *** whit is now known as whit|break | 22:07 | |
| *** whit|break is now known as whit | 22:14 | |
| *** xenru|clone has joined #zope3-dev | 22:16 | |
| *** batlogg has quit IRC | 22:17 | |
| *** batlogg has joined #zope3-dev | 22:18 | |
| *** henri_ has left #zope3-dev | 22:23 | |
| *** d2m has joined #zope3-dev | 22:25 | |
| *** xenru has quit IRC | 22:34 | |
| *** stub has quit IRC | 22:34 | |
| *** ktwilight_ is now known as ktwilight | 22:36 | |
| *** RaFromBRC is now known as RaFromBRC|lunch | 23:18 | |
| *** harobed_ has joined #zope3-dev | 23:46 | |
| runyaga | Theuni, ? | 23:56 |
Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!