Re: [Zope] LocalFS on Win2k
Hi, I had the same error with LocalFS on a NT 4.0 server. In my case it was a security problem. Zope wasn't allowed to access the directory I used. Now I placed my local files in a directory Zope is allowed to read and everything is working fine. Diny At 18:11 11-10-00 -0400, Patrick Randerson wrote: I'm trying to run LocalFS on Win2K, and access shared disks. I've read the instructions for the LocalFS package and followed them... When I try to access the LocalFS directory, I get: Error Type: OSError Error Value: [Errno 5] Input/output error I'm thinking this is a python-windows interface problem. I have Zope 2.2.2, which seems to come with PyWin build 128. I have found a build 132, but I can't install it because I don't have python installed -- only standalone Zope. Anybody using LocalFS to access shared drives on Win2k? I would love some pointers here... DIVA, Faculty of Veterinary Medicine Utrecht University, The Netherlands http://www.vet.uu.nl ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to see if two objects are the same (minor fix)
Ron Bickers writes: I want to see if an object is the one aqcuired from the root, but I'm hitting walls. dtml-var "PARENTS[-1].myObject" dtml-var "myObject" dtml-var "PARENTS[-1].myObject is myObject" This returns the following when in the root folder context: TinyTable instance at 8684ad8 TinyTable instance at 8684ad8 0 What you see here, is Zope's (more precisely ExtensionClass's) acquisition magic: when you access "object.attribute", you (usually) will not get the object corresponding to "attribute" but a new object: "attribute.__of__(object)" i.e. the attribute object in the context of "object". When you look up an attribute of this object, it will first in the object itself and when it does not success there, it will look in the context. That is what you like with acquisition. The downside: When you access the "same" object via different contexts, you will in fact get different objects (as the contexts are different). "is" will return false, as it should be. But, even, if you use "==", you will get "false". There have been some discussion in the list, whether this is the best behaviour. What can you do? You can use the "aq_base" attribute to strip away any context and get to the base object. At least in Zope 2.2.1, "aq_base" was not exposed to DTML. Thus, you would need an external method, say "getBaseObject", to get at the base: def getBaseObject(object): return getattr(object,'aq_base',object) With this function, you can compare the base objects: dtml-var "getBaseObject(myvar) is getBaseObject(PARENT[-1].myvar)" Be careful, however: Even, if such a test returns true for two objects, the objects may nevertheless have different behaviour (as the contexts are different). Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Easiest way to turn X-Forwarded-For to Remote-IP?
Marcin Kasperski writes: I use Zope via Apache proxy, what causes some trouble (all remote IPs for Zope are equal to 127.0.0.1). As I finally installed mod_proxy_add_forward, I get original address in X-Forwarded-For header (REQUEST['HTTP_X_FORWARDED_FOR']). The question is: can I do something easy to automatically perform if(remote_ip = 127.0.0.1 and X-Forwarded-For exists) then set remote_ip = whatever is in X-Forwarded-For logic? In particular, I would like changed IP to be used by Zope access control and Zope log. We have had similar problems. Friendly people from NIP made a HowTo patch Apache to let the information through. If you do not want to patch Apache, you can use a SiteAccess (-- zope.org) AccessRule in your top (logical) folder to modify your REQUEST object as you like. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] int and string comparisons
This is the snippet dtml-in "_.range(1,32,1)"> option value="dtml-sequence-item;" dtml-let item=sequence-item> dtml-if begin_day> dtml-if expr="item == REQUEST.begin_day"> selected /dtml-if> dtml-comment>CONVERTIR A INT/dtml-comment> /dtml-if> /dtml-let> >dtml-sequence-item;/option> /dtml-in> The comparison fails because item is an int and REQUEST.begin_day is a string(i guess). How can I coerce item into a string, or REQUEST.begin_day into an int? I tried python's builtin int() function around REQUEST.begin_day. Won't work. Any suggestions? -- Manuel Amador (Rudd-O)
[Zope] Re: How to use standard html headers and footers properly (was: Re:[Zope] Namespace problems...)[Zope] Namespace problems...)
Hi, first, thanks for your advice! "Manuel Amador (Rudd-O)" schrieb: dtml-with pub dtml-let titel="_.string.join(['This is the website of ', enterpriseName])" dtml-var standard_html_header /dtml-let on your document, WILL work fine. But I suggest recreating standard_html_header as a METHOD and calling OK, once again: My standard_html_header is still a METHOD!!! And within it, I DO access to the variables of the calling document / method! dtml-with pub dtml-var standard.. /dtml-with That's _exactly_ what I did! I only inserted a dtml-let someVar="someValue" to pass this var to standard_html_header. Since methods don't have properties, they will use calling object's properties. Read again. Do NOT use DTML documents for headers and footers. Use METHODS. I DON'T! So I stored my headers and footers and many other things in root/intra/pub. All the other documents are stored in root/intra and below. I've got my standard_html_header, with which I can display user-defined titles which may also contain values of global properties. The user-defined title is being built in the document before the header is called, e. g. something like: Look above! In the standard_html_header !!!_method_!!! I'm checking whether there is a titel attribute or not. This works fine. But for general use I want to keep the possibility of displaying the title_or_id of the document when I don't introduce a user-defined title. This would be no problem if s_h_h wasn't situated in root/intra/pub, so I have to call it within the dtml-with pub. But calling it within the dtml-with pub, pub is on the top of my namespace, so that calling title_or_id returns the title_or_id of the container of s_h_h, i. e. pub, INSERTED: and not as wanted the title_or_id of the calling document! How can I nevertheless access within the s_h_h to the title_or_id of my original document? INSERTED: i. e. explicitely accessing to a layer of the namespace which isn't on its top! Hope I now explained it well enough. Thank you very much. Lars ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] aq_base
Dieter Maurer wrote: At least in Zope 2.2.1, "aq_base" was not exposed to DTML. ...and I don't think it ever would or should be sicne it strips off all security context and would probably let you do 'bad things' :-S cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] What contains an object....
Ron Bickers wrote: dtml-var "PARENTS[-1].myObject == myObject" So, is there another way in DTML I can see if an object was acquired from PARENTS[-1] or not? Is there a way to check an objects container out of context? Hmmm... try the following as a replacement for the above stuff: dtml-var "myObject in PARENTS[-1].objectValues()" cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Need preferred 'import' format for ReportLab Image module
Tony McDonald wrote: to reply to Andy? In my own reportlab distribution I changed; import Image to from PIL import Image Well, it sounds right and if it works then it probably is ;-) It probably depends exactly where you install PIL, though, which I haven't done yet :-S cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Don't think so
Paul Winkler wrote: Hi, Has anyone run up against a limitation on the number of users that can be in one acl_users folder? Either a hard limit or a practical limit? IIRC, zope.org's acl_users has about 11,000 people in it without too many problems... Ethan, can you confirm? cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] int and string comparisons
"Manuel Amador (Rudd-O)" wrote: dtml-if expr="item == REQUEST.begin_day" selected /dtml-if Try replacing the above with: dtml-if expr="item == _.int(REQUEST.begin_day)" ...and stop posting HTML to a non-HTML list! cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] int and string comparisons
if you're submitting from a form, you can coerce strings into other data types by giving the form items special names, e.g.: input type=text name=foo:int input type=text name=bar:float Your REQUEST then has variables called foo and bar which are ints and floats, respectively. also, don't post html mail - not everyone can read it. seb. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Manuel Amador (Rudd-O) Sent: 12 October 2000 09:12 To: [EMAIL PROTECTED] Subject: [Zope] int and string comparisons This is the snippet dtml-in "_.range(1,32,1)" option value="dtml-sequence-item;" dtml-let item=sequence-item dtml-if begin_day dtml-if expr="item == REQUEST.begin_day" selected /dtml-if dtml-commentCONVERTIR A INT/dtml-comment /dtml-if /dtml-let dtml-sequence-item;/option /dtml-in The comparison fails because item is an int and REQUEST.begin_day is a string (i guess). How can I coerce item into a string, or REQUEST.begin_day into an int? I tried python's builtin int() function around REQUEST.begin_day. Won't work. Any suggestions? -- Manuel Amador (Rudd-O) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] SybaseDA and ASA
On Thu, 12 Oct 2000, you wrote: I've installed zope 2.2.2, and compiled sy_occ.so for SybaseDA against sybase-common-cantrememberversion.rpm from Sybase. (I assume it's the latest one). Loading python and importing sy_occ works perfectly. BUT, I can't create a SybaseDA SQL connection object . Specifically, trying to create it sez connection failed. I've tried EVERY POSSIBLE parameter combination on the creation form. None worked. By the way, I'm using Adaptive Server Anywhere for linux, 6.0.3. It is NOT ASE. It is ASA. Does sy_occ work with ASA, or only with ASE? Any experiences? Last week I was trying to upgrade from Zope V 2.1.6 (with working sybase adapter) to a 2.2.x version, and my sybase adapter stop working (yes I recompiled it). We are using ASE 11.9.2 on a linux box. Seems like Zope has introduced some incompatibilities which no one has discovered so far. Ralph -- Ralph Heinkel Cenix Bioscience GmbH Director of the IT-UnitTel : +49 6221/387 915 Meyerhofstr. 1 Fax : +49 6221/387 971 69117 Heidelberg, Germany eMail: [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Easiest way to turn X-Forwarded-For to Remote-IP?
As I finally installed mod_proxy_add_forward, I get original address in X-Forwarded-For header (REQUEST['HTTP_X_FORWARDED_FOR']). The question is: can I do something easy to automatically perform if(remote_ip = 127.0.0.1 and X-Forwarded-For exists) then set remote_ip = whatever is in X-Forwarded-For logic? In particular, I would like changed IP to be used by Zope access control and Zope log. We have had similar problems. Friendly people from NIP made a HowTo patch Apache to let the information through. If you do not want to patch Apache, you can use a SiteAccess (-- zope.org) AccessRule in your top (logical) folder to modify your REQUEST object as you like. Does there exist some sample of such usage? Can such a change be performed before authorization? I use SiteRoot to translate addressess between external and internal (in subdirectories, not in main directory). Can those approaches be merged one with another? -- http://www.mk.w.pl / Marcin.Kasperski | Sztuczki i kruczki w C++: @softax.com.pl | http://www.mk.w.pl/porady/porady_cplusplus @bigfoot.com \ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Content Management System
This query started out in a separate thread about permissions, but it's sufficiently important to me to pose again here. I've been struggling to make the CMS abilities of zope user-friendly enough for 'joe average' end-users. Really it's designed for a 'power' content manager who delegates, secures, and generally has taken the time to study all the Content Management docs, etc. However, most of my clients don't have those kinds of requirements and aren't that technologically savvy, so I end up coding ultra-simplified interfaces for them on a per-project basis. I know you can restrict permissions on just about every available method, and I am aware of the current skinnable zope project, which may improve the situation drastically. But I'm interested to know, how many of you offer the Zope TTW interface to clients as a content management system, and how many just use it as a development interface? I'm beginning to wonder if content management and system administration should be split out into separate subsystems. Or if a CMS Tool Kit should be developed. (workflows, syndication, etc...). But I'm still far from being a zope power user myself, and have yet to appreciate the range of its potential. What do you people think? Seb. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Access Control vs Publishing Protoco
oops, I forgot to foward my last mail on this subject to the list. My response here to Dieter's response captures contains the main points though... I think, the implementation would be easy. Management, however, would be more difficult, as there are no good defaults for the "URL Traversable" permission. It is not easy, to determine (e.g.) for a DTML method/document whether it is only used as a component (such as "standard_html_header") or is a full grown presentation method. Um, I don't think I understand. [ snip ] Currently, Zope tries to have very few explicit, object specific permissions. The ideal is that permissions are specified high above in the hierarchy and acquired by lower objects. This is quite possible with the current scheme. Implementing an "URL accessible" permission would require much more tweaking of single object permissions. There are other ways to solve your problem by organization (putting things that should not be seen somewhere else) that do not require an additional permission. Now I understand... I would disagree, however: I think there is a sensible default value. The default would be that anonymous does not have 'traverable' permission, but the manager / owner does. The cases where an authenticated user is able to traverse some objects but not others would, as you point out, be rare, because you could instead manage these by organisation. You would still use organisation to avoid having to set too many additional permissions. However, this solution would solve the 'security' issue of the anonymous user being able to list objectIds in any folder TTW. It would also allow the developer more flexibilty in how they designed their application, which can only be a Good Thing? seb. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: Upload just file headers?
On Wed, 11 Oct 2000 15:41:16 -0700 (PDT), knight [EMAIL PROTECTED] wrote: infilename = REQUEST.form['attached_file'].filename # Get filename infile = REQUEST.form['attached_file'] # Get the file descriptor myheader = infile.read(500)# Read up to 500 bytes infile.close() # Close the stream This should be in an external method or product. I haven't tested whether or not this will only let the client upload the first 500 bytes Im sure it wont it's very possible zope takes in the entire file, and puts it into a buffer that is like a file descriptor (hence StringIO). File uploads are spooled into a temporary file, and the request is only dispatched into Zope once the whole request has arrived. Anything smarter than that will require some ZServer hacking. Toby Dickenson [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] from is a reserved word?
Hi,The following dtml couse error, dtml-comment dtml-var "sendMail(from='hello@world')" /dtml-comment The workaround is to change "from" to other words. Iap, Singuan ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] dtml-comment doesn't...
"iap_y2fun.com" wrote: dtml-comment dtml-var "sendMail(from='hello@world')" /dtml-comment Don't worry... the problems are mainyl caused 'cos dtml-comment doesn't do what most people would expect it to... *grinz* Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] [Job] Zope Job in France
Jeune Start-up dans le monde de l'internet recherche développeurs/chefs de projet Internet / Zope. Diplômé BAC+2/5 (ingénieur ou universitaire), vous avez une première expérience (éventuellement un stage significatif) en développement d'applications avec Zope. Connaissant bien HTML et HTTP, vous maîtrisez parfaitement au moins un langage de programmation objet (Python, Delphi, Java, C++, ...). Vous avez une connaissance de UML et de l'objet en général. Une connaissance de XML et LDAP serait un GROS plus. Vous êtes rigoureux et organisé. De plus, vous avez une bonne connaissance des SGBDR et êtes capable de lire et rédiger des documents en anglais. Votre mission : Vous participez à la conception, au développement et à la gestion du site. Selon votre potentiel, vous évoluerez au sein de la société vers de plus amples responsabilités notamment en prenant une part de plus en plus importante dans le déroulement des projets. Expérience : N'hésitez pas à joindre à votre candidature tout document pouvant démontrer vos compétences (ex : URLs de vos réalisations) Profil : Vous êtes rigoureux et organisé, dynamique et passionné et prêt à travailler dans une équipe jeune et très ambitieuse. Ce poste, basé à Paris-La Défense, est à pourvoir immédiatement dans le cadre d'un CDI. Rémunération proposée : 210KF à 290KF selon profil et expérience. Contact : Merci d'adresser CV et une lettre de motivation à : [EMAIL PROTECTED] Olivier Deckmyn, CTO eXperts-MD.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Content Management System
This query started out in a separate thread about permissions, but it's sufficiently important to me to pose again here. I've been struggling to make the CMS abilities of zope user-friendly enough for 'joe average' end-users. Really it's designed for a 'power' content manager who delegates, secures, and generally has taken the time to study all the Content Management docs, etc. However, most of my clients don't have those kinds of requirements and aren't that technologically savvy, so I end up coding ultra-simplified interfaces for them on a per-project basis. I know you can restrict permissions on just about every available method, and I am aware of the current skinnable zope project, which may improve the situation drastically. But I'm interested to know, how many of you offer the Zope TTW interface to clients as a content management system, and how many just use it as a development interface? I'm beginning to wonder if content management and system administration should be split out into separate subsystems. Or if a CMS Tool Kit should be developed. (workflows, syndication, etc...). But I'm still far from being a zope power user myself, and have yet to appreciate the range of its potential. What do you people think? The PTK might offer you some help in this respect. Zope as a CMS _is_ possible, but IMO you'll have to wrap the parts of the management interface that you want to expose to your users and hide the rest. This will effectively limit you as to what you will let your users add to Zope, but in a CMS situation, this will probably be the case anyway. The management interface as is won't mean much to most of them, but custom forms can also call the manage methods. It's probably a good idea to use something like the HTML Widgets product that was recently announced here, or the HiperDom thing. For most of the user management parts you will probably need someone with affinity for web developing, though as long as you keep the tasks constrained, some simple instructions will probably suffice. I have been developing something similar in what should be a course framework (a product that I don't seem to be able able to finish) that is geared toward an educational situation. It's predecessor has been in use at a university for some time and it seems to suffice as least as good as commercial packages. hth Rik ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: Upload just file headers?
On Wed, Oct 11, 2000 at 03:54:17PM -0400, Paul Winkler wrote: For example, take a .gif or .jpeg file and throw away all but the first (let's say) 1 kb of the file. If you try to open this truncated file with an image editor (gimp, photoshop, whatever) you'll have problems. But useful information is still stored in that first part of the file, as we can see using python and PIL. Example, on linux: head --bytes 1000 foo.gif foo_truncated.gif python ... import Image test = Image.open('foo_truncated.gif', 'r') test.size (210, 210) So in this case, we can find out that foo.gif is 210 x 210 pixels even if we only have access to the first 1 kb of the 12 kb file. This doesn't hold true for JPEG's. A JPEG encoded image consists of a set of segments, each encoding some aspect of the image. The image dimensions can be found in the frame header segment, but this segment may be preceded by tables, comments and application specific data. These extra segments could easily take up your 1K chunk. AP press for example, uses an application specific segment to encode image metadata such as subject, caption and photographer. If you have a look at the Image dimension detection code for JPEGs you'll see that it scans for a frame header (marked by C0, C1, C2 or C3 depending on the encoding used). Once found, it extracts the width and height. More information of the JPEG file encoding format can be found at: http://www.w3.org/Graphics/JPEG/itu-t81.pdf For a GIF file, the first 10 bytes should suffice, for a PNG you need the first 24. -- Martijn Pieters | Software Engineer mailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ - ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Need preferred 'import' format for ReportLab Image module
to reply to Andy? In my own reportlab distribution I changed; import Image to from PIL import Image Well, it sounds right and if it works then it probably is ;-) It probably depends exactly where you install PIL, though, which I haven't done yet :-S The Photo product and the ExtImage products do more or less the same - this seems to become the standard way. It would be nice to have one place to put PIL, though. the lib/python/shared directory would be a good place I think. Rik ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Content Management System
Hi! I know you can restrict permissions on just about every available method, and I am aware of the current skinnable zope project, which may improve the situation drastically. But I'm interested to know, how many of you offer the Zope TTW interface to clients as a content management system, and how many just use it as a development interface? I'm beginning to wonder if content management and system administration should be split out into separate subsystems. Or if a CMS Tool Kit should be developed. (workflows, syndication, etc...). But I'm still far from being a zope power user myself, and have yet to appreciate the range of its potential. What do you people think? We have some client who use Zope for (at least partly) doing CMS on their site. But these are quite simple (thus no commitments, etc.) When switching from a database centered approach to a more Zope based (e.g. doing it via Zope Products) I actually splitted the management interface in one for the main manager (we) and one more simple and configurable one for the clients (starting with /admin ). I now used it in two subprojects and it seems to work. The only thing I need to think about more specifically is how to factor out the client-side of the management interface more clearly as right now it's very much weaved into the actual classes. Also I am thinking about possibilities to split the actual data from the presentation and to make the presentation pluggable. But this is quite raw at the moment ;-) cheers, Christian ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] dtml-in loop to capture records
Hi all, I have a number of simple forms that retrieve all occurences of a table into editable fields in a page. Each input tag is named: table stuff dtml-in getList ... input type="hidden" name="item.fieldname:records:required" value="dtml-fieldname;" ... /dtml-in /table Note, only the primary key field is actually a hidden type input and the rest are text and so on. In test of the submit button, the dtml-sql method called is structured: dtml-in item update table set field2=dtml-sqlvar field2 type=nb where field1=dtml-sqlvar field1 type=nb dtml-sql_delimiter; /dtml-in and the conditions of the method are item:records. The intention is to submit in one go the entire list of occurences and update anything that has changed. You can do this with checkboxes valued on the primary key and other ways. The important thing is to leave something that you use as the key in the WHERE statement. Okay, this works fine, in MOST of my forms, but I have other forms where this doesnt work at all and I get errors saying that the ITEM is a bad request. I dont get it, what am I missing here that this works some places and in other places with almost identical syntax, it falls over. The form is correctly tagged, does the name attrib of the form tag have to do with the dtml-in item... doesnt seem to be but tried it. Im wondering if because the dtml-document is quite large with seperate subloops and forms that publish in a sequence of events that this doesnt work. Hopefully someone has insight I'm missing here? Cheers and thanks again, -- Paz Oratrix Development BV http://www.oratrix.com GRiNS SMIL Editor - ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] RE: aq_base
-Original Message- From: Chris Withers [mailto:[EMAIL PROTECTED]] Dieter Maurer wrote: At least in Zope 2.2.1, "aq_base" was not exposed to DTML. ...and I don't think it ever would or should be sicne it strips off all security context and would probably let you do 'bad things' :-S Well... aq_base appears to work just fine in a Python method (not external). Is that a bad thing? I ended up creating a sameObject Python method that compares two objects' aq_base and it does what I expect. I'm using it to determine if I need to display the global menu under the local menu, or if the global menu *is* the local menu, so different context behavior isn't an issue. I suppose an upcoming Zope will take care of this problem if it gives the intuitive results with an == comparison. Thanks for all of your help!! ___ Ron Bickers Logic Etc, Inc. [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Competing writes and reindexing objects
Zopists, I am trying to eliminate the competing writes that are plaguing my app at the moment. One way I know of is to make sure that people aren't creating/modifying objects in the same folder at the same time. This is becuase the parent object gets modified too. Does anyone have a "object creation/folder distribution" code that works for them that they would be willing to share? Lastly, even if I distribute my objects, doesn't reindexing any Zope object inthe Catalog at the same time create a conlict? I'd love to know if I'm fighting a losing battle here. All my best, Jason Spisak [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] from is a reserved word?
On Thu, 12 Oct 2000, iap_y2fun.com wrote: Hi,The following dtml couse error, dtml-comment dtml-var "sendMail(from='hello@world')" /dtml-comment The workaround is to change "from" to other words. "from" is a python reserved word. [EMAIL PROTECTED] /--\ | `long long long' is too long for GCC | \--/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] RE: aq_base
Ron Bickers wrote: Well... aq_base appears to work just fine in a Python method (not external). Is that a bad thing? Probably, although someone from DC would need to comment why... Hmm... Evan, should that be the case? cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Need preferred 'import' format for ReportLab Imagemodule
At 2:37 pm +0200 12/10/00, Rik Hoekstra wrote: to reply to Andy? In my own reportlab distribution I changed; import Image to from PIL import Image Well, it sounds right and if it works then it probably is ;-) It probably depends exactly where you install PIL, though, which I haven't done yet :-S The Photo product and the ExtImage products do more or less the same - this seems to become the standard way. It would be nice to have one place to put PIL, though. the lib/python/shared directory would be a good place I think. Rik Is this because you're thinking of the binary releases of Zope? If you're using the reportlab libraries, then you've probably installed them into /usr/local/lib/python1.5/site-packages (ie you're used to using source distributions). If you can do that, you're probably ok with putting PIL into lib/python/shared. So why not have it in site-packages? Or have I missed something obvious (I probably have - it's been a looong day). tone -- Dr Tony McDonald, FMCC, Networked Learning Environments Project http://nle.ncl.ac.uk/ The Medical School, Newcastle University Tel: +44 191 222 5116 A Zope list for UK HE/FE http://www.fmcc.org.uk/mailman/listinfo/zope ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Database Pack
Hi all, is there a way to do a pack to zodb without using the managment screens pack button? Maybe a python script we could execute from the file system. Regards, Júlio Dinis Silva _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: Upload just file headers?
Martijn Pieters wrote: This doesn't hold true for JPEG's. (snip) Aha, thanks. I'll have to think of a way to deal with this... --PW .paul winkler.. slinkP arts: music, sound, illustration, design, etc. web page: http://www.slinkp.com A member of ARMS: http://www.reacharms.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Easiest way to turn X-Forwarded-For to Remote-IP?
From: Marcin Kasperski [EMAIL PROTECTED] X-Forwarded-For header (REQUEST['HTTP_X_FORWARDED_FOR']). Does there exist some sample of such usage? Can such a change be performed before authorization? You could do this with an Access Rule in your root folder, containing: dtml-call expr="REQUEST.set('REMOTE_ADDR', REQUEST['HTTP_X_FORWARDED_FOR'])" Cheers, Evan @ digicool 4-am ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] [Fwd: Re: [Zope] dtml-in loop to capture records]
Me again, To further explain my dilemna, I just noticed that using the in ITEM loop doesnt seem to work if the dtml-call statement has an extra parameter. I had dtml-call "verifyLog(mdate=mdate)" publish.. dtml-in item ... ... /dtml-in Then use as in other working forms: dtml-call verifyLog publish.. dtml-in item ... ... /dtml-in Mdate is the primary key, again. This gave me the ITEM Bad Request error. Now, if I remove the mdate call, and remove the condition in the ZSQL method, i can at least now get an error: File /var/Zope-201/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: string) File /var/Zope-201/lib/python/DocumentTemplate/DT_In.py, line 691, in renderwob (Object: item) File /var/Zope-201/lib/python/Shared/DC/ZRDB/sqlvar.py, line 168, in render (Object: vswitch) Missing Input: (see above) So, the item is rendering. The variable named item.vswitch is not... nor is mdate which had to be named as an item.mdate instead of being passed in the dtml-call statement as an argument. In forms where this works, i simply call the method and the item renders everything in properly. Now I can do none it seems. One other note is that I var in the form that the input item.fieldname parts are contained, so the calling method to render item is not the same document as the item components. Oi, -- Paz Oratrix Development BV http://www.oratrix.com GRiNS SMIL Editor - ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Database Pack
On Thu, 12 Oct 2000, Júlio Dinis Silva wrote: is there a way to do a pack to zodb without using the managment screens pack button? Maybe a python script we could execute from the file system. Just call the pack over HTTP. I run a cron job to do this. Oleg.(All opinions are mine and not of my employer) Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Thanks : bobo : where to find it ?
Thanks to you Paul Jim Have found some 'Bobo' packages in tar.gz Zope archive. (V:2.2.2) - DocumentTemplate - ZPublisher BUT NO BoboPos directory in the lib/python ; only ZODB. Is there a mistake in the README.txt or forget in the lib/python directory ? Need a DB system to try the Trinkets.py (Having ZODB from Zope 2.2.2 and BoboPOS3-alpha1 BoboPOS-2.0.2 from old backup...) What is the best way ? Old BoboPos or start now with ZODB ? Thanks Emmanuel -- Emmanuel DISCORS Tel Fax : 02 54 56 80 61 Conception, Informatique, Réseau ADVL ( Au-Delà de Vos Limites ) Site web : http://www.advl.org/ Archives mOdbc : http://www.advl.org/public/mOdbc/ Jim : We o longer distribute Bobo, although I'm sure you can find it on some archive somewhere. Of course, the pieces that made up Bobo are still available, in updated form, as part of the Zope distribution. The medusa bobo is available in the medusa CVS in the contrib directory. If there is still a medusa distribution, I imagine it contains this directory too. Jim Paul : = Hello Emmanuel. Bobo has been folded into Zope: http://www.zope.org/ --Paul ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Medusa Monitor
Thanks for the follow-ups on Medusa Monitor. But as I can see (after using Zope for 1.5 years, now), few people actually use it. Unless one is really into the guts of Zope itself, the monitor is pretty useless for debugging. It of course could be made more useful, but one must implement some Python programs first. Even for dynamic reloading of modules, I usually just write External methods to do the job, instead of firing up the monitor. A more useful debuging tool would be some monitor where you can receive print message logs in real time. That would be great, especially if you have multiple thread problems. regards, Hung Jung _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Problem with 2.2.2 and date properties?
Hi everyone, I'm having trouble with a ZClass I've created that uses, among others, two date properties. I'm suddenly having problems creating new instances or working with existing instances of my ZClass. I can't be sure, but it seems like the onset of the problems coincided with my upgrade to 2.2.2. Has anyone else seen any problems with date properties and Zope 2.2.2? -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/ W. St. Paul, MN | | http://slashdot.org/ [EMAIL PROTECTED] | dtml-var pithy_quote | http://linux.com/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Catalog and Proximity searches
Zopsters, Does anyone know if the Catalog is supposed to do proximity searches, ie: "visual basic" would return the phrase. Thanks, Jason Spisak [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Tiny tables
I would like to run some regular reports based upon sqlmethods. The input to these are a mixture of normal values, and some tokenised values. I tried storing these in tiny tables, but it doesn't seem that tiny tables allow one to store tokens. If I specify the value as say, criteria:tokens, it gets changed to just criteria. Any suggestions as to how to store the input as tokens for my reports? -- Graham Chiu ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Medusa Monitor
Jens Vagelpohl [EMAIL PROTECTED] writes: terry, you forgot the step of actually connecting to the monitor :) there is a very short howto on using the correct client program to log into the monitor at: http://www.zope.org/Members/teyc/howtoMonitorClient and similar info at: http://www.zope.org/Documentation/Misc/DEBUGGING.txt I don't use the monitor anymore, I just mount the database from a Python prompt: lefty /usr/local/zope/2.2.0/lib/python= python Python 1.5.2 (#1, Sep 17 1999, 20:15:36) [GCC egcs-2.91.66 19990314/Linux (egcs- on linux-i386 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam import ZServer, Zope app = Zope.app() dir(app) ['Control_Panel', 'QuickStart', '__allow_groups__', '_objects', '_product_ac_permissions', '_product_meta_types', '_product_permissions', '_product_zclasses', 'acl_users', 'apps', 'bookmarks', 'breadcrumbs', 'index_html', 'standard_error_message', 'standard_html_footer', 'standard_html_header', 'tmp'] I'm not sure what the usefulness of the monitor is these days. I always run ZEO, so I don't have to stop publishing to connect to the database from the prompt. Does the monitor give you something that interactive python doesn't? I do know that python in a shell is more robust than the monitor was - the monitor used to crash when dumping lots of info, like printing a large dictionary. -- Karl Anderson [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] dtml-sqltest and capital column names
Hi, I'm using zope 2.2.2 with postgres 7.0.2 and ZPopyDA 0.6.4. I encountered a problem with dtml-sqltest and capitals in column names. Well, I simply couldn't get it to work because postgres requires column-names with "special characters" like capitals to be enclosed with quotation marks, ie. "COLUMNNAME" instead of COLUMNNAME - IIRC '_' also won't work. The problem is that dtml-sqltest only renders select * from table where COLUMNNAME='5' which will be interpreted by postgres like select * from table where columnname='5' Unfortunatly dtml-sqltest bla column="BLA" type=int throws the obvious error and everything else I tried didn't work too. In the end I patched lib/python/Shared/DC/ZRDB/sqltest.py to do what I want. 165,166c165,166 if has_key('column'): self.column=args['column'] else: self.column=self.__name__ --- if has_key('column'): self.column='"'+args['column']+'"' else: self.column='"'+self.__name__+'"' Any comment whether this would also apply/be necessary for other dbs? And if not, would there a better place (anywhere in ZPopyDA) to change/add some code? Or did I just miss something obvious and there's a sane way to make dtml-sqltest work with postgres and capitals. cheers, oliver ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Easiest way to turn X-Forwarded-For to Remote-IP?
Marcin Kasperski writes: As I finally installed mod_proxy_add_forward, I get original address in X-Forwarded-For header (REQUEST['HTTP_X_FORWARDED_FOR']). The question is: can I do something easy to automatically perform if(remote_ip = 127.0.0.1 and X-Forwarded-For exists) then set remote_ip = whatever is in X-Forwarded-For logic? In particular, I would like changed IP to be used by Zope access control and Zope log. If you do not want to patch Apache, you can use a SiteAccess (-- zope.org) AccessRule in your top (logical) folder to modify your REQUEST object as you like. Does there exist some sample of such usage? Can such a change be performed before authorization? The SiteAccess HowTo (documentation?) contains an example how to turn a path component into a REQUEST binding. Your case is much simpler, very straight forward. I use SiteRoot to translate addressess between external and internal (in subdirectories, not in main directory). Can those approaches be merged one with another? They can. If you like, you can replace your SiteRoot (which in fact are simple forms of AccessRules) with full blown AccessRules and put the REMOTE_IP justification into them. However, I would do it in the root folder to have it at a single place. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: aq_base
Chris Withers writes: Dieter Maurer wrote: At least in Zope 2.2.1, "aq_base" was not exposed to DTML. and I don't think it ever would or should be sicne it strips off all security context and would probably let you do 'bad things' :-S I do not think, an object without any acquisition (and security) context is a big security risk. The lack of a security context means, that the default security setting built into the Zope security policy is used. In Zope 2.2.2., this means, only "Manager" can do anything, unless the object itself mapped some permissions itself to roles (which then remain valid even for the base object). However, I see another danger. As old (now fixed) bugs in "ZopeFind" have demonstrated, objects stripped of their acquisition context lead to very strange errors, where suddenly even Manager cannot use the object any more. Thus, I agree that "aq_base" should not be exposed, even if for a different reason. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Using ProxyPass and SiteRoot
It looks to me like you'd need the following in Apache's httpd.conf: NameVirtualHost 206.131.108.102 VirtualHost 206.131.108.102 ServerName www.isd197.k12.mn.us ProxyPass / http://206.131.108.103:8080/ ProxyPassReverse / http://206.131.108.103:8080/ /VirtualHost and the following settings in a SiteRoot object at the root of the Zope tree for the site: base: http://www.isd197.k12.mn.us path: / Timothy Wilson wrote: I've been developing a new Zope site on a separate machine at http://206.131.108.103:8080/ using just ZServer and I would like to use ProxyPass to pass a request for www.isd197.k12.mn.us through to this new site. -- Fred Yankowski [EMAIL PROTECTED] tel: +1.630.879.1312 Principal Consultant www.OntoSys.com fax: +1.630.879.1370 OntoSys, Inc 38W242 Deerpath Rd, Batavia, IL 60510, USA ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] dtml-if and dtml-var question
First, thanks for the help these last several days. I'm glad to report that I have a useful Zope site up and running that is the envy of the law firm. Now its time to get a little fancy. Unfortunately, after having read the DTML Reference, and the Zope Quick Reference, I still haven't been able to figure out how to get today's date into a dtml-var. Case in point: I want to put a table of dates and hyperlinks. If the day has already passed, I want to shade the table cell (td bgcolor="gray"). In this case, the object has a date property called event_date. table tr dtml-if expr="event_date DateTime()" td bgcolor="gray" dtml-else td bgcolor="white" /dtml-if /td /table The above code gives me a NameError. Another example would be to simply get the integer value of the year so that it can be included in a copyright statement. E.g., Copyright copy; dtml-var Year(), All rights reserved. Unfortunately, this doesn't work either. Can someone point me in the right direction? ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope-dev] Re: [Zope] Thanks for the comments
Just out of curiosity, how often do you update the book (i.e., the version on the web)? Or, put another way, how long should we consider that catching a typo or split infinitive will have already been brought to your attention but hadn't yet made it to the web site? If you update on a continuous basis, then my question is moot. However, if you update on a periodic basis, could you drop me (or this list group) a note to indicate that the next version is available for our hungry eyes? Just a suggestions... Ron ./. Just thought we'd mention that we have gotten lots of great comments on the Zope book so far, especially in the last week or so. You're all helping make it a better book and ensuring Zope's future. if you've felt in the past that you may not be technically proficient enough to contribute to the technology of Zope, you can certainly contribute to the documentation by catching our mistakes and making good observations and asking good questions. It is really, really helping. Keep it up, cuz we're not done yet! ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope] Computed attribute access (was: [Zope] dtml-with syntax question)
Geoffrey L. Wright writes: I think I am finally getting a decent handle on namespace issues in Zope, and I can now with the dtml-with tag with reasonable efficacy in simple situations. But I have run into something of a brick wall on one issue. What I would like to be able to do is something like this: dtml-with objectName1 dtml-var attribute1 dtml-var attribute2 dtml-var attribute3 dtml-with folder.subFolder.objectName2 dtml-var attribute1 /dtml-with /dtml-with Where objectName2 is actually an attribute of objectName1. It seems (though it is not clear) that you want a computed attribute access? Your "objectName2" is an attribute of "objectName1" and contains the "id" of an object in "folder.subfolder"? Then, you use "_.getattr". That's for accessing an attribute you have the name for (and the name is not constant). In your case, you would use it as: dtml-with "_.getattr(folder.subFolder,objectName2)" Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] dtml-let ?
Mark Twiddy writes: Im totaling columns returned from a zsql thingy is there an easy way to do this in dtml. dtml-in can do that for you. Look at the dtml-in documentation, section "variables for statistics". Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] help!- version locked up site
[EMAIL PROTECTED] writes: I cannot view my site...the version has locked it up with the following message (I cannot even delete the version- which is not currently open): Error Type: VersionLockError Error Value: ("'\\000\\000\\000\\000\\000\\002\\303\\007'", 'h101Latest') Your problem description is not very clear. Are you completely unable to access your site? Apparently not, as you can try to delete the version. Try to go to your version, use the "save/discard" tab and discard (or save) your version. This should remove the look. If you can no longer access your site, it might help to delete "var/Data.fs.tmp". Be carefull! Make a backup before! I do not know, what will happen. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Any limit on number of users?
Paul Winkler writes: Has anyone run up against a limitation on the number of users that can be in one acl_users folder? Either a hard limit or a practical limit? "UserFolder" uses a dictionary to manage its users. This implies, if one user object is accessed, the complete dictionary is brought into memory (if it is not already there). This might pose problems for a very large user number. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Any limit on number of users?
Login Manager or Generic User Folder and Shanes excellent BTreeFolder provide a solution for a large number of users. - Original Message - From: "Dieter Maurer" [EMAIL PROTECTED] To: "Paul Winkler" [EMAIL PROTECTED] Cc: "Zope mailing list" [EMAIL PROTECTED] Sent: Thursday, October 12, 2000 2:32 PM Subject: Re: [Zope] Any limit on number of users? Paul Winkler writes: Has anyone run up against a limitation on the number of users that can be in one acl_users folder? Either a hard limit or a practical limit? "UserFolder" uses a dictionary to manage its users. This implies, if one user object is accessed, the complete dictionary is brought into memory (if it is not already there). This might pose problems for a very large user number. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] dtml-with syntax question
Chris Withers writes: "Geoffrey L. Wright" wrote: Where objectName2 is actually an attribute of objectName1. dtml-with objectName1 dtml-var attribute1 dtml-var attribute2 dtml-var attribute3 dtml-with objectName2 dtml-var attribute1 /dtml-with /dtml-with The above should now work... ...if it doesn't please explain in what way ;-) Hmmm... OK. Here is my relevant code, complete with resulting error message: dtml-with sidebar_item dtml-var attribute1 dtml-var attribute2 etc... dtml-with gsi_content dtml-with inventory dtml-with attribute3 dtml-var short_desc /dtml-with /dtml-with /dtml-with /dtml-with sidebar_item And Zope sez: Error Type: KeyError Error Value: short_desc attribute1, attribute2 and attribute3 are all attributes of sidebar_item. If I change the dtml-with attribute3 to read dtml-with weepee_the_weewee (where weepee_the_weewee is the actual name of the object I'm trying to refer to), then I see the short_desc attribute of weepee_the_weewee perfectly. Don't I have to do something in my syntax to indicate that I'm looking for the the value of attribute3 rather than an object with the literal id "attribute3"? cheers, Chris Dazed Confused, //glw ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Medusa Monitor
I know that, the stupid log file thingy. But you'll have to write an independent thread to display the log file (or peek the file manually each time), or implement some CString stuff to capture the file output (if that is possible). It'll be more fun if all this is already done, and the user can just tap into the monitor console screen (even remotely). A good monitor should actually display hit information, memory usage, etc, and preferably with charts, all in real time. Too much to ask? I don't think so. :) Hung Jung From: Dieter Maurer [EMAIL PROTECTED] To: "Hung Jung Lu" [EMAIL PROTECTED] CC: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [Zope] Medusa Monitor Date: Thu, 12 Oct 2000 23:47:35 +0200 (CEST) Hung Jung Lu writes: A more useful debuging tool would be some monitor where you can receive print message logs in real time. That would be great, especially if you have multiple thread problems. You know Zope's logging support? It provides a kind of "print message logs", you receive in real time (in your log file). Dieter _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Using ProxyPass and SiteRoot
knight writes: Timothy, Without going into too much detail, you are going to want to set up a virtual host in apache for the hostname www.isd197.k12.mn.us, and inside that virtual host you will want to add your ProxyPass lines similar to my example: [...] And just for reference, here's another working example with ProxyPass: NameVirtualHost 172.17.10.13 VirtualHost 172.17.10.13 ServerName syslog.integritysi.com ServerAdmin [EMAIL PROTECTED] ProxyPass / http://vishnu.integritysi.com:8080/syslog/ ProxyPassReverse / http://vishnu.integritysi.com:8080/syslog/ ProxyPass /misc_ http://vishnu.integritysi.com:8080/misc_ ProxyPass /p_ http://vishnu.integritysi.com:8080/p_ ErrorLog logs/syslog.integritysi.com TransferLog logs/syslog.integritysi.com /VirtualHost Good luck, and don't forget to enable the ProxyPass module. //glw ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Medusa Monitor
Useless for debugging? I find it very useful and sometimes necessarybut I right all my products in python so maybe it is different for ZClass people. terry Hung Jung Lu wrote: Thanks for the follow-ups on Medusa Monitor. But as I can see (after using Zope for 1.5 years, now), few people actually use it. Unless one is really into the guts of Zope itself, the monitor is pretty useless for debugging. It of course could be made more useful, but one must implement some Python programs first. Even for dynamic reloading of modules, I usually just write External methods to do the job, instead of firing up the monitor. A more useful debuging tool would be some monitor where you can receive print message logs in real time. That would be great, especially if you have multiple thread problems. regards, Hung Jung _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. -- Terry Kerr ([EMAIL PROTECTED]) Adroit Internet Solutions Pty Ltd (www.adroit.net) Phone: +613 9563 4461 Fax: +613 9563 3856 Mobile: +61 414 708 124 ICQ: 79303381 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Medusa Monitor
I don't think the monitor gives you any advantage? I have never used a ptyhon prompt before...I will have to give it a go. terry Karl Anderson wrote: Jens Vagelpohl [EMAIL PROTECTED] writes: terry, you forgot the step of actually connecting to the monitor :) there is a very short howto on using the correct client program to log into the monitor at: http://www.zope.org/Members/teyc/howtoMonitorClient and similar info at: http://www.zope.org/Documentation/Misc/DEBUGGING.txt I don't use the monitor anymore, I just mount the database from a Python prompt: lefty /usr/local/zope/2.2.0/lib/python= python Python 1.5.2 (#1, Sep 17 1999, 20:15:36) [GCC egcs-2.91.66 19990314/Linux (egcs- on linux-i386 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam import ZServer, Zope app = Zope.app() dir(app) ['Control_Panel', 'QuickStart', '__allow_groups__', '_objects', '_product_ac_permissions', '_product_meta_types', '_product_permissions', '_product_zclasses', 'acl_users', 'apps', 'bookmarks', 'breadcrumbs', 'index_html', 'standard_error_message', 'standard_html_footer', 'standard_html_header', 'tmp'] I'm not sure what the usefulness of the monitor is these days. I always run ZEO, so I don't have to stop publishing to connect to the database from the prompt. Does the monitor give you something that interactive python doesn't? I do know that python in a shell is more robust than the monitor was - the monitor used to crash when dumping lots of info, like printing a large dictionary. -- Karl Anderson [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) -- Terry Kerr ([EMAIL PROTECTED]) Adroit Internet Solutions Pty Ltd (www.adroit.net) Phone: +613 9563 4461 Fax: +613 9563 3856 Mobile: +61 414 708 124 ICQ: 79303381 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] help!- version locked up site
Thanks, I did figure it out and when I go into save/discard version and discard I was able to get back to normal. On 12 Oct 2000, at 23:27, Dieter Maurer wrote: [EMAIL PROTECTED] writes: I cannot view my site...the version has locked it up with the following message (I cannot even delete the version- which is not currently open): Error Type: VersionLockError Error Value: ("'\\000\\000\\000\\000\\000\\002\\303\\007'", 'h101Latest') Your problem description is not very clear. Are you completely unable to access your site? Apparently not, as you can try to delete the version. Try to go to your version, use the "save/discard" tab and discard (or save) your version. This should remove the look. If you can no longer access your site, it might help to delete "var/Data.fs.tmp". Be carefull! Make a backup before! I do not know, what will happen. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Content Management System
I'm beginning to wonder if content management and system administration should be split out into separate subsystems. Or if a CMS Tool Kit should be developed. (workflows, syndication, etc...). We (iuveno) are currently preparing a major project to write a full-featured CMS on base of Zope. The first client will be a university, but the system will also be usable in commercial environments, and it will be open source from the first day on (except for the client-specific stuff of course). The first draft of the general architecture is as follows: There is a ZClass- or Python-product-based toolkit that provides the standard functionality, like base classes, workflow logic, etc. Plugin ZClasses implement the actual organization logic, so you can choose between building a university, a sports club, or maybe a consulting business by just choosing the corresponding modules. Chromes (logos, stylesheets, ...) and Views (page layouts) are also implemented as plugins. There will be a full-fledged workflow/project management component (at least in the long run). The concept will build upon ideas from the PTK and the ZDP-tools. There is a very simple prototype we will make public after some clean-ups. We are checking at the moment if we should set up a now project homepage or wiki or join an existing effort like the ZDP-tool-based initiative of Maik Röder on or the PTK. BTW: My experience with "dumb users" working with the Zope interface is quite positive. As long as they just have to add, change or delete predefined objects it doesn't seem to be that bad. They just shouldn't have to know about DTML or even acquisition. Joachim. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope-dev] Re: [Zope] Thanks for the comments
I'll stick onto my Zope members page http://zope.org/Members/philh Phil - Original Message - From: "knight" [EMAIL PROTECTED] To: "Phil Harris" [EMAIL PROTECTED] Cc: "knight" [EMAIL PROTECTED]; [EMAIL PROTECTED]; "Michel Pelletier" [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, October 13, 2000 1:23 AM Subject: Re: [Zope] Thanks for the comments Send it over ;] On Thu, 12 Oct 2000, Phil Harris wrote: As another side note, I generally make it into an eBook ready for the Microsoft Reader. If anyone's interested let me know. Phil [EMAIL PROTECTED] - Original Message - From: "knight" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: "Michel Pelletier" [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, October 12, 2000 10:59 PM Subject: Re: [Zope] Thanks for the comments On a side note, how about also including a PDF version (if possible) for us developers who are busy hacking away at source and don't have time to convert it ourselves... ;] Knight [EMAIL PROTECTED] On Thu, 12 Oct 2000 [EMAIL PROTECTED] wrote: Just out of curiosity, how often do you update the book (i.e., the version on the web)? Or, put another way, how long should we consider that catching a typo or split infinitive will have already been brought to your attention but hadn't yet made it to the web site? If you update on a continuous basis, then my question is moot. However, if you update on a periodic basis, could you drop me (or this list group) a note to indicate that the next version is available for our hungry eyes? Just a suggestions... Ron ./. Just thought we'd mention that we have gotten lots of great comments on the Zope book so far, especially in the last week or so. You're all helping make it a better book and ensuring Zope's future. if you've felt in the past that you may not be technically proficient enough to contribute to the technology of Zope, you can certainly contribute to the documentation by catching our mistakes and making good observations and asking good questions. It is really, really helping. Keep it up, cuz we're not done yet! ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope] non-Zope object attribute admin interface
Kindly Zopistas: Am curious how to go about building an "alternate Property Sheet View" for custom ZClasses. The default view is great for me and other developers, but I need to build the something that looks a bit more customer-friendly. I spend about 20 minutes looking around the Zope site, but haven't yet turned about any useful information. Perhaps somebody could point me to a relevant HOWTO or some example code? Many thanks! //glw ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] dtml-with syntax question
"\"Geoffrey L. Wright\" Don't I have to do something in my syntax to indicate that I'm looking for the the value of attribute3 rather than an object with the literal id "attribute3"? I'm sure someone will correct me if I'm wrong. But I believe you want: dtml-with "_.getitem(attribute3)" -- Tim Cook -- Cook Information Systems | Office: (901) 884-4126 8am-5pm CDT Free Practice Management Project Coordinator http://www.freepm.org OSHCA Founding Supporter http://www.oshca.org ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] non-Zope object attribute admin interface
"\"Geoffrey L. Wright\" Kindly Zopistas: Am curious how to go about building an "alternate Property Sheet View" for custom ZClasses. The default view is great for me and other developers, but I need to build the something that looks a bit more customer-friendly. I spend about 20 minutes looking around the Zope site, but haven't yet turned about any useful information. Perhaps somebody could point me to a relevant HOWTO or some example code? Take a look at the Job Board HOWTO. HTH, -- Tim Cook -- Cook Information Systems | Office: (901) 884-4126 8am-5pm CDT Free Practice Management Project Coordinator http://www.freepm.org OSHCA Founding Supporter http://www.oshca.org ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Connection Problem with Oracle
I created a connection to an Oracle database. Frequently, the connection breaks and I got a database error in the page that displays the query result. When I logon as a manager I find that the connection is closed (by itself, nothing changed in Oracle or Zope), when I try to open it I get an error "Invalid connection string". Even if I create another connection it can't work.. After a while it works. Even after restarting the Zope server the problem persists. I'm not sure why the same connection string would work only some of the time. Maybe some other error from sqlnet is misreported. In any case, look for sqlnet.log at the directory where zope was started. You can get more info on the errors you're experiencing. Furthermore try running zope with nohup and monitor the nohup.out file that gets generated. You can see how frequently your zope goes down (if running as deamon under linux). Frequent problems with Oracle setup stem from read permissions on files used by sqlnet (e.g. message files). Make sure such files are readable by whatever user your zope is running as. Ayhan Ergul [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope-dev] SessionManager, BerkeleyDB, and license compatability
I understand from the SessionTracking wiki that this product may use BerkeleyDB http://www.zope.org/Wikis/DevSite/Projects/CoreSessionTracking/CurrentStatus The BerkeleyDB license at http://www.sleepycat.com/licensing.html indicates that it may only be distributed free of charge with software that is 'freely available and redistributable by others'. We are currently using Zope to develop an application that does not fall into this category. It would be a serious problem for us if Zope's core had a dependency on code with this type of license. Toby Dickenson [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] SessionManager, BerkeleyDB, and license compatability
This is a good point... Not to worry, however, because the default configuration of the session tracking stuff is going to use in-memory storage. Berkeley DB will not need to be (and won't be) distributed with Zope. The session manager will be capable of using nonundo databases (like one based on BerkeleyStorage/BerkeleyDB), but a nonundo database won't be required to make use of it. When you want to use it, you will be able to pick and choose from nonundo storage implementations including BerkeleyDB. - Original Message - From: "Toby Dickenson" [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Cc: "James Wilson" [EMAIL PROTECTED] Sent: Thursday, October 12, 2000 10:04 AM Subject: [Zope-dev] SessionManager, BerkeleyDB, and license compatability I understand from the SessionTracking wiki that this product may use BerkeleyDB http://www.zope.org/Wikis/DevSite/Projects/CoreSessionTracking/CurrentStatus The BerkeleyDB license at http://www.sleepycat.com/licensing.html indicates that it may only be distributed free of charge with software that is 'freely available and redistributable by others'. We are currently using Zope to develop an application that does not fall into this category. It would be a serious problem for us if Zope's core had a dependency on code with this type of license. Toby Dickenson [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Re: A couple of ZPatterns questions
2. I want to store a list of products, and give each one an arbitrary number of photos. I can use a Product ZClass, subclassed from ObjectManager and store Image objects inside it. Would using the new ZPatterns based EMarket-0.2.0a2 help as a base system. I would also look at the updated information on SkinScript located here. http://www.zope.org//Members/pje/Wikis/ZPatterns/SkinScriptSyntax I hope this helps. Get your Free E-mail at http://tacoma.zzn.com Get your own Web-Based E-mail Service at http://www.zzn.com ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Strange permissions in the (built-in) API reference
KevinL wrote: Michel Pelletier wrote Dieter Maurer wrote: 3. Jim is working on formal interface support for python and he's thinking hard about it, we definatly didn't want to think hard about it and then turn out we came up with a bad answer, the existing API docs are just that, docs, not interfaces. When format interfaces come about, API docs will probably be converted to that format. As in mods to python to give it interface support? Is that discussion taking place anywhere public? It already did way back in the day shimmery dream sequence http://www.zope.org/Members/jim/PythonInterfaces/Summary It's suddenly become an issue for me, for a non-related project... KevinL ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Xron fragility
From: "Kapil Thangavelu" [EMAIL PROTECTED] [snip] Xron has a single dispatcher thread. This thread knows how long to sleep for until the next job needs to run. this model has problems when new jobs (for immeadiate execution) are entered after the system sleeps. i think it should it taken into account that people will use this dispatching thread to achieve async operations on a request, and that these might need to be done immeadiately. This is not (or should not be) a problem in current Xron design. The Dispatcher wakes up early if the Schedule catalog is changed. -- Loren ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Xron fragility
What if you want a small job to be done every 30 seconds? I generally don't... I'm satisfied with cron granularity, although others might not be. Do you have this requirement? I thought a little about the granularity issue and decided to go with the most general solution. I have no requirement for 30-second intervals, but I wanted to avoid support requests from those who might have such a need. Also, I have no need for large numbers of scheduled methods. But I used a heavy-duty data structure (Catalog) and the sleeping dispatcher model, just so there would be no arbitrary limits that would cause me support headaches later. It uses Client.py to run a job. Why is this? This doesn't make any sense to me on its face. Why not just call the method from a separate thread? Which separate thread? Do you create a new ZODB thread? That sounds as if it might use quite a few resources. Is there a Zope API for making ZODB threads call methods on objects, as signalled by other threads? I'm guessing the easiest way to do that is to use Client.py to make a new http request. Yes, using Client.py was the easiest way to do that. The biggest problem with Client.py is its dependency on HTTP. If your server is set up to only accept HTTPS, then you can't use Xron -- not a desirable trade-off. We need another mechanism that achieves the same goal -- simulating the environment of a request -- without going all the way back to the socket. -- Loren ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Future of Xron and method scheduling in Zope
I would be happy to turn development of Zope scheduling capabilities over to someone else, because I currently have no demand for scheduling capabilities and am not actively working on Xron. This could take any of the following forms: 1. Transfering Xron to another developer. For historical reasons, Xron uses GPL. 2. Starting a new product from scratch, without reference to the Xron product. The new product could carry a different license. I would be happy to give up the Xron name, in this case, if anyone wanted it for the new product. 3. Building scheduling capabilities into Zope core. Any takers? -- Loren ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] symlink product?
[EMAIL PROTECTED] wrote: In order to make Shane's Symlink product (soft links to objects based on Symlink product? Where can I find out more? I don't see anything in Shane's member folder or by searching Zope.org. I have written a Shortcut product myself. (It was fairly primitive so I didn't have the heart to call it a symlink :) -- Neil Kandalgaonkar [EMAIL PROTECTED] Web Application Developer, ActiveState ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Re: Zope-Dev digest, Vol 1 #752 - 13 msgs
James Johnson wrote: 2. I want to store a list of products, and give each one an arbitrary number of photos. I can use a Product ZClass, subclassed from ObjectManager and store Image objects inside it. Would using the new ZPatterns based EMarket-0.2.0a2 help as a base system. I would also look at the updated information on SkinScript located here. http://www.zope.org//Members/pje/Wikis/ZPatterns/SkinScriptSyntax I hope this helps. It's extremely helpful. I missed that SkinScript Wiki page, and I've been following the discussions about the ZPatterns-based EMarket but didn't realize it's been released. Thanks! -- Itai Tavor"Je sautille, donc je suis." C3Works[EMAIL PROTECTED] - Kermit the Frog "If you haven't got your health, you haven't got anything" ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Re: [Zope] Thanks for the comments
As another side note, I generally make it into an eBook ready for the Microsoft Reader. If anyone's interested let me know. Phil [EMAIL PROTECTED] - Original Message - From: "knight" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: "Michel Pelletier" [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, October 12, 2000 10:59 PM Subject: Re: [Zope] Thanks for the comments On a side note, how about also including a PDF version (if possible) for us developers who are busy hacking away at source and don't have time to convert it ourselves... ;] Knight [EMAIL PROTECTED] On Thu, 12 Oct 2000 [EMAIL PROTECTED] wrote: Just out of curiosity, how often do you update the book (i.e., the version on the web)? Or, put another way, how long should we consider that catching a typo or split infinitive will have already been brought to your attention but hadn't yet made it to the web site? If you update on a continuous basis, then my question is moot. However, if you update on a periodic basis, could you drop me (or this list group) a note to indicate that the next version is available for our hungry eyes? Just a suggestions... Ron ./. Just thought we'd mention that we have gotten lots of great comments on the Zope book so far, especially in the last week or so. You're all helping make it a better book and ensuring Zope's future. if you've felt in the past that you may not be technically proficient enough to contribute to the technology of Zope, you can certainly contribute to the documentation by catching our mistakes and making good observations and asking good questions. It is really, really helping. Keep it up, cuz we're not done yet! ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] A couple of ZPatterns questions
At 06:15 PM 10/12/00 +1100, Itai Tavor wrote: Hi, 1. I want to set some object attributes every time the object is changed (for example, to store the name of the user making the change). I looked at using a Generic Trigger or a SkinScript but I can't figure how to do it with either one. With a Trigger, I guess I need to set "Set Sttrs" to all the object attributes except the ones I intend to set (otherwise, would setting an attribute in the Trigger cause the Trigger to be called again?) and then call a method to set the attributes - but how do I set the attributes? Do I have to call changeProperties for the object or can I make the change directly on the DataSkin? You can only change the attributes directly by calling an External Method, so changeProperties would be the more direct way. You are correct that you must list the attributes *other* than the ones you want to change, otherwise you will cause an infinite recursion. In some older versions of ZPatterns, you may get the recursion anyway. :( With SkinScript, I can't figure out the STORE and USING syntax... also, if I use WHEN OBJECT CHANGED to change the object, would I get infinite recursion? Can I evaluate REQUEST['AUTHENTICATED_USER'] in the SkinScript or do I need to call a method for that? Yes, you can say REQUEST.AUTHENTICATED_USER. No special methods needed. To write SkinScript equivalent to a generic trigger, the form is: WHEN OBJECT events STORE set attrs USING expression SAVING stufftosave This performs the same as a generic trigger with the same parameters. 2. I want to store a list of products, and give each one an arbitrary number of photos. I can use a Product ZClass, subclassed from ObjectManager and store Image objects inside it. But what will happen to these objects if I use this ZClass in a Rack? And how would I handle storing the objects in SQL tables - I will need to somehow turn each Image object into a table entry, and the same Generic Attribute Provider will have to work with 2 SQL tables. Is there a nice way of doing this? Or should I store the photos in a separate ZClass and use it in another Rack in the Products Specialist? I would not suggest trying to go the ObjectManager route. ZPatterns does not have a good way at present to map child objects into other databases. Instead, a more custom approach would be appropriate, where you have say an "images" attribute that is loaded/saved through SQL. This has the downside, however, of being either resource intensive or computationally intensive. However, it'd probably be best of all to have a Photos specialist, with a getPhotosForProduct() method, addPhotoToProduct(), and so on. Actually, I can't put an Image object on a DataSkin, right? So however I store it, it's going to have to be a my own custom Image object subclassed from DataSkin... Not necessarily, it depends on your overall structure. If you want to use standard Zope Image objects you may indeed want to subclass from DataSkin. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )