[Zope-dev] 2 Zopes
Hi, Can anyone tell me a way to get Zope Objects from the first Zope-Installation to the second. I need this because i have to program a Product to putting data into different Zope Installations from one point of the Web. My boss want this way because he want a central point for data input, where the data are of different type and therefore they have to stored in different locations( different Zope Installations) My idea is to use ZPublisher.Client, but i don't find a way to use it. thanks as ___ 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] Security and Acquisition?!
Toby Dickenson wrote: Zope security is context based: Users can be defined in a subfolder and only have access under that folder, they can also be given local roles for a given folder. The role:permission mapping is set per-folder. Any security aware object needs to know its context. Yeah, I think I get it now *grumble* *grumble* ;-) That said, I think Shane said that Zope security is predicated a lot on Acquisition. Now, can I get the solution I'm looking for by mixing in Aquisition.Explicit, still have the security stuff work and not have the DisplayClass acquiring attributes I don't want it do? Yes, you will need to set Acquisition.Acquired for the necessary attributes. Anyone know what those attributes are? Maybe someone could knock up a new class in Acquisiton: Acquisition.SecurityAcquire which does this but is like Acquisition.Explicit for everything else? Wanting to make an object non-acquiring may be a danger-sign of some other problems. If the correctness of your program depends on the absence of certain attributes (acquired or otherwise) then you need to take extra care over PropertyManager-like features, which might allow a user to add the critical attribute. Yeah, I know :-S But these are very specific classes that exist for no longer than the duration of serving a single page request, and it'd just be nice to know that they're not going to acquire and fluff they shouldn't... cheers, Chris ___ 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: Security and Acquisition?!
Anyone know what those attributes are? Heres a good trick: add this method to your class to see which attributes it is asked for, but doesnt implement. def __getattr__(self,id,reg={}): if not reg.has_key(id): print `id` reg[id]=id raise AttributeError(id) But these are very specific classes that exist for no longer than the duration of serving a single page request, and it'd just be nice to know that they're not going to acquire and fluff they shouldn't... An alternative approach: apply tighter security to the method that constructs these objects, and leave the objects themselves completely open. ___ 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] 2 Zopes
Andre Schubert wrote: Hi, Can anyone tell me a way to get Zope Objects from the first Zope-Installation to the second. I need this because i have to program a Product to putting data into different Zope Installations from one point of the Web. My boss want this way because he want a central point for data input, where the data are of different type and therefore they have to stored in different locations( different Zope Installations) My idea is to use ZPublisher.Client, but i don't find a way to use it. thanks as i've never done it before, but the options as always are multiple depending on your needs and requirements. if you can distill your objects down to simple python types (lists, dicts, etc) you can try using xml-rpc and reconstructing the object on the separate system. there is even a product that uses xml-rpc to facilitate sharing between zope installs. if you don't need to really replicate the info, and depending on the frequency which it will need to be accessed you can just use xml-rpc to a function on the second server and display the results directly on the first server. if you need to copy the actual objects verbatim you might want to investigate exporting to zexp and using file transfer between the hosts and (using Client to faciltate calling into zope) importing them on the second server. hth kapil ___ 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] extending objectValues() and objectIds() or ?
Thanks for the advice (below). I added another parameter for meta type and everything works great. What's the advantage of using Python Method rather than an external method, other than thru-the-web editing? Any disadvantages? At 10/24/00 06:45 PM, Itamar Shtull-Trauring wrote: Write a Python Method (install the PythonMethods product first) called say, publishableObjectValues that does that: paramself/param # functions that returns publishable objects result = [] for o in self.objectValues(): if o.isPublishable(): result.append(o) return result -- Dennis Nichols [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] Large file support
On Tue, 24 Oct 2000 20:31:52 +0200, [EMAIL PROTECTED] wrote: If the Zope object knows how to produce the data themselves, they could push producer(s) directly to the channel. I added a single check in ZServer.HTTPResponse(256) where a temporary file is only created if the data is larger than the in-memory buffer *and* doesn't already look like a producer with 'more' as a method. Wahay! thats been on my todo list for ages. Ill take a look when I get some time. 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] Unique and Contant object IDs
Toby Dickenson wrote: On 24 Oct 2000 15:14:24 GMT, [EMAIL PROTECTED] (Ty Sarna) wrote: Unfortunately there are a lot of things that Zope just can't do because there is no way to get a persistent "ticket" for an object that can be handed out to some external system, and then later redeemed for the (properly wrapped) object. Pathnames are not useful, because they don't last for the object's lifetime. How come? because you want the identity to remain unchanged even after the object is moved? or duplicated? Yeah, I'd love an ID I could use to grab an object no matter how often it was used. Why wouldn't the following work though: ...in a class method... self.theobject = theObject ...where theObject is something I want a reference to and self is a persistent class... cheers, Chris ___ 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] Large file support
How does this differ from Local FS? cheers, Chris [EMAIL PROTECTED] wrote: I have been building an "ExternalFile" class which stores the body of the file in an external file, mirroring the Zope path/hierarchy. This will allow easy integration with servers that can mount the external representation of the content and serve it with a consistent namespace. To make life zimple, I tried to move all file manipulation to Zope, including upload/download/copy/cut/paste/delete and permissions. These external files are transaction aware, blah blah.. Working with files 20MB I notices some serious performance/scalability issues and investigated. Here are the results. A diff with my changes against version 2.2.2 is available at http://www.superchannel.org/Playground/large_file_zope2.2.2_200010241.diff Concerns: Zope objects like File require data as a seekable file or as a coherent block, rather than as a stream. Initializing/updating these objects *may* require loading the entire file into memory. In memory buffering of request or response data could cause excessive swapping of the working set. Multi-service architecture (ZServer-ZPublisher) could limit the reuse of stream handles. Creating temporary files as FIFOs buffers between the services causes signficant swapping. Modifications: Using pipes I found that FTPServer.ContentCollector was using a StringIO to buffer the uploads from FTP clients. I changed this into a TemporaryFile for a while which revealed the leaked file descriptor bug (see below). This intermediary temp file caused 1 extra file copy for each request. The goal is to not have any intermediary files at all, and pipeline the content directly into the Zope objects. To remove this FTP upload file buffer, I converted the FTP collector again from a TemporaryFile into a pipe with a reader and writer file objects. The FTPRequest receives the reader from which it can process the input on the publish thread in processInputs. Since we are dealing with blocking pipes it is OK to have a reader on the publish thread and a writer on the ZServer thread. The major considerations were regarding the proper way to read from a pipe through the chain of control, especially in cgi.FieldStorage. Stdin is treated as the reader of the pipe throughout the code. All seek()s and tell()s on sys.stdin type objects (a tty not a seekable file) should be considered illegal and removed. Usage of FieldStorage from FTP (Unknown content-length) To gain access to the body of a request, one typically calls REQUEST['BODY'] or REQUEST['BODYFILE']. This returns the file object the FieldStorage copied from stdin. To prevent FieldStorage from copying the file from stdin to a temporary file, we can set the CONTENT_LENGTH header to '0' in the FTP _get_env for a STOR. In this case, FieldStorage creates a temporary file but doesn't read any data from stdin so we can return stdin directly when BODYFILE is requested and 'content-length' is '0'. However, BODYFILE could be a pipe which doesn't support 'seek' or 'tell'. The code used to suck the data off the BODYFILE needs to be modified to adapt to the possibly of being passed a pipe. Updating Image.File to play with pipes The _read_data method of Image.File pulls the data out of the BODYFILE and sticks it in the instance as a string, pdata object, or a linked list of pdata objects. The existing code reads and builds the list in one clean sweep back-to-front. I belive this keeps the pdata.data chunks out of memory, quickly (sub)committing then deactivating (_p_changed = None) them. Since we can no longer safely assume 'seek' is valid for BODYFILE, I tried to read and build the list front-to-back. This kept the data in memory, even though I tried to deactivate the objects quickly. As a tradeoff, I read the data front-to-back then built the list back-to-front taking another pass to reverse the list so it is in the correct order. Memory usage appears to be steady, meaning the whole file is not loaded into the working set. This also prevents unecessary reading into a temporary FieldStorage file during an FTP upload. Web based uploads... ...suck. I do not recommend doing a web based upload for files 1mb. First, a content-length is known, so we don't get the advantage of pipelining the data directly from the socket, a temporary file must be created, written and read. Second, I
Re: [Zope-dev] Unique and Contant object IDs
Toby Dickenson wrote: Yeah, I'd love an ID I could use to grab an object no matter how often it was used. I suspect you will have to build this yourself. Store a sufficiently random id inside your objects when they are created, and use a ZCatalog to index them. blech! ;-) Why wouldn't the following work though: ...in a class method... self.theobject = theObject ...where theObject is something I want a reference to and self is a persistent class... theObject would need to be persistent too. This has a number of characteristics that I would class as problems, but may be exactly what you want: * theObject will have different acquisuition context when accessed through its main path, and through self.theobject. This means different: * security :-( * absolute_url ...that'd probably behaev how I'd want * configuration obtained through acquisition. What if theObject is CatalogAware? CatalogAware is the work of the devil anyway ;-) ZPatterns ahs got to be better for doing that kindof stuff ;-) * theObject isnt removed from the database when it is deleted from its folder; this other reference keeps it alive. That, too, would be what I want... although I can think of other situations where that would be bad... argh! cheers, Chris ___ 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] Unique and Contant object IDs
Chris Withers wrote: I suspect you will have to build this yourself. Store a sufficiently random id inside your objects when they are created, and use a ZCatalog to index them. blech! ;-) This is the normal way to keep references to objects. I asked Jim Fulton at IPC8, and he basically said "don't use _p_oid", which means this is the only way. Of course, once the observer interface is more well developed you won't need the Catalog part. CatalogAware is the work of the devil anyway ;-) ZPatterns ahs got to be better for doing that kindof stuff ;-) Yup - no object_reindex() every time you change the object, no need to inherit from anything. You can have automatic catalogging in any DataSkin object trivially, with no change to your class. -- Itamar S.T. [EMAIL PROTECTED] Fingerprint = D365 7BE8 B81E 2B18 6534 025E D0E7 92DB E441 411C ___ 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] WriteLocking RiskFactors updated
The WriteLocking RiskFactors artifact has had some new work done on it and I'm interested in some editorial comments and review before work begins on Architecture and UseCases. http://dev.zope.org/Wikis/DevSite/Projects/WriteLocking/RiskFactors Make any comments you have at: http://dev.zope.org/Wikis/DevSite/Projects/WriteLocking/ProjectDi scussion I added a few comments on this... Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.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] Unique and Contant object IDs
Johan Carlsson wrote: Why are the _p_oid depriciated? Not depreciated, just "don't use them." -- Itamar S.T. [EMAIL PROTECTED] Fingerprint = D365 7BE8 B81E 2B18 6534 025E D0E7 92DB E441 411C ___ 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] Large file support
There is not much difference between the ExternalFile class I'm working with and the File objects produced by LocalFS except External Files can be put anywhere in the Zope hierarchy and LocalFS files need to be under a LocalFS. Each approach has its pros and cons. This proposal mostly deals with the Zope framework, which will effect both products. Chris Withers([EMAIL PROTECTED])@Wed, Oct 25, 2000 at 12:35:23PM +0100: How does this differ from Local FS? cheers, Chris ___ 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] Large file support
I should also note that if you create a producer, you will have to override the __len__ method to return the entire length of the data. This is because RESPONSE.write doesn't allow you to set the length of a write and there code during output that checks the size of the written object. Wahay! thats been on my todo list for ages. Ill take a look when I get some time. Damn. Its back on my to-do list then ;-) ___ 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] Unique and Contant object IDs
Johan Carlsson wrote: Why are the _p_oid depriciated? Not depreciated, just "don't use them." But I want too, why shouldn't I? They solves my problems with mapping relational data to objects. If I were to use my own random id generator I would need a global registry for my UID. I really want that to be a feature in the ZODB. //Johan ___ 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] Unique and Contant object IDs
Johan Carlsson wrote: Why are the _p_oid depriciated? Not depreciated, just "don't use them." But I want too, why shouldn't I? They solves my problems with mapping relational data to objects. I would guess multiple databases can have the same oid's for their objects - and Zope does support multiple databases. Plus you're breaking encapsulation, using an implementation detail of the ZODB for other purposes. -- Itamar S.T. [EMAIL PROTECTED] Fingerprint = D365 7BE8 B81E 2B18 6534 025E D0E7 92DB E441 411C ___ 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] Zope Error: You are not authorized to access this resource
Hi, do anyone know how to generate my own error message if there is a authorization problem? The standard_error_message.html do not influence the response from zope. Thanks, Hannes ___ 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] UnboundLocalError : LoginMgr 8.8b1, ZPatterns 4.3b1
Hi, I am trying to get Login Manager working and I am getting the following error message when I add the LoginManager type to a user folder, has anyone encountered this before ? Thanks, Kim Friesen __ACTION__ Add User Folder Add Login Manager to User Folder Error __PRODUCTS__ LoginManager 0.8.8b1 ZPatterns 0.4.3b1 Zope2 (from CVS 2000-10-25) Python 2.0 __ERROR MESSAGE__ Zope Error Zope has encountered an error while publishing this resource. Error Type: UnboundLocalError Error Value: Local variable 'path' referenced before assignment Troubleshooting Suggestions The URL may be incorrect. The parameters passed to this resource may be incorrect. A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. [Powered by Zope] Traceback (innermost last): File /unix2/usr/src/python/Zope2/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /unix2/usr/src/python/Zope2/lib/python/ZPublisher/Publish.py, line 187, in publish File /unix2/usr/src/python/Zope2/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook File /unix2/usr/src/python/Zope2/lib/python/ZPublisher/Publish.py, line 171, in publish File /unix2/usr/src/python/Zope2/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: addLoginManager) File /unix2/usr/src/python/Zope2/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: addLoginManager) File /unix2/usr/src/python/Zope2/lib/python/App/special_dtml.py, line 120, in __call__ (Object: addLoginManager) (Info: /unix2/usr/src/python/Zope2/lib/python/Products/LoginManager/addLoginManager.dtml) File /unix2/usr/src/python/Zope2/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__ (Object: addLoginManager) File /unix2/usr/src/python/Zope2/lib/python/DocumentTemplate/DT_In.py, line 633, in renderwob (Object: UserSourcesMetaTypes(this())) File /unix2/usr/src/python/Zope2/lib/python/DocumentTemplate/DT_Util.py, line 331, in eval (Object: UserSourcesMetaTypes(this())) (Info: UserSourcesMetaTypes) File /unix2/usr/src/python/Zope2/lib/python/ZPublisher/HTTPRequest.py, line 772, in __getitem__ UnboundLocalError: (see above) _ 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-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] Migrating from ZClasses to Python Products
Toby Dickenson: Thanks for the advice. I have looked at that before, and having a hybrid ZClass/Python product seemed to place a lot of design considerations heavily in the python base class. I've looked _holdOntoYourButts before as well. Thanks again, On Tue, 24 Oct 2000 20:16:30 GMT, "Jason Spisak" [EMAIL PROTECTED] wrote: I am trying to address shortcomings like not having a "dictionary" type property in Zope properties, etc. Aha! in that case you dont really need to convert from ZClass to python class; you only need to modify your existing ZClass so that it has an extra python base class. * No need to trawl through your database to convert each instance * No need to rewrite the bits that work well as a ZClass You can do this using the method _setBasesHoldOnToYourButts defined in ZClass.py, and you may be able to find some instructions in the list archives. (Its often safer to create a special python base class for each new ZClass, even if that class is empty, just in case) 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 ) Jason Spisak ___ 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] FW: FastCGI under IIS
-Original Message- From: ethan mindlace fremen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 25, 2000 2:45 PM To: Glen Becker Cc: Zope Webmaster Subject: Re: FastCGI under IIS Glen Becker wrote: Apparently, Zope has support for FastCGI under IIS. We want to find a FastCGI plug-in for IIS, but have been unable to do so. Is this portion of Zope segregable, so that it could be used by other FastCGI programs? I am but a lowly webmaster. We don't use fastcgi or IIS for zope.org, and so I haven't an idea on what it should be. Please consider contacting the zope developer's list ( [EMAIL PROTECTED] ) for more information. Thanks, -- -mindlace- Zopatista Community Liason ___ 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] zoplets....
groove.net has a lot of potential for coordinating open-source projects... maybe someone can schedule one of those hairy zope-xml discussions on there. -josh _ 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-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] UnboundLocalError : LoginMgr 8.8b1, ZPatterns 4.3b1
oops, sorry I didn't mean a 'User Folder' ... I actually added a 'Folder' and then added a 'Login Manager' to that Folder. I also tried this with a 'Folder w/Customizer Support' Thanks, Kim Friesen Message: 11 From: [EMAIL PROTECTED] (Ty Sarna) Subject: Re: [Zope-dev] UnboundLocalError : LoginMgr 8.8b1, ZPatterns 4.3b1 Date: 25 Oct 2000 17:43:07 GMT Organization: Endicor Technologies, Inc., San Antonio, Texas To: [EMAIL PROTECTED] In article [EMAIL PROTECTED], Kim Friesen [EMAIL PROTECTED] wrote: I am trying to get Login Manager working and I am getting the following error message when I add the LoginManager type to a user folder, has anyone encountered this before ? What do you mean by "Add the LoginManager to a user folder". You can't add LoginManager to a User Folder; it's a replacement for User Folder. --__--__-- _ 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-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] FW: FastCGI under IIS
The fastCGI plugin for IIS is unfortunately not open source. FastCGI bought it and you now have to pay for it. Try pcgi instead. http://www.fastcgi.com/ - Original Message - From: "Becker, Glen" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 25, 2000 12:41 PM Subject: [Zope-dev] FW: FastCGI under IIS -Original Message- From: ethan mindlace fremen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 25, 2000 2:45 PM To: Glen Becker Cc: Zope Webmaster Subject: Re: FastCGI under IIS Glen Becker wrote: Apparently, Zope has support for FastCGI under IIS. We want to find a FastCGI plug-in for IIS, but have been unable to do so. Is this portion of Zope segregable, so that it could be used by other FastCGI programs? I am but a lowly webmaster. We don't use fastcgi or IIS for zope.org, and so I haven't an idea on what it should be. Please consider contacting the zope developer's list ( [EMAIL PROTECTED] ) for more information. Thanks, -- -mindlace- Zopatista Community Liason ___ 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 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] Migrating from ZClasses to Python Products
Ender writes: Point taken. Jason Spisak wrote: Ender writes: Jason Spisak wrote: The only problem I am dealing with is size. What kind of a transaction will that be? Huge, no doubt. I would run out of space to buffer it. Does Zope do subtransactions now, or is that still just the ZCatalog? zope has done subtransactions for a while, i'm not sure if this predates zcatalog or not ( i assume'd it does). just call get_transaction.commit(1) to save work. and call get_tranaction.commit() when you're done. i'm in the process of writing an advanced transaction how-to which will hopefully give some more enlightenment on this process, but i've been busy with work so i don't expect to have it public for another week. Also, I am running on stock RH6.2 linux and to double my ZODB puts me near the 2 gig file limit. Not as much of a concern as a pain in my neck. Is it faster to modify my installation to allow 2GB or create from xml/export? you could create the python product instances in a mounted db. I looked into this. The webpage is very exclamitory about it's volitility, and yet Zope.org uses it. Worth a shot. do make a backup, i hosed something in my zodb using it. kapil Jason Spisak ___ 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] Trying to follow tutorial
Olivier Ricou wrote: On Tue, Oct 24, 2000 at 01:40:58PM +0200, Rik Hoekstra wrote: Go to the management interface and add a zope user in the acl_users folder. Give it Management rights. Shut you browser, reopen it and authenticate as the user you just entered. Get on with the tutorial... BTW there is no easier way than to shut the browser and reopen it ? No easy sure way at least. That is, if you have basic authentication (which is always the case when you have Zope out of the box). It's reported that in some cases http://user:[EMAIL PROTECTED]:whateverport may log you out/log you in differently, but afaik that won't work in all browsers and all platforms _and_ it may present you with an authorization box 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] LoginManager 0.8.8b1 examples/suggestions?
--- "Morten W. Petersen" [EMAIL PROTECTED] wrote: [Jason Byron] | Does anyone have any LoginManager 0.8.8b1 example | code? It almost looks like you can extend the system | using plugins, but I don't know how that's done. | Anyone else have luck doing this? If so then do you | have any examples/suggestions? Yes. After adding your LoginManager instance, you should add four methods of some sort within the UserSource object. The four methods are: userAuthenticate userExists userRoles userDomains Here's the External methods I used just to make the logins work; you'll have to implement them to fit your system: def userAuthenticate(self, REQUEST, username, password): if username == 'morten' and password == 'morten': return 1 else: return 0 def userExists(self, REQUEST, username): return 1 def userRoles(self, REQUEST, username): return 'Manager', 'Owner' def userDomains(self, REQUEST, username): return [] Hmmm, I tried implementing these functions before, but only as DTML methods: userAuthenticate dtml-return "_.int('1')" userDomains dtml-return "['']" userExists dtml-return "_.int('1')" userRoles dtml-return "['Manager']" Yet this never seemed to work. Does it not work because they are DTMLMethods and not External Methods, or because I am returning the wrong values, or because of a proxy or security setting? The Methods are in the User Sources 'folder' and I am sure I chose "GUF" authentication from the list when I added the LoginManager. Jason __ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.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] AW: [Zope] dtml-var owner? author? editor?
I want to include the owner (from acl_users) of a page in my HTML-output. dtml-var "AUTHENTICATED_USER.getUserName()" is what you want Not exactly. This only returns the AUTHENTICATED_USER, or am I wrong? What I want is: 'Anonymous User' surfs to my site. She surfs trough the HTML output generated by zope, while zope not only tells her the content provided, but also the Name of the Zope-owner of the document (e.g patrick is owner of index_html -- that info is also displayed to the anonymous user) Thanks for more help, p@ ___ 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] AW: [Zope] Trying to follow tutorial
BTW there is no easier way than to shut the browser and reopen it ? No easy sure way at least. That is, if you have basic authentication (which is always the case when you have Zope out of the box). It's reported that in some cases http://user:[EMAIL PROTECTED]:whateverport may log you out/log you in differently, but afaik that won't work in all browsers and all platforms _and_ it may present you with an authorization box Another real dull way is: open NS and IE (or... or ...) and use them with different authorization. p@ ___ 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] How many houres do I need to manage a Zope site?
Hi, The management team wants to know how many hours are necessary to keep the faculty Zope site running. I have to make a summary of hours necessary for the technical system management such as software releases, database management, fixes etc. Developing or installing new features is not to be included. Configuration: Zope version: 2.2.2 Windows NT 4.0 Installed products: FSSession, LocalFS, Refresh, Squishdot, TinyTable, UserDB, XMLDocument, XMLWidgets, ZODBCDA, ZSQLMethods 1. How many Zope releases per year can I expect and how much time do I need per release? 2. How much time do I need for product releases and fixes? 3. How much time do I need for Zope database management? Besides a regular backup and packing the Data.fs are there other things necessary? Do I miss important tasks? Has anybody done this before? Thanks, Diny 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 )
[Zope] i can not see some graphic icons..
hi all, after starting Zope, everything seems to be ok, but i can not see some graphic icons in the web page. The Traceback after starting zope is the following one: Traceback (innermost last): File "/home/pecos/zope/Zope-2.2.2-solaris-2.6-sparc/z2.py", line 609, in ? logger_object=lg) File "/home/pecos/zope/Zope-2.2.2-solaris-2.6-sparc/ZServer/medusa/http_server.py", line 541, in __init__ self.bind ((ip, port)) File "/home/pecos/zope/Zope-2.2.2-solaris-2.6-sparc/ZServer/medusa/asyncore.py", line 242, in bind return self.socket.bind (addr) socket.error: (125, 'Address already in use') how can i solve it ? thanks in advance Gaby ___ 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: AW: [Zope] dtml-var owner? author? editor?
On Wednesday 25 October 2000 16:01, Patrick Koetter wrote: I want to include the owner (from acl_users) of a page in my HTML-output. dtml-var "AUTHENTICATED_USER.getUserName()" is what you want Not exactly. This only returns the AUTHENTICATED_USER, or am I wrong? What I want is: 'Anonymous User' surfs to my site. She surfs trough the HTML output generated by zope, while zope not only tells her the content provided, but also the Name of the Zope-owner of the document (e.g patrick is owner of index_html -- that info is also displayed to the anonymous user) Thanks for more help, ok, i see what you want to do. i thought that you have a "author" property somewhere. i'm sorry to say that i can't be of any more help. i guess you can test for ownership of objects in zope since there exist a take ownership button. check the source, probably. zopeinstalldir/lib/python/AccessControl/Owned.py tell us what you got :) p@ -- http://www.kedai.com.my/kk http://www.kedai.com.my/eZine use Zope? then you got HOPE! ___ 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] MailHost: bcc broken ?
Zope bulk mailing has recently been discussed here and the general opinion was to avoid it. Zope is just not a bulk mailer. Look into e.g. mailman and hand off the task. Stefan On Tue, 24 Oct 2000, Holger Lehmann wrote: I can send single email with one recipient without problems. I need to use a bcc: for about 4000 users. No way doing that halfway performant with a dtml-in ... /dtml-in statement. I am thinking of the bcc: user1, user2, user3 user4000 header. It ought to get parsed in the MailHost product and sent directly to the proper smtp-host ___ 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] Apache in front of ZServer
* "Phil Harris" [EMAIL PROTECTED] | Jorn, | | I'm no Apache GrandMaster but couldn't you use the [p] option of a | RewriteRule to make it proxy if the url matches a pattern: | | RewriteEngine on | RewriteRule !^(/static/.*) http://myserver.com:8080$1 [p,l] | | Or something along those lines. Looks promising. I will come back to the results later, when I have tested it. Thanks again. -- Jørn Helge B. Dahl http://falch.net ___ 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 many houres do I need to manage a Zope site?
At 10:42 AM +0200 10/25/2000, Diny van Gool wrote: 1. How many Zope releases per year can I expect and how much time do I need per release? One major, four or five minor and three or four hotfixes. Schedule a day for the major, half a day each for the rest. 2. How much time do I need for product releases and fixes? Each product will need to be tested and implemented so half a day for each major release. If you modify the products of course it will be longer. 3. How much time do I need for Zope database management? Besides a regular backup and packing the Data.fs are there other things necessary? Very little. Pack it when it gets too big (once a week) or set a cron to do it... oh sorry, NT... set a AT command to do it. Do I miss important tasks? Has anybody done this before? Yeah.. rebooting NT every 4 days. :) J ___ 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] Sendmail examples
Here's on I particularly like, sorry it doesn't have a sql query. It sends an attached image file, contents and all, not just an IMG SRC reference. And do youself a favour by adding a Mailhost object somewhere above where you want to use it. dtml-sendmail mailhost="MailHost" To: Feedback Recipient [EMAIL PROTECTED] From: Zope Feedback Form [EMAIL PROTECTED] Subject: Feedback from the web Feedback from : Matt Comments: dtml-var some_text dtml-mime type=image/jpeg encode=base64 name=paris.jpgdtml-var "paris.data" /dtml-mime /dtml-sendmail Matt steve smith wrote: Anyone have any good, real-world examples using DTML-Sendmail tags? Would especially appreciate examples integrating SQL queries. Ta! Steve ___ 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] problem(100) ZServer Computing local hostname on windows install
when I try to start zope on windows machine i get: problem(100) ZServer Computing local hostname this is 'normal' and not a problem (though I always wonder what it really means) snip The dos window seems to hang after this. nope, this is just the console window for the server. This is also normal. You only get output here if something strange happens (and in ftp sessions) when I start a browser and goto http://localhost:8099/manage I get an number, apparently an error: 972402587.52 back in the dos window, I see: ZServer uncaptured python exception, closing channel PCGIChannel at 1307340 exceptions.ValueError:invalid literal for atio: Get/ manag [c:\programfiles/home/zserver/medusa/asyncore.py|75] [c:\programfiles/home/zserver/medusa/asyncore.py|handle_read_event|327] [c:\programfiles/home/zserver/medusa/asynchat.py|handle_read|110] [c:\programfiles/home/zserver/pcgi.server.py|found_terminator|146] try accessing it via the http port. In your case http://localhost:8080 or http://localhost:8080/manage then it should work. 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] problem(100) ZServer Computing local hostname on windows install
On Tue, 24 Oct 2000 15:38:43 -0400, "Richard Lanham" [EMAIL PROTECTED] wrote: then it says: ZServer Medusa (V1.16.4.3) started at... timestamp... hostname: dsl1254-096...isp.net Port:8080 your http server is on 8080 Monitor Server starts on port 8099 and the monitor is on 8099 http://localhost:8099/manage So that url should http://localhost:8080/manage 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] Zope on Mac OS X
I'm trying to build Zope with the Apple developer tools but it didn't work. Python 2.0 seems easier to build and works well but Zope C source codes must be modified to get it build. The How-to note about Mac OS X server doesn't apply to the public beta. Does somebody have already tried to use Zope with Mac OS X public beta? ___ 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] which python gets used ... ?
Hi, just a quickie idiot question .. Does zope use any of the python on my RH6.2 box or does it use its own copy exclusively? I was trying to install the python xml libraries to try our the hyperdom product. I installed an rpm succesfully before remembering that zope has its own python. I struggled to install a tgz version though and it struck me that I was probably not being as efficient as I could be ... So the question is: can I run zope using the stock RH6.2 distributions' own copy of python? cheers Jonathan ___ 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] How should a collection be in a Python product if i want to traverse it with dtml-inrse it with dtml-in
This is a question I guess has something to do with popping an object onto the namespace, or about me not understanding how stuff works. When I make a list of objects: class simple: def __init__(self, value): self.value = value theList = [simple(1), simple(2), simple(3), simple(4)] I would expect to be able to traverse it like below (The objects namespace would be popped onto the namespace.): dtml-in theList dtml-var value /dtml-in But it isn't so. What do I need to do to make the objects namespace count in my traversal? (I'd like to keep the dtml as simple as possible.) -- If I make a list: theList = [1, 2, 3, 4] I can traverse it with: dtml-in theList dtml-var sequence-item /dtml in - and if it's a list if dicts: theList = [{'value':1},{'value':2},{'value':3},{'value':4}] I can traverse it like: dtml in theList dtml-let item=sequence-item dtml-var "item['value']" /dtml-let /dtml in ___ 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 should a collection be in a Python product if i wantto trave rse it with dtml-in rse it with dtml-in
On Wed, 25 Oct 2000, [iso-8859-1] Max Møller Rasmussen wrote: class simple: def __init__(self, value): self.value = value theList = [simple(1), simple(2), simple(3), simple(4)] I would expect to be able to traverse it like below (The objects namespace would be popped onto the namespace.): dtml-in theList dtml-var value /dtml-in Looks good... But it isn't so. Why? What was the error? 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] expr
I get an error when using following expr: dtml-in expr="address_select(ADDRESS.CENTRE_NO=CENTRENO)" This is due to the . in ADDRESS.CENTRE_NO how can I use ADDRESS.CENTRE_NO so that I don't get this error? Tom. ___ 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] limiting tree
"Bak @ kedai" wrote: hi all quickie: if dtml-in, i can use size to limit the results rendered, what do i use in dtml-tree? You don't, you run screaming for the hills ;-) I have a deep seated mistrust of the dtml-tree tag now after many bitter experiences. I'd recommend just writing an external methdo or python product that does exactly what you want... 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] use of objectValues() in DTML Methods vs. DTML Documents
Mike Bannister wrote: Just for the heck of it I dropped that same code into a DTML Document in the same Folder and it didn't list the Files as I had expected. I understand pretty much the differences of Methods and Documents and I'm assuming the reason for this is related to the way the Documents exists in it's own namespace and the Method doesn't... so my best guess for this behavior is that the 'scope' of objectValues() is limited to the current namespace. Am I even close? If not can someone explain this to me? This is quite a thorny FAQ. The root of it is the binding of methods to objects/namespaces in DTML, which has had lots of press on [EMAIL PROTECTED] recently. The short version is: -if that code is in a method, it is executed on the method's container (actualyl acquisition context, but don't worry abotu that too much ;-) -if the code was in a documents, it is executed on that document. Since documents can't really have things attached to them that would be returned by objectValues, you usually get an empty list back :-) HTH, 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] How should a collection be in a Python product if i wantto trave rse it with dtml-in rse it with dtml-in
Oleg Broytmann wrote: On Wed, 25 Oct 2000, [iso-8859-1] Max Møller Rasmussen wrote: class simple: def __init__(self, value): self.value = value theList = [simple(1), simple(2), simple(3), simple(4)] I would expect to be able to traverse it like below (The objects namespace would be popped onto the namespace.): dtml-in theList dtml-var value /dtml-in If you're getting security errors, try this new version (untested): class simple(Acquisition.Implicit) __ac__permissions__ = ( ('View', ('get_value','get_list'),('Manager','Anonymous')), ) def __init__(self,value): self.value=value def get_value(self): return value Globals.default__class_init__(simple) Now, hopefully, theList is being returned from within a class method, in which case: theList = [simple(1).__of__(self), simple(2)__of__(self), simple(3)__of__(self), simple(4)__of__(self)] return theList then: dtml-in get_theList dtml-var get_value /dtml-in should work... h, 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] OT:NT and rebooting (was:How many houres do I need tomanage a Zope) site?
sorry if this is offtopic, but i see reference of rebooting every so often with NT( and maybe W2K). is this real? or FUD? i use linux myself and would like to confirm this from all you guys' experience Do I miss important tasks? Has anybody done this before? Yeah.. rebooting NT every 4 days. :) J ___ 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] Re: [Zope-dev] Task, Job or Operation?
Unsafe has also been proposed. I do not like this either because it is not accurate. Simply because something dangerous, foolish or stupid can be done using this method type does not mean it will be. Are we to label all objects "unsafe" simply because of the capacity of harm? Safety is in the hands of the programer. I agree with this vehemently :) Would you want to use "unsafe C++" or "unsafe Java"? I think "restricted" and "unrestricted" are clear and concise. This is not about "safety" per se, but about capabilities. Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.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] use of objectValues() in DTML Methods vs. DTML Documents
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Mike Bannister Sent: Wednesday, October 25, 2000 5:44 AM To: [EMAIL PROTECTED] Subject: [Zope] use of objectValues() in DTML Methods vs. DTML Documents Just for the heck of it I dropped that same code into a DTML Document in the same Folder and it didn't list the Files as I had expected. I understand pretty much the differences of Methods and Documents and I'm assuming the reason for this is related to the way the Documents exists in it's own namespace and the Method doesn't... so my best guess for this behavior is that the 'scope' of objectValues() is limited to the current namespace. Am I even close? If not can someone explain this to me? That's basically it, yes. I think of a method as being a function that works on the object it is "in", and a document as being an object that gets worked on. So objectValues() in a method will return objects from its container, whereas objectValues() in a document will always return objects from within that document. Acquisition plays a role too, since a method can work in different contexts. For example (given myMethod and myDocument that both use objectValues()) TestFolder1.myMethod will return objects in TestFolder1 TestFolder2.myMethod will return objects in TestFolder2 TestFolder1.myDocument will return objects in myDocument TestFolder2.myDocument will return objects in myDocument I hope this makes sense. ___ 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 )
Re: [Zope] Re: [Zope-dev] Task, Job or Operation?
Ooops! Wrong list. Sorry. Will post to Zope-dev. Jimmie Houchin Jimmie Houchin wrote: [snip] ___ 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] How small a box can zope run on?
Hi, Just a quick question: We are building some device controller software and to control those we have a normal 486 with 24MB RAM running linux. Has anybody tried running zope on such a modest setup? There is only going to be one or two users connected to Zope at once, so we don't need much performance in terms of page views per second :) Cheers, Alexander. ___ 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] AW: [Zope] dtml-var owner? author? editor?
I want to include the owner (from acl_users) of a page in my HTML-output. dtml-var "AUTHENTICATED_USER.getUserName()" is what you want Not exactly. This only returns the AUTHENTICATED_USER, or am I wrong? What I want is: 'Anonymous User' surfs to my site. She surfs trough the HTML output generated by zope, while zope not only tells her the content provided, but also the Name of the Zope-owner of the document (e.g patrick is owner of index_html -- that info is also displayed to the anonymous user) Thanks for more help, p@ ___ 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] which python gets used ... ?
Chris Withers wrote: Jonathan Cheyne wrote: So the question is: can I run zope using the stock RH6.2 distributions' own copy of python? If it's Python 1.5.2, then yes... there's probably instructiosn for this on Zope.org near the bits about insatlling Zope from source on Linux. IIRC there used to be subtle bugs, like batch processing in DTML giving wrong page numbers --- Hannu ___ 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] OT:NT and rebooting (was:How many houres do I need to manage a Zope) site?
My 2 ZoNT (Zope on NT workstation) boxen haven't needed rebooting yet. They sit mostly idle with occasional light loads. They are P100/32MB/1.2GB old(er than dirt) Industrial Computer Supply boxes. You know, 19" rack mount 4U units. Good, solid, slow hardware. They survive NT rather well. One is running 2 instances of Zope (one for dev) and has been for 15 days since last reboot. I will be looking for at least a 6 month uptime. They serve a departmental intranet application that I am writing. It's on NT because I need to use ODBC to get to a local MS Access Database. Bummer. Troy -Original Message- From: Bak @ kedai [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 25, 2000 10:49 AM To: Diny van Gool; [EMAIL PROTECTED]; J. Atwood Subject: Re: [Zope] OT:NT and rebooting (was:How many houres do I need to manage a Zope) site? sorry if this is offtopic, but i see reference of rebooting every so often with NT( and maybe W2K). is this real? or FUD? i use linux myself and would like to confirm this from all you guys' experience Do I miss important tasks? Has anybody done this before? Yeah.. rebooting NT every 4 days. :) J ___ 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 )
Re: [Zope] How small a box can zope run on?
I have had it running on a Pentium 133 w/ 16 MB of RAM and it was actually doing ok. Not quick, per se, but ok. J From: "Alexander Limi" [EMAIL PROTECTED] Date: Wed, 25 Oct 2000 18:43:57 +0200 To: [EMAIL PROTECTED] Subject: [Zope] How small a box can zope run on? Hi, Just a quick question: We are building some device controller software and to control those we have a normal 486 with 24MB RAM running linux. Has anybody tried running zope on such a modest setup? There is only going to be one or two users connected to Zope at once, so we don't need much performance in terms of page views per second :) Cheers, Alexander. ___ 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] newbie: comparing dates?
Hi all, another newbie-question: - I created a zclass with three date properties. - Now I´d like to display the most recent of these dates in directory-listings etc. QUESTION 1: How do I compare dates in dtml code? QUESTION 2: How do I exclude empty values from processing? (I installed rapto´s null date-patch, seemed to work fine; for that patch see: http://www.zope.org/Members/rapto/nullDate?pp=1) regards, -georg.rellensmann- ___ 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] deleting through iteration
This seems as if it would work to delete all objects of a certain meta-type but it gives me an error. dtml-in "Catalog(meta_type='class_name')" dtml-call "manage_delObjects(id,[REQUEST])" /dtml-in The error is: Error Type: BadRequest Error Value: 971722944 does not exist Although, I know it does, I can see it in the ODB. TIA, Scott ___ 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] TinyTablePlus: Problems with quotation marks
You have to identify the column as a "key" column for the setRow method to recognize an already existing one and modify it in place. You do this by adding a "*" at the end of the column name. In your case, Position* On Wed, Oct 25, 2000 at 05:33:23PM +0200, Danny William Adair wrote: I have problems using Shane Hathaway's TinyTablePlus product. Maybe you can help me. ** My TinyTablePlus instance: ** ID: Items Title: Items on Navigation Bar Columns: Position ShowItem Caption UseImage Image Service URL Data: "1", "yes", "HOME", "yes", "Home", "Home", "/Main" "2", "yes", "News", "yes", "News", "News", "/News" "3", "yes", "Discussion", "no", "", "Discussion", "/Discussion" -- ** My code: (I want to create a configuration page for a navigation bar, which will have to change a table's rows depending on the contents of some form elements) ** dtml-let Position='1' Caption='test' dtml-in Items sort=Position dtml-call "Items.setRow(Position=Position,Caption=newCaption)" /dtml-in -- ** My problem: ** Data afterwards: "1", NULL, "test", NULL, NULL, NULL, NULL "1", "yes", "HOME", "yes", "Home", "Home", "/Main" "2", "yes", "News", "yes", "News", "News", "/News" "3", "yes", "Discussion", "no", "", "Discussion", "/Discussion" -- Shouldn't setRow recognize the existing row and change that one? I can't see what I am doing wrong here. Does it have anything to do with the double quotation marks in the data? tia, Danny ___ 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 ) -- -- Andres Corrada-Emmanuel 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] TinyTablePlus: Problems with quotation marks
worked like a charm, thank you very much! Danny -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 25. Oktober 2000 20:24 An: Danny William Adair; [EMAIL PROTECTED] Betreff: Re: [Zope] TinyTablePlus: Problems with quotation marks You have to identify the column as a "key" column for the setRow method to recognize an already existing one and modify it in place. You do this by adding a "*" at the end of the column name. In your case, Position* On Wed, Oct 25, 2000 at 05:33:23PM +0200, Danny William Adair wrote: I have problems using Shane Hathaway's TinyTablePlus product. Maybe you can help me. ** My TinyTablePlus instance: ** ID: Items Title: Items on Navigation Bar Columns: Position ShowItem Caption UseImage Image Service URL Data: "1", "yes", "HOME", "yes", "Home", "Home", "/Main" "2", "yes", "News", "yes", "News", "News", "/News" "3", "yes", "Discussion", "no", "", "Discussion", "/Discussion" -- ** My code: (I want to create a configuration page for a navigation bar, which will have to change a table's rows depending on the contents of some form elements) ** dtml-let Position='1' Caption='test' dtml-in Items sort=Position dtml-call "Items.setRow(Position=Position,Caption=newCaption)" /dtml-in -- ** My problem: ** Data afterwards: "1", NULL, "test", NULL, NULL, NULL, NULL "1", "yes", "HOME", "yes", "Home", "Home", "/Main" "2", "yes", "News", "yes", "News", "News", "/News" "3", "yes", "Discussion", "no", "", "Discussion", "/Discussion" -- Shouldn't setRow recognize the existing row and change that one? I can't see what I am doing wrong here. Does it have anything to do with the double quotation marks in the data? tia, Danny ___ 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 ) -- -- Andres Corrada-Emmanuel 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] OT:NT and rebooting
[...] To: trimmed to zope.org On 25 Oct 2000, 23:49 Bak @ kedai wrote: sorry if this is offtopic, but i see reference of rebooting every so often with NT( and maybe W2K). is this real? or FUD? i use linux myself and would like to confirm this from all you guys' experience It's FUD. I'M running Zope on two NT servers here, which run many months between reboots. I just checked - the Zope on the intranet server has an uptime of 34 days 8 hours 32 min 3 sec now. This tells us that I installed Zope 2.2.2 three days after it was released on www.zope.org. :-) Do I miss important tasks? Has anybody done this before? Yeah.. rebooting NT every 4 days. :) -- o ( [EMAIL PROTECTED] (+49 2241) 14-2394 /\* GMD mbH #include _`\ `_=== Schloss Birlinghoven, std.disclaimer __(_)/_(_)___.-._ 53754 Sankt Augustin, Germany ___ 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] OT:NT and rebooting (was:How many houres do I need to manage a Zope) site?
My 2 ZoNT (Zope on NT workstation) boxen haven't needed rebooting yet. They sit mostly idle with occasional light loads. They are P100/32MB/1.2GB old(er than dirt) Industrial Computer Supply boxes. You know, 19" rack mount 4U units. Good, solid, slow hardware. They survive NT rather well. One is running 2 instances of Zope (one for dev) and has been for 15 days since last reboot. I will be looking for at least a 6 month uptime. They serve a departmental intranet application that I am writing. It's on NT because I need to use ODBC to get to a local MS Access Database. Bummer. Troy -Original Message- From: Bak @ kedai [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 25, 2000 10:49 AM To: Diny van Gool; [EMAIL PROTECTED]; J. Atwood Subject: Re: [Zope] OT:NT and rebooting (was:How many houres do I need to manage a Zope) site? sorry if this is offtopic, but i see reference of rebooting every so often with NT( and maybe W2K). is this real? or FUD? i use linux myself and would like to confirm this from all you guys' experience I have had a number of Zope sites running on NT with rather modest hardware. It performed reasonably to good and without troubles for months on an end, even with several people developing on it and a number of students accessing it. Mostly ODBC (SQL Server and even Access) will also work without trouble. It will also behind IIS. If something goes wrong it is usually an ODBC problem no Zope internal problem. The only real major problem is when SQL This is no pro NT argument, but just a reassurance that there is no reason not to use Zope on NT, though I would switch to Linux if I could... 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 )
[Zope] Not grocking RESQUEST.set syntax
I'm still not grocking the syntax for setting REQUEST fields. I want to set a REQUEST field "filename" to be the value returned by a ZSQL call. I want something like this (pseudo-code of what I want): dtml-let FOO=MyFavoiteZSQLMethod dtml-call "REQUEST.set('filename', FOO)" dtml-call some_other_thing_that_uses_filename /dtml-let That does not work because FOO gets set to something like: Shared.DC.ZRDB.Results.Results instance at 7760b0 I tried sticking this inside dtml-indtml-in to get at the sequence-item, but I just ended up getting confused. Yours, Noah ___ 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] Is there a tool for pretty-formatting/indenting DTML code?
I've been working with Zope for a bit now and I love it. However, a few of the tools I'm used to having with other scripting tools are missing in the Zope realm.. One thing I would very much like to have is a script that could go through a long DTML document and pretty-format the code, not unlike the way I use BBEdit's formatting command on my Mac for HTML. Does such an animal exist, on any platform, or should I just try to adapt something I already have? I don't want to have to reinvent the wheel so to speak.. The big reason I need this is for indenting.. It makes the code much more readable and I have found myself spending a lot of time doing this by hand.. it just gets tedious.. Thank you.. Chris [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] OT:NT and rebooting
"Months without rebooting"? That is certainly not something to brag about. With three of my installations of Zope on Linux I have the machines at 194, 204 and 55 days of uptime (and the 55 was because of a bad powerstrip, the other others have been up since I brought them up). While NT can and does stay up for long periods of time, it still is a very poor server choice as anything you install leads to a reboot. I have installed countless things on the Linux boxes and never brought it down. That is the difference and makes all the difference when it comes to a website. J From: "Wolfgang Strobl" [EMAIL PROTECTED] Organization: GMD Date: Wed, 25 Oct 2000 21:13:32 +0200 To: [EMAIL PROTECTED] Subject: Re: [Zope] OT:NT and rebooting [...] To: trimmed to zope.org On 25 Oct 2000, 23:49 Bak @ kedai wrote: sorry if this is offtopic, but i see reference of rebooting every so often with NT( and maybe W2K). is this real? or FUD? i use linux myself and would like to confirm this from all you guys' experience It's FUD. I'M running Zope on two NT servers here, which run many months between reboots. I just checked - the Zope on the intranet server has an uptime of 34 days 8 hours 32 min 3 sec now. This tells us that I installed Zope 2.2.2 three days after it was released on www.zope.org. :-) Do I miss important tasks? Has anybody done this before? Yeah.. rebooting NT every 4 days. :) -- o ( [EMAIL PROTECTED] (+49 2241) 14-2394 /\* GMD mbH #include _`\ `_=== Schloss Birlinghoven, std.disclaimer __(_)/_(_)___.-._ 53754 Sankt Augustin, Germany ___ 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] Calling form elements by name
Ok, dtml-let nameAsAString="'index_html'" dtml-var "_[nameAsAString]" /dtml-let works alright, even my longer (using a TinyTablePlus) dtml-in Items sort=Position dtml-let Prefix="'FormElement_'" thePos=Position nameAsAString="Prefix+thePos" dtml-var nameAsAStringbr dtml-var "_['FormElement_1']"br /dtml-let /dtml-in will work(as expected), BUT: dtml-in Items sort=Position dtml-let Prefix="'FormElement_'" thePos=Position nameAsAString="Prefix+thePos" dtml-var nameAsAStringbr dtml-var "_['FormElement_1']"br dtml-var "_[nameAsAString]"br /dtml-let /dtml-in definitely won't, Key Error: File /.../lib/python/DocumentTemplate/DT_In.py, line 691, in renderwob (Object: Items) File /.../lib/python/DocumentTemplate/DT_Let.py, line 147, in render (Object: Prefix=quot;'Service_'quot; thePos=Position nameAsAString=quot;Prefix+thePosquot;) File /.../lib/python/DocumentTemplate/DT_Util.py, line 337, in eval (Object: _[nameAsAString]) (Info: nameAsAString) File lt;stringgt;, line 0, in ? File /.../lib/python/DocumentTemplate/DT_Util.py, line 163, in careful_getitem KeyError: (see above) The string's content seems okay to me, so why can't I look up the object? The namespace should be okay since I can call the request variables _directly_. What's wrong? tia, Danny -Ursprüngliche Nachricht- Von: Steve Drees [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 25. Oktober 2000 21:08 An: [EMAIL PROTECTED] Betreff: RE: [Zope] Calling form elements by name dtml-let "nameAsAString = 'index_html'" dtml-var "_[nameAsAString]" /dtml-let -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Danny William Adair Sent: Wednesday, October 25, 2000 1:27 PM To: [EMAIL PROTECTED] Subject: [Zope] Calling form elements by name How can I render a REQUEST variable in DTML if I have its id as a string? I would like to construct its name as a string and then call the REQUEST variable by its name. (Meaning I will have to make sure such an object exists) tia, CU+Prost, Danny ___ 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] Python product - inherittance
Hi Zopists, I have a problem with inherittance of my publishable python classes. I created in python classA and classB(classA) classA has functionA and classB has functionB. In __init__.py of my product I register only classB. My problem is that it is not possible to call functionA of an instance of classB. There is 'Error Type: AttributeError'. Does anybody know where the problem is? I use Zope 2.1.6 Thanks, Petr -- Petr Knpek NEXTRA Czech Republic, s.r.o., Hlinky 114, 603 00 Brno, Czech Republic e-mail: [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] OT:NT and rebooting
"Months without rebooting"? That is certainly not something to brag about. With three of my installations of Zope on Linux I have the machines at 194, 204 and 55 days of uptime (and the 55 was because of a bad powerstrip, the other others have been up since I brought them up). While NT can and does stay up for long periods of time, it still is a very poor server choice as anything you install leads to a reboot. I have installed countless things on the Linux boxes and never brought it down. That is the difference and makes all the difference when it comes to a website. Agreed, but that wasn't the point 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] OT:NT and rebooting
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of It's FUD. I'M running Zope on two NT servers here, which run many months between reboots. I just checked - the Zope on the intranet server has an uptime of 34 days 8 hours 32 min 3 sec now. I must say that I agree. All in all for my current needs, NT is a better choice than Linux. Better user interface and reasonable software uptime. I am slowly migrating to Linux though. As I really do believe the open source philosophy is better. But like Zope it is a b of a learning curve. Something like Zope shows it in a smaller scale. I would be willing to start a business on Zope technology because coorporation on the toolset is the smartest thing for service companies to do, and this is not a closed source option. I have tried some of the closed source application servers and they are so poor. Funnily enough I see companies reinventing the weel with these application servers, doing a lousy job every time. Zope is still not great, but lightyears ahead of anything else I have experienced. Being a web house and not doing an open source app server is so futile. Furthermore the new KDE2.0 looks really sexy. Just gotta finish one more project then I will upgrade from my old KDE1.0. Max M ___ 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] Not grocking RESQUEST.set syntax
try dtml-call "REQUEST.set('filename', FOO())" -Original Message- From: Noah [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Thursday, 26 October 2000 09:01 Subject: [Zope] Not grocking RESQUEST.set syntax I'm still not grocking the syntax for setting REQUEST fields. I want to set a REQUEST field "filename" to be the value returned by a ZSQL call. I want something like this (pseudo-code of what I want): dtml-let FOO=MyFavoiteZSQLMethod dtml-call "REQUEST.set('filename', FOO)" dtml-call some_other_thing_that_uses_filename /dtml-let That does not work because FOO gets set to something like: Shared.DC.ZRDB.Results.Results instance at 7760b0 I tried sticking this inside dtml-indtml-in to get at the sequence-item, but I just ended up getting confused. Yours, Noah ___ 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] deleting through iteration
In a catalog, id is not the id of an object, data_record_id_ is. - Original Message - From: "Scott Burton" [EMAIL PROTECTED] To: "Zope List" [EMAIL PROTECTED] Sent: Wednesday, October 25, 2000 11:19 AM Subject: [Zope] deleting through iteration This seems as if it would work to delete all objects of a certain meta-type but it gives me an error. dtml-in "Catalog(meta_type='class_name')" dtml-call "manage_delObjects(id,[REQUEST])" /dtml-in The error is: Error Type: BadRequest Error Value: 971722944 does not exist Although, I know it does, I can see it in the ODB. TIA, Scott ___ 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] Python product - inherittance
Attribute error means it can find some value. Without some more information it is impossible to say. - Original Message - From: "Petr Knapek" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 25, 2000 1:02 PM Subject: [Zope] Python product - inherittance Hi Zopists, I have a problem with inherittance of my publishable python classes. I created in python classA and classB(classA) classA has functionA and classB has functionB. In __init__.py of my product I register only classB. My problem is that it is not possible to call functionA of an instance of classB. There is 'Error Type: AttributeError'. Does anybody know where the problem is? I use Zope 2.1.6 Thanks, Petr -- Petr Knpek NEXTRA Czech Republic, s.r.o., Hlinky 114, 603 00 Brno, Czech Republic e-mail: [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 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: [Zope] Not grocking RESQUEST.set syntax]
Try: dtml-in MyFavoiteZSQLMethod dtml-call "REQUEST.set('filename', filename)" dtml-call some_other_thing_that_uses_filename /dtml-in This assumes that MyFavoiteZSQLMethod returns the variable filename Dan Noah wrote: I'm still not grocking the syntax for setting REQUEST fields. I want to set a REQUEST field "filename" to be the value returned by a ZSQL call. I want something like this (pseudo-code of what I want): dtml-let FOO=MyFavoiteZSQLMethod dtml-call "REQUEST.set('filename', FOO)" dtml-call some_other_thing_that_uses_filename /dtml-let That does not work because FOO gets set to something like: Shared.DC.ZRDB.Results.Results instance at 7760b0 I tried sticking this inside dtml-indtml-in to get at the sequence-item, but I just ended up getting confused. Yours, Noah ___ 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] ZFormulator
Hi Martijn, and Zope Fans, I'm using ZFormulator and having problems with permissions on Zope v.2. The sign-on dialog pops-up when a user attempts to edit a form, but the correct name and password are rejected. Has anyone found a little detail that needs tweking to get past this one? Thanks, Jerry S. ___ 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] Python product - inherittance
Petr Knapek wrote: Hi Zopists, I have a problem with inherittance of my publishable python classes. I created in python classA and classB(classA) classA has functionA and classB has functionB. In __init__.py of my product I register only classB. My problem is that it is not possible to call functionA of an instance of classB. There is 'Error Type: AttributeError'. Does anybody know where the problem is? I use Zope 2.1.6 its probably a security error. you need to either enable subobject access or explicitly register the method as part of the products permissions. something like this allow_access_to_unprotected_subobjects=1 this is not the recommended way to it as you'll open up the entire product to access. buts it useful to identify if its a security issue. kapil Thanks, Petr -- Petr Knápek NEXTRA Czech Republic, s.r.o., Hlinky 114, 603 00 Brno, Czech Republic e-mail: [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 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] Not grocking RESQUEST.set syntax
Noah wrote: I'm still not grocking the syntax for setting REQUEST fields. I want to set a REQUEST field "filename" to be the value returned by a ZSQL call. I want something like this (pseudo-code of what I want): dtml-let FOO=MyFavoiteZSQLMethod dtml-call "REQUEST.set('filename', FOO)" dtml-call some_other_thing_that_uses_filename /dtml-let That does not work because FOO gets set to something like: Shared.DC.ZRDB.Results.Results instance at 7760b0 I tried sticking this inside dtml-indtml-in to get at the sequence-item, but I just ended up getting confused. thats because you're working on the results returned by a zsql method which is a result object, you want access to values within it. try dtml-call "REQUEST.set('filenames', MyFavoriteZSQLMethod(REQUEST).dictionaries())" this returns the list of dictionaries that represent rows in the table, with column names as keys and column values as values. you can reference lib/python/Shared/DC/ZRDB/Results.py for more info on the results object kapil ___ 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] OT:NT and rebooting
On 25 Oct 2000, at 16:00, J. Atwood wrote: "Months without rebooting"? That is certainly not something to brag about. Huh? Did anybody? Certainly not me. :-{ In case I didn't make myself clear: for running Zope; I don't care much whether the OS needs a reboot every month, every year, or every decade, when I have to upgrade and/or restart Zope for installing Hotfixes and/or new products, every other month, anyway. With three of my installations of Zope on Linux I have the machines at 194, 204 and 55 days of uptime (and the 55 was because of a bad powerstrip, the other others have been up since I brought them up). So what. I'm using an old 3.51 server on one of my companies intranets here, serving as a backup domain controller plus a few other, less important services, which is running for about half a year now (power failure in the machine room, too). That machine has begun life as a OS/2 Lanmanager server (ca '90), and has been upgraded almost seamlessly again and again, both in hardware and in software, since. While NT can and does stay up for long periods of time, it still is a very poor server choice as anything you install leads to a reboot. Well, W2K certainly has more capabilities here, and Linux, for example, is somewhat better in some (!) areas, but "anything" is a gross exaggeration. I have installed countless things on the Linux boxes and never brought it down. That is the difference and makes all the difference when it comes to a website. The vagueness of the first statement doesn't justify your conclusing, IMHO. But to each his own. ___ 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] Filling Multiple Select Problem
Hi! I'm using the example at the "Filling MULTIPLE SELECT OPTION's with database lists", and a little step doesn't works. I heve the following in the DTML Method that fills two SELECT in a Web Form: (...) dtml-call "REQUEST.set('cadExportacao', [])" dtml-call "REQUEST.set('cadImportacao', [])" dtml-in sqlVinculacao dtml-if "tipo=='E'" dtml-call "cadExportacao.append(codigo)" dtml-elif "tipo=='I'" dtml-call "cadImportacao.append(codigo)" /dtml-if /dtml-in sqlVinculacao (...) The code above runs. To verify that, I put a dtml-var cadExportacao and a dtml-var cadImportacao, that prints the contents of the lists above. The code that is not running is the one bellow: SELECT NAME="exportadores" MULTIPLE SIZE="10" WIDTH="300" dtml-in sqlCadastroExportacao OPTION VALUE="dtml-var codigo" dtml-if "codigo in cadExportacao"SELECTED /dtml-if dtml-var nome /OPTION /dtml-in sqlCadastroExportacao /SELECT (...) The code above creates a SELECT list like the one bellow: SELECT ... OPTION VALUE="1"NOME 1/OPTION OPTION VALUE="2"NOME 2/OPTION OPTION VALUE="3"NOME 3/OPTION (...) /SELECT but the dtml-if "codigo in cadExportacao" part doesn't function. I have some of the values of "codigo" in the cadExportacao list, but the "SELECTED" corresponding code doesn't appears. Can someone tells me what is wrong? Sorry the bad english... []s -- +-+-+ | César A. K. Grossmann | Capacitação Solidária | | [EMAIL PROTECTED]| http://www.uol.com.br/umminuto/ | | http://members.xoom.com/ckant/ | Clique e doe - é de graça | +-+-+ http://www.halcyon.com/sciclub/cgi-pvt/instr/instr.html Any member introducing a dog into the Society's premises shall be liable to a fine of one pound. Any animal leading a blind person shall be deemed to be a cat. -- Rule 46, Oxford Union Society, London ___ 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] OT:NT and rebooting
Wolfgang Strobl wrote: On 25 Oct 2000, at 16:00, J. Atwood wrote: "Months without rebooting"? That is certainly not something to brag about. Huh? Did anybody? Certainly not me. :-{ In case I didn't make myself clear: for running Zope; I don't care much whether the OS needs a reboot every month, every year, or every decade, when I have to upgrade and/or restart Zope for installing Hotfixes and/or new products, every other month, anyway. OK, tim e fo rme to weigh in on this. Reboot frequency is a matter of experience and perspective. If you are used to uptimes measured in years, or 'always on' environments, then NT's uptime rates are abject failures. That's not a slight, it is a statement of fact that even Mr. Gates himself agrees with and understands. If, on the other hand, you don't come from that background or need, and are not used to that type of environment, a few months to six months to nearly a year can mean something to you. So, this is *one* of the reasons we see these arguments about uptime from both sides of the windows vs everything else uptime wars. Some measure days, some months, and otehrs measure in terms of years. With three of my installations of Zope on Linux I have the machines at 194, 204 and 55 days of uptime (and the 55 was because of a bad powerstrip, the other others have been up since I brought them up). So what. I'm using an old 3.51 server on one of my companies intranets here, serving as a backup domain controller plus a few other, less important services, which is running for about half a year now (power failure in the machine room, too). That machine has begun life as a OS/2 Lanmanager server (ca '90), and has been upgraded almost seamlessly again and again, both in hardware and in software, since. And has been rebooted to perfrom those upgrades (software, the hardware is obvious), has it not? While NT can and does stay up for long periods of time, it still is a very poor server choice as anything you install leads to a reboot. Well, W2K certainly has more capabilities here, and Linux, for example, is somewhat better in some (!) areas, but "anything" is a gross exaggeration. While I agree that 'anything' is a poor choice of words, unless you are changing kernels and/or glibc, Linux does not require a reboot for install of any software (that I am aware of, and that is a high amount of software mind you). There is work in progress to alleviate that as well. Not quickly, as it is a rather complex undertaking, but it is ongoing. IIRC, kernel 2.4 will/does have support for hot swappable PCI devices on hardware that has it (yes, you can get Intel-compat hardware with that). Last I checked, if you try to hot-swap a keyboard or mouse, all versions minus 2k (haven't tried it there), will die. As far as 'lack of need to reboot' goes when concerning upgrades, Linux wins hands down.. So, the question regarding uptime is more a question of needs. Some of us need 24x7 availablility, and 5 nines. Some do not. For those of us needing 5 nines, we can use Unix/Linux to provide that. If you don't need it (and not everyone does), use other criteria more appropriate to your needs. -- E PLURIBUS LINUX ___ 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] Not grocking RESQUEST.set syntax
On Thu, 26 Oct 2000, Noah wrote: I'm still not grocking the syntax for setting REQUEST fields. I want to set a REQUEST field "filename" to be the value returned by a ZSQL call. I want something like this (pseudo-code of what I want): dtml-let FOO=MyFavoiteZSQLMethod dtml-call "REQUEST.set('filename', FOO)" dtml-call some_other_thing_that_uses_filename /dtml-let That does not work because FOO gets set to something like: Shared.DC.ZRDB.Results.Results instance at 7760b0 I think your simplest option is to use: dtml-call "REQUEST.set('filenale', MyFavouriteZSQLMethod(_.None, _) )" All that _.Non, _ stuff is the namespace etc that Zope normally passes to your methods. (I don't fully understand it, I just know it works :) I tried sticking this inside dtml-indtml-in to get at the sequence-item, but I just ended up getting confused. Yours, Noah Have a better one, Curtis. ___ 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] Folder-specific metatypes?
I'm working on a product in Python which implements a folder, but restricts the metatypes of the objects which can be added. How, exactly, do I go about doing this? I've tried overriding the filtered_meta_types method, but I'm returning a list, and it seems that I should return a list of dictionaries instead, but I'm not entirely sure how the metatype is converted into a dictionary. I also noticed the _product_meta_types variable, but rgreps of the zope code didn't reveal anything about this variable. Am I on the right track with these? Thanks. ___ 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] Zope python 2
Hi all Is anyone using or know the current state of Zope with python 2.0 ? Thanks Joe ___ 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] Zope python 2
On Thu, 26 Oct 2000, Mark Twiddy wrote: Hi all Is anyone using or know the current state of Zope with python 2.0 ? I've been somewhat curious about this myself. Will there need to be large changes now that strings are proper objects? (the string functions are now methods of strings). If so, will this mean the phasing out of _.string ? Will the new Unicode support, does this mean Zope is now a big step closer to i18n? And from the looks of things there are a large number of small changes that could be made to improve performance (such as the new 'augmented assignment' operators [ += *= /= and so on] ) Thanks Joe watching closely, Curtis ___ 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 )