[Zope] CoreSessionTracking timeout
Hi, I am playing around with this great product and (nearly) all works as expected. This is exactly what I need for my application and you guys are saving a lot of time for me! Thank you. The only thing I don't understand is the timeout of session_data_manager. If I test the example given in the help I expect 'Before change:' to be empty if called the first time (works) and filled for each subsequent call (works also). If timeout expires I expect 'Before change:' to be empty again, thus generating a new token. But it isn't. It still uses the old token. What's going on? I tested with cookies and form vars namespace, but it has always the same behaviour. What's the quirk? Oliver ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] LoginManager dlpierson example
Thanks Fred, On passing 'request' (why the extra argument anyway?) I got Error Type: TypeErrorError Value: not enough arguments; expected 3, got 2 so I'm wondering have you got LoginManager to work on the Zope 2.3.0 release? >>On Wed, Jan 31, 2001 at 09:25:08AM +1300, W. Robert Kellock wrote:>> Are PythonScript arguments typeless? I keep getting an>> error>> >> Error Type: AttributeError>> Error Value: 'string' object has no attribute 'password'>> >> from the authenticate method which I'm passing self,password.>I think you should pass (self, password, request).>-- >Fred Yankowski [EMAIL PROTECTED] tel: +1.630.879.1312>Principal Consultant www.OntoSys.com fax: +1.630.879.1370>OntoSys, Inc 38W242 Deerpath Rd, Batavia, IL 60510, USA -W.Robert Kellock Ph: +64 3 326 6115Sales Manager Fax: +64 3 326 6115Credit Systems Control Ltd Web: www.creditscore.co.nz "making decisions easy"-
[Zope] Recall: default page is zope_quick_start! - Zope 2.3 release for windows
Ian Thomas would like to recall the message, "default page is zope_quick_start! - Zope 2.3 release for windows". ___ 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] default page is zope_quick_start! - Zope 2.3 release for windows
A little problem I'm having with the new Zope 2.3 - Windows version. I edited index_html and it works fine if I enter http://host.com/index_html but if I enter http://host.com it gives me the quick start page zope_quick_start! Does anybody know off hand where this page is stored so I can edit it directly? A workaround until 2.3.1 is released. or better where to fix this in the code! Ian Thomas ___ 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 memory usage / cache
On Tuesday 30 January 2001 10:09, Ron Bickers wrote: > I have a site that has dozens of 300k+ Photo objects > (http://www.zope.org/Members/Drew/Photo). When I start Zope, it uses about > 10MB. It will run at around 10-12MB for days as long as I don't access any > of the photos. Once I access several of the photos, it jumps up to around > 50MB. The debug info says there are over 200 Photo object references. > > If I then do a Cache minimize, there are no longer any Photo object > references, but the memory usage remains 50MB. It will stay that high > indefinitely (at least as long as I have tested -- a few days), even if the > site isn't accessed. If I restart, it goes back down to 10MB, and it will > stay there as long as my photos aren't accessed. > > Is this normal behavior? It seems crazy to have Zope sucking up that much > memory when those photos are hardly ever accessed. this sounds like normal operating system behavior. memory isn't being free'd just dealloc and returned to the program heap and marked as available. 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] DTML difficulties
same thing for taskforces your error from what you tried was because you were trying to treat the taskforce and job folder objects as lists which they aren't. what you had would work, if you changed your to reference the respective folders objectValues method which will return a list of objects which will iterate over. kapil On Tuesday 30 January 2001 15:12, Nolan Darilek wrote: > I'm working on my first zope product and, while everything has gone > relatively smoothly so far, I'm having some issues. > > The product is a folderish object which contains 3 subfolders, each of > which contains a specific type of object. The structure looks > something like this: > work/: Main folder, UI, etc >jobs/: List of all jobs >projects/: >taskforces/: > > Each folder contains a job, project or taskforce object, as well as > the UI to manage them. > Now, the difficulty. I'm working on the UI for the job add form, which > is in work/jobs. The form needs to iterate over the contents of > projects/ and taskforces/, and I can't figure out how. Here's what > I've tried: ___ 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] noundo dbs
On Wednesday 31 January 2001 12:09, Chris McDonough wrote: > And a third message... > thanks for the prompt replies. to recap, i have -Berkeley DB -External Mount -something that i'm not too sure of :) as i see it, i can use External mount to mount berkeley Db. that will then give me a nonundo, nonversioning db.. right? if i use FileStorage with ExternalMount, it'll be just another ZODB. i hope i'm right. if i want to use it across ZEO Clients, i *must* use ZEO.ClientStorage. correct me if i'm wrong, please. to test a simple setup, i tried FileStorage with External Mount. and i encountered a little problem. here's what i have -ExternalMount -External Method[1] when i tried adding an ExternalMount, i got this[2] traceback. help? p/s - what about storing CoreSessionTracking data in RDB? -- [1] ---ExtDB.py import ZODB from ZODB.FileStorage import FileStorage def createDB(): return ZODB.DB(FileStorage('/home/kdie/Zope/var/ext.fs')) [2] NameError Sorry, a Zope error occurred.
Re: [Zope] noundo dbs
And a third message... The SessionStorage.py file that ships with CoreSessionTracking is a storage of its own that's RAM based. It's based on an (as yet unreleased) "packless" Berkeley storage implementation that Jim Fulton created. I'd really like to get the Berkeley version of this architecture released, because it's also nonundoing and doesn't require any packing unless your database has circular references. We've been in a sort of limbo in releasing it because I think we wanted to release a "full" implementation (one which supported undo and versioning), but I'm going to see if I can get the packless piece onto Zope.org without waiting for the rest of it. - Original Message - From: "Chris McDonough" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, January 30, 2001 10:58 PM Subject: Re: [Zope] CoreSessionTracking and noundo db > Oops, I forgot to mention ExternalMount: > > http://www.zope.org/Members/hathawsh/ExternalMount > > - Original Message - > From: "Bak@kedai" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, January 30, 2001 9:28 PM > Subject: [Zope] CoreSessionTracking and noundo db > > > > hi > > in trying out the excellent CoreSessionTracking product, i encountered a > > little problem. the doc reference a no-undo external db to house the > data. > > i remember one such beast which were alpha (berkerly dbm(?)), but can't > > locate it at zope.org. > > > > also, will there ever be a no undo db for use with zope? since such > product > > is a must to run zope in real world. > > hints, urls welcome > > > > thanks > > > > -- > > > > http://www.kedai.com.my/kk > > http://www.kedai.com.my/eZine > > > > Strange how laughter looks like crying with no sound, and raindrops taste > > like tears .. without the pain > > > > > > ___ > > 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] CoreSessionTracking and noundo db
I think this howto is still applicable: http://www.zope.org/Members/andyd/zopeberkeleydb - Original Message - From: "Bak@kedai" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 30, 2001 9:28 PM Subject: [Zope] CoreSessionTracking and noundo db > hi > in trying out the excellent CoreSessionTracking product, i encountered a > little problem. the doc reference a no-undo external db to house the data. > i remember one such beast which were alpha (berkerly dbm(?)), but can't > locate it at zope.org. > > also, will there ever be a no undo db for use with zope? since such product > is a must to run zope in real world. > hints, urls welcome > > thanks > > -- > > http://www.kedai.com.my/kk > http://www.kedai.com.my/eZine > > Strange how laughter looks like crying with no sound, and raindrops taste > like tears .. without the pain > > > ___ > 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] CoreSessionTracking and noundo db
Oops, I forgot to mention ExternalMount: http://www.zope.org/Members/hathawsh/ExternalMount - Original Message - From: "Bak@kedai" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 30, 2001 9:28 PM Subject: [Zope] CoreSessionTracking and noundo db > hi > in trying out the excellent CoreSessionTracking product, i encountered a > little problem. the doc reference a no-undo external db to house the data. > i remember one such beast which were alpha (berkerly dbm(?)), but can't > locate it at zope.org. > > also, will there ever be a no undo db for use with zope? since such product > is a must to run zope in real world. > hints, urls welcome > > thanks > > -- > > http://www.kedai.com.my/kk > http://www.kedai.com.my/eZine > > Strange how laughter looks like crying with no sound, and raindrops taste > like tears .. without the pain > > > ___ > 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] CoreSessionTracking and noundo db
hi in trying out the excellent CoreSessionTracking product, i encountered a little problem. the doc reference a no-undo external db to house the data. i remember one such beast which were alpha (berkerly dbm(?)), but can't locate it at zope.org. also, will there ever be a no undo db for use with zope? since such product is a must to run zope in real world. hints, urls welcome thanks -- http://www.kedai.com.my/kk http://www.kedai.com.my/eZine Strange how laughter looks like crying with no sound, and raindrops taste like tears .. without the pain ___ 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] More ZClass questions: How to get a complete property list?
Hi there, I want to have a method which returns a list of all properties of an object. The problem: when I write a Method (DTML or Python) I always get the properties of the container of the method, but not the ones of the object I applied the method. I used propertyMap, propertyIds and propertyItems. Example: Say xxx is an instance of a ZClass and resides in the root directory. http://localhost:8080/xxx/propertyMap will return a map of all properties of the root folder not of the xxx object. Say you define a method yyy which access concrete properties of the object with dtml-var, say ''who" and "when", then it will access these properties if they exist and fail if one of these doesn't. Ok. I found it, I have to access each propertysheet, but if I try something like the login window with username/password is presented, but whatever I type I get an authorization error, so I think there is a private properysheet, isn't it? So how can I get a list of all properties defined in an object? I'll answer the question myself, but I think it is a bit complex. The philosophy is to write nearly everything in Python External (unrestricted) Pyhton script (like id=getprops, module=getprops, function=getprops) : def getprops(self): x=[] for y in self.propertysheets: for z in y.propertyItems(): x.append(z) return x Now a DTML method for displaying this (e.g. as printproperties): Properties of : regards, Erny ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] DTML difficulties
I'm working on my first zope product and, while everything has gone relatively smoothly so far, I'm having some issues. The product is a folderish object which contains 3 subfolders, each of which contains a specific type of object. The structure looks something like this: work/: Main folder, UI, etc jobs/: List of all jobs projects/: taskforces/: Each folder contains a job, project or taskforce object, as well as the UI to manage them. Projects and taskforces are simple objects with names, descriptions, etc. Logic will be attached to these classes so that, when instances are viewed, they will search for jobs which are assigned to them. Each job can be assigned to multiple projects/taskforces. Now, the difficulty. I'm working on the UI for the job add form, which is in work/jobs. The form needs to iterate over the contents of projects/ and taskforces/, and I can't figure out how. Here's what I've tried: Taskforces Projects And the error I get is: ||Error Type: TypeError | ||Error Value: unsliceable object| Traceback (innermost last): File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/lib/zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/lib/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: ESPWorkRequestAdd) File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: ESPWorkRequestAdd) File /usr/lib/zope/lib/python/App/special_dtml.py, line 120, in __call__ (Object: ESPWorkRequestAdd) File /usr/lib/zope/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__ (Object: ESPWorkRequestAdd) File /usr/lib/zope/lib/python/DocumentTemplate/DT_In.py, line 672, in renderwob (Object: PARENTS[1].taskforces) File /usr/lib/zope/lib/python/OFS/ObjectManager.py, line 617, in __getitem__ (Object: RoleManager) File /usr/lib/zope/lib/python/OFS/ObjectManager.py, line 257, in _getOb (Object: RoleManager) TypeError: (see above) Can anyone offer any advice? ___ 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] basic &dtml syntax question
jason, this is called 'entity notation'. the semicolon is a standard part of it. another example of an item in entity notation would be to replace "<" with < or the often abused blank space this entity notation is a general HTML thing, it's not zope-specific. jens on 1/30/01 17:49, Jason Cunliffe at [EMAIL PROTECTED] wrote: > example: >^ >^ >^ >? > > Please can anyone explain why <&dtml...> syntax has a semi-colon ; at the > end? > > What is for? > Why is necessary? etc > How to use/abuse it? > > thanks > Jason > ___ 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] basic &dtml syntax question
example: ^ ^ ^ ? Please can anyone explain why <&dtml...> syntax has a semi-colon ; at the end? What is for? Why is necessary? etc How to use/abuse it? thanks >>> Jason ___ 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 dlpierson example
On Wed, Jan 31, 2001 at 09:25:08AM +1300, W. Robert Kellock wrote: > Are PythonScript arguments typeless? I keep getting an > error > > Error Type: AttributeError > Error Value: 'string' object has no attribute 'password' > > from the authenticate method which I'm passing self,password. I think you should pass (self, password, request). -- Fred Yankowski [EMAIL PROTECTED] tel: +1.630.879.1312 Principal Consultant www.OntoSys.com fax: +1.630.879.1370 OntoSys, Inc 38W242 Deerpath Rd, Batavia, IL 60510, USA ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] BUG? was Re: [Zope] Problem with Cut and Paste
Good evening again, On Tue, Jan 30, 2001 at 08:45:06PM +0100, Jerome Alet wrote: > > On Tue, Jan 30, 2001 at 02:24:50PM -0500, Brian Lloyd wrote: > > > > This is your problem - Netscape allows a maximum of 4k of > > cookie data for a given site (and silently truncates the > > rest). > > I'm sorry but AFAIK there's nothing sending cookies to my browser from this > installation. More than that, if I manually cut then paste the same > object with the Cut and Paste buttons in the management interface > it works perfectly, and in this situation the cookie data should be > exactly the same, correct me if I'm wrong. I think I've found where the problem comes from, it has nothing to do with browsers or cookies (or me) AFAICT. When manage_cutObjects() is called with REQUEST != None (i.e. when used from the management interface) then instead of the cut objects it returns the value returned by manage_main(), this explains why my cb_copy_data was bad. I've sligthly modified manage_cutObjects() to confirm that's the problem: I've added a fourth parameter called noredirect to this method, this parameter is a named one and defaults to 0, then at the end of this method, I've just done: if not noredirect : return self.manage_main(REQUEST) return cp Now it works fine both from my new management interface (Zope's modified one) and from python scripts, with a method which does essentially the following: cb_copy_data = self.manage_cutObjects(ids, REQUEST, noredirect = 1) return self.aq_parent.manage_pasteObjects(cb_copy_data, REQUEST) In other terms manage_cutObjects() wasn't designed to be immediately followed by a call to another method when used from the management interface. Not sure if this is a bug, however it seems this is a common problem in Zope manage_() methods. hoping this will help bye, Jerome Alet ___ 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 with Cut and Paste
> I'm sorry but AFAIK there's nothing sending cookies to my browser > from this > installation. More than that, if I manually cut then paste the same > object with the Cut and Paste buttons in the management interface > it works perfectly, and in this situation the cookie data should be > exactly the same, correct me if I'm wrong. Make sure that you are *not* passing the REQUEST to manage_cutObjects in your custom method. If you pass the REQUEST, manage_cutObjects will assume that it is being called from a Web form and it will return html rather than the copy_data token. It looks like that is what is happening - when you call manage_pasteObjects you are probably passing it html rather than the copy data, which is why it is failing to unencode it. 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 )
[Zope] Loading ZMySQLda on Solaris 7
Hi, After having no problems at all with Zope 2.3, and Mysql on Linux RedHad6.1 I tried getting this to work on a Solaris 7 SPARC machine with no luck. Im using: Solaris 7 (SunOS 5.7 ) GCC 2.95.1 Zope 2.3.0 ZMySQLDA 1.2 MySQL 3.22.32 compiled from source Python 1.5.2, Python 1.6, Python2.0 all compiled with thread support. When I try to load a ZMySQL object in Zope I keep getting the following error: Any ideas? Thanks, ImportError: ld.so.1: python: fatal: relocation error: file /sw/scm/usr/lib/python1.5/site-packages/_mysql.so: symbol PyTuple_New: referenced symbol not found Traceback (innermost last): File "/sw/scm/usr/Zope-2.3.0-solaris-2.6-sparc/lib/python/OFS/Application.py", line 530, in import_products product=__import__(pname, global_dict, global_dict, silly) File "/sw/scm/usr/Zope-2.3.0-solaris-2.6-sparc/lib/python/Products/ZMySQLDA/__init__. py", line 106, in ? import sys, os, Globals, DA File "/sw/scm/usr/Zope-2.3.0-solaris-2.6-sparc/lib/python/Products/ZMySQLDA/DA.py", line 108, in ? from db import DB File "/usr/share/zope/lib/python/Products/ZMySQLDA/db.py", line 106, in ? ImportError: ld.so.1: /sw/scm/usr/Zope-2.3.0-solaris-2.6-sparc/bin/python: fatal: relocation error: file /sw/scm/usr/Zope-2.3.0-solaris-2.6-sparc/lib/python/Products/ZMySQLDA/_mysqlmodu le.so: symbol PyObject_Init: referenced symbol not found ee Marzke <[EMAIL PROTECTED]> 30-Jan-01, 15:10:04 Kulicke & Soffa Industries 2101 Blair Mill Rd +1 215 784-6217 Willow Grove, PA 19090 +1 215 784-6014 fax ___ 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] LoginManager dlpierson example
Hi, I'm new to Zope and I've been examining the LoginManager example given by dlpierson (http://www.zope.org/Members/dlpierson/sqlLogin). Although I am nowhere near understanding what it is doing, I'm very close to getting it to work - I think! It looks to me like I'm falling down in the PythonMethods (PythonScripts) in the Member ZClass. Are PythonScript arguments typeless? I keep getting an error Error Type: AttributeErrorError Value: 'string' object has no attribute 'password' from the authenticate method which I'm passing self,password. Strangely following this error, I can hit the back button on my browser and reach the protected HTML page anyway! Here is the traceback. Your help would be appreciated. -W.Robert Kellock Ph: +64 3 326 6115Sales Manager Fax: +64 3 326 6115Credit Systems Control Ltd Web: www.creditscore.co.nz "making decisions easy"-
RE: [Zope] DTML namespace puzzle
It was posted to zope-dev, which I should probably subscribe to. http://lists.zope.org/pipermail/zope-dev/2001-January/009018.html Thank you! Exactly what I needed. ___ Ron Bickers Logic Etc, Inc. [EMAIL PROTECTED] > -Original Message- > From: Dieter Maurer [mailto:[EMAIL PROTECTED]] > About a week ago, I posted a short description on how parameters > are passed to DTML objects to this list. > > Take a look at the archive. ___ 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] ZPyGresQL Connection Add Error
On Mon, 22 Jan 2001, Craig wrote: > Error Type: IOError > Error Value: [Errno 2] No such file or directory: > '/usr/lib/zope/lib/python/Shared/DC/ZRDB/connectionAdd.dtml' >I checked and this connectionAdd.dtml file is actually located >here: >/usr/lib/zope/lib/python/Shared/DC/ZRDB/dtml/connectionAdd.dtml try to move the dtml-file one directory upwards, it doesn't seem to be expected to be inside the 'dtml'-directory. just a guess. greetings, rob. -- __ ´ ` Robert Prosencweb: http://www.matrixware.at/ mail:[EMAIL PROTECTED] Matrixware phone: +43( 1) 713 43 06 - 2 postal: Geusaugasse 39 (Ecke Kundmanngasse) A-1030 Vienna, AUSTRIA -- while !asleep() sheep++ `--´ ___ 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] What group is user "zope" in, and what is its home dir?
--== Sent via Deja.com ==-- http://www.deja.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] DTML namespace puzzle
Ron Bickers writes: > > I realized the DTML method > call from the Python Script included 'container' as the first parameter (as > shown below) > I don't understand how Python Scripts can/should call DTML methods. That > is, are there magical parameters?... About a week ago, I posted a short description on how parameters are passed to DTML objects to this list. Take a look at the archive. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Problem with Cut and Paste
> I've done this modification on a fresh 2.3.0-final installation > with no other products installed, on localhost, and no special > content other than a folder and an index_html document > to test my modifications. > > However I've tested what you suggested, after deleting my > Netscape 4.75 cookies file > under Linux (2.2.18 kernel), the problem remains. > > If I check the cb_copy_data length then it returns: > > 16765 under Netscape and 14xxx under Lynx This is your problem - Netscape allows a maximum of 4k of cookie data for a given site (and silently truncates the rest). 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 )
[Zope] Zope memory usage / cache
I have a site that has dozens of 300k+ Photo objects (http://www.zope.org/Members/Drew/Photo). When I start Zope, it uses about 10MB. It will run at around 10-12MB for days as long as I don't access any of the photos. Once I access several of the photos, it jumps up to around 50MB. The debug info says there are over 200 Photo object references. If I then do a Cache minimize, there are no longer any Photo object references, but the memory usage remains 50MB. It will stay that high indefinitely (at least as long as I have tested -- a few days), even if the site isn't accessed. If I restart, it goes back down to 10MB, and it will stay there as long as my photos aren't accessed. Is this normal behavior? It seems crazy to have Zope sucking up that much memory when those photos are hardly ever accessed. ___ Ron Bickers Logic Etc, Inc. [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Trying to Upload a File
HI! I am trying to upload a .pdf file and it keeps giving me this error: Error type: TypeError Error value: read-only character buffer, ImplicitAcquirerWrapper I have made sure the file is not read-only. Here is the traceback: Traceback (innermost last): File C:\Program Files\ATIAnywhere\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\Program Files\ATIAnywhere\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: manage_addFile) File C:\Program Files\ATIAnywhere\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: manage_addFile) File C:\Program Files\ATIAnywhere\lib\python\OFS\Image.py, line 125, in manage_addFile (Object: UserDirs) File , line 4, in manage_upload (Object: Price_00.pdf) File C:\Program Files\ATIAnywhere\lib\python\Products\LocalFS\LocalFS.py, line 374, in _save_ob (Object: Price_00.pdf) File C:\Program Files\ATIAnywhere\lib\python\Products\LocalFS\LocalFS.py, line 357, in _save_builtin_ob (Object: Price_00.pdf) File C:\Program Files\ATIAnywhere\lib\python\Products\LocalFS\LocalFS.py, line 336, in _save_File (Object: Price_00.pdf) File C:\Program Files\ATIAnywhere\lib\python\ts_regex.py, line 144, in search TypeError: read-only character buffer, ImplicitAcquirerWrapper TIA! -y ~~~ Yvonne Totty Database Engineer, x2198 - Maximus: What we do in life, echoes in eternity. -- Gladiator ___ 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] ANN: Core Session Tracking 0.7
> servlet world too), when a session starts and ends, you can associate an > event with it. So this allows you to use the session space as sort of a > scratchpad for use when a user comes in. At start time, you copy over some > user state to the session object (based on authentication information). The > user does some stuff, changing the contents of the session state. Then when > the session expires, the session end event is called, the state is copied > back to the user object. This is something that core session tracking > doesn't do because session ids don't expire. Actually, the more I think about this, the more convinced I become that I should offer something this tied to the expiration of the session data object. ___ 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] Z SQL Method
maybe works On Tuesday 30 January 2001 12:22 pm, Martin Jundt wrote: > Hi there, > > I have got a litte problem with a Z SQL Method "sql_example": > > select count(*) as result from example_DB > > I want to put the returned result in a variable: > > > > > > This works fine.But should something like > > > > work, too? > > Thanks > Martin > > ___ > 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 ) -- Diego Rodrigo Neufert Webmaster / Web Developer - Magic Web Design --- [EMAIL PROTECTED] www.magicwebdesign.com.br Curitiba - PR - Brasil ___ 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] ANN: Core Session Tracking 0.7
> >A new release of the "CoreSessionTracking" product is out. The product > >allows you to associate state with anonymous visitors between requests. > > I've been wondering about this for a long time. It allows you to associate > state with anonymous users. Does this imply that you can't associate state > with authenticated users, or that there's another mechanism to do it with > authenticated users? There's nothing inherent in the product which prevents you from associating state with authenticated users. It's just not as useful because once they're authenticated you'd probably be better off associating the state with their user object. I've seen a couple of examples of session usage, however, that mix user state and session state... for example, in the ASP world (and I think in the servlet world too), when a session starts and ends, you can associate an event with it. So this allows you to use the session space as sort of a scratchpad for use when a user comes in. At start time, you copy over some user state to the session object (based on authentication information). The user does some stuff, changing the contents of the session state. Then when the session expires, the session end event is called, the state is copied back to the user object. This is something that core session tracking doesn't do because session ids don't expire. There are also a couple of undocumented methods in core session tracking that allow you to associate a session data object with a user's database path. The reason that they're undocumented is because I'm not sure how far I want the tendrils of session tracking to go. This is an area we need help in, but it's probable that this information should probably be associated with the user in another way. > In the servlet paradigm, there's a distinction between the HTTP session and > authentication. You set up a session with an HTTP request, and thereafter > if the session ID is returned to you it's the same session. In that > session, the user can choose to login or not. > > Is this the same thing or is it different? Core session tracking is the same. ___ 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] Extended characters in Zope
Hmmm, as far as the ZCatalog part; I know that at some point it was only working iwth 7 bit ascii characters, then someone put a patch in so that it supported Latin-1 (ISO-8859-1) in the vocabularies... I don't know when (or if) that was ever integrated into the zope core, but I'm sure that if you search Zope.org for Latin-1 you should find it... Sean -Original Message- From: Ausum [mailto:[EMAIL PROTECTED]] Sent: Monday, January 29, 2001 7:05 PM To: [EMAIL PROTECTED] Subject: [Zope] Extended characters in Zope I have to deal with documents and its attributes wich have a lot of extended characters in them, like the "ñ" or the hyphened "á"..."ú" vocals in spanish. The ones who download the pages in Windows don't have any trouble. The ones who use Mac will see strange characters, as it might be expected. Updating a page or propertie from a Mac will cause the same problem for Windows users, because Zope doesn't convert the extended characters to the web-friendly format when properties are added. I'd also like to search in Zcatalog using these extended characters, ie. "Effects of El Niño", from any platform. Is there a workaround for this situation? Ausum p.d I'm sure that european Zopists have already faced this problem and probably found a solution. Unfortunately I couldn't find it at the archives. ___ 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] Zope presentations at Paris LinuxExpo
Hi everyone, We will be doing Zope presentations (in english and in french) during the Paris LinuxExpo (31, 1 and february) convention. The slides will be available shortly on Adequat's website (http://adequat.c2a.fr/). Adequat's stand is at the D3 booth. The presentation is an short introduction to zope (ZODB, Products, aquisition etc.) see you there, Noa ___ 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] ZDatabaseTool password
Andrew Kenneth Milton wrote: > > +---[ Andreas Heckel ]-- > | Thank you all for your interest in my new Zope Product. > | In the past 36h there were avg 750 visits (26000 hits) on my page :-) > | Some of you asked me for username/password. So here it is ... > | > | To create new ZDatabaseWizard objects at http://www.easyleading.org/demo > | first go to the folder named "Free". > | > | username: demo > | password: demo > | > | Hope the online demo makes more sense to you with this info ;-) > > This just keeps giving me the same Title of New Query form... First click on "Free". On the lower left you can see that now "Free" is your current folder. Then type in a name for your new query and hit "next". Then you will asked for username and password ... Andreas Heckel ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Problem of performance
Hi, It's strange, I thought I was rid of it, but it seems to pop-up now and then. I'm talking of a slow performance of Zope2.2.x Here is the problem: When I'm working in Zope, the following happens sometimes : eg. I copy an object and then try to paste it. The pasting can take minutes, or the interface just keeps trying to load the page. Now, when I stop the loading of the page (when it seems to be hanging) and reload the page, I see the copied object. So, it looks like Zope has problems to display the page. I've Zope installed on Mandrake and the problem occures on Netscape (Linux) as IE5.0 windows. Somebody an idea what may be the cause of this? Did something changed in the code related to this? Thanks in advance, 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] ZDatabaseTool password
+---[ Andreas Heckel ]-- | Andrew Kenneth Milton wrote: | > | > +---[ Andreas Heckel ]-- | > | Thank you all for your interest in my new Zope Product. | > | In the past 36h there were avg 750 visits (26000 hits) on my page :-) | > | Some of you asked me for username/password. So here it is ... | > | | > | To create new ZDatabaseWizard objects at http://www.easyleading.org/demo | > | first go to the folder named "Free". | > | | > | username: demo | > | password: demo | > | | > | Hope the online demo makes more sense to you with this info ;-) | > | > This just keeps giving me the same Title of New Query form... | | First click on "Free". | On the lower left you can see that now "Free" is your current folder. | Then type in a name for your new query and hit "next". | Then you will asked for username and password ... Oh haha.. I was expecting username and password first... -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 ABN: 83 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068|[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] How to display image returned from Catalog query
On Tue, 30 Jan 2001, Timothy Wilson wrote: > What I can't figure out is how to display that image. I can use > > > > to make a link to the image, but I want this method to display the image > directly. ? Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [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 )
Re: [Zope] How to display image returned from Catalog query
On Tue, 30 Jan 2001, Oleg Broytmann wrote: > On Tue, 30 Jan 2001, Timothy Wilson wrote: > > What I can't figure out is how to display that image. I can use > > > > > > > > to make a link to the image, but I want this method to display the image > > directly. > > ? Doh! I was trying to do too much with DTML. Thanks for the tip! -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/ W. St. Paul, MN | | http://slashdot.org/ [EMAIL PROTECTED] || http://linux.com/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZDatabaseTool password
+---[ Andreas Heckel ]-- | Thank you all for your interest in my new Zope Product. | In the past 36h there were avg 750 visits (26000 hits) on my page :-) | Some of you asked me for username/password. So here it is ... | | To create new ZDatabaseWizard objects at http://www.easyleading.org/demo | first go to the folder named "Free". | | username: demo | password: demo | | Hope the online demo makes more sense to you with this info ;-) This just keeps giving me the same Title of New Query form... -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 ABN: 83 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068|[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] Problem with Cut and Paste
On Tue, Jan 30, 2001 at 11:13:52AM -0500, Brian Lloyd wrote: > > I'm trying to modify OFS/dtml/main.dtml and OFS/CopySupport.py > > in order to create a shortcut button to cut an object and paste it > > in the parent object in one click, because I think this may > > save lots of boring clicks, at least for me. > > > > When I call the following method from the management interface > > (OFS/dtml/main.dtml) then I receive this error: > > > > "The data in the clipboard could not be read, possibly due to > > cookie data being truncated by your web browser. > > Try copying fewer objects."] > > Jerome - most Web browsers have a maximum limit to the amount > of cookie data that they will preserve from a given site > (usually around 4k as I recall, though this may vary from > browser to browser). If you have a lot of cookies from this > site already, your browser may be silently truncating the > cookie data sent. You could check this by looking at the > length of the data you get from manage_cutObjects as > cb_copy_data. I've done this modification on a fresh 2.3.0-final installation with no other products installed, on localhost, and no special content other than a folder and an index_html document to test my modifications. However I've tested what you suggested, after deleting my Netscape 4.75 cookies file under Linux (2.2.18 kernel), the problem remains. If I check the cb_copy_data length then it returns: 16765 under Netscape and 14xxx under Lynx With Lynx I've got the time to see a message saying "500: Internal Server Error" but then it disappears and the message about the cookie length appears. Please could you test my method and see if it works for you because I sincerely don't know why it doesn't work here ? Thanks in advance for your time. Jerome Alet ___ 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] ANN: Core Session Tracking 0.7
>From: "Chris McDonough" <[EMAIL PROTECTED]> >A new release of the "CoreSessionTracking" product is out. The product >allows you to associate state with anonymous visitors between requests. I've been wondering about this for a long time. It allows you to associate state with anonymous users. Does this imply that you can't associate state with authenticated users, or that there's another mechanism to do it with authenticated users? In the servlet paradigm, there's a distinction between the HTTP session and authentication. You set up a session with an HTTP request, and thereafter if the session ID is returned to you it's the same session. In that session, the user can choose to login or not. Is this the same thing or is it different? ___ 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] ZDatabaseTool password
Thank you all for your interest in my new Zope Product. In the past 36h there were avg 750 visits (26000 hits) on my page :-) Some of you asked me for username/password. So here it is ... To create new ZDatabaseWizard objects at http://www.easyleading.org/demo first go to the folder named "Free". username: demo password: demo Hope the online demo makes more sense to you with this info ;-) Andreas ___ 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 with Cut and Paste
> First I'm sorry if this message was already received in this list, > but I'm sure I've not received it to confirm, so I send it again, sorry > for the inconvenience. > > I'm trying to modify OFS/dtml/main.dtml and OFS/CopySupport.py > in order to create a shortcut button to cut an object and paste it > in the parent object in one click, because I think this may > save lots of boring clicks, at least for me. > > When I call the following method from the management interface > (OFS/dtml/main.dtml) then I receive this error: > > "The data in the clipboard could not be read, possibly due to > cookie data being truncated by your web browser. > Try copying fewer objects."] Jerome - most Web browsers have a maximum limit to the amount of cookie data that they will preserve from a given site (usually around 4k as I recall, though this may vary from browser to browser). If you have a lot of cookies from this site already, your browser may be silently truncating the cookie data sent. You could check this by looking at the length of the data you get from manage_cutObjects as cb_copy_data. Hope this helps! Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations 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 )
[Zope] How to display image returned from Catalog query
Hey everyone, I've got a PythonScript that returns a list of 'Photo' instances. I'm using to grab the first instance off the list. What I can't figure out is how to display that image. I can use to make a link to the image, but I want this method to display the image directly. returns the instance itself and doesn't display anything. I'm sure there's something simple I'm missing here. Any suggestions? -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/ W. St. Paul, MN | | http://slashdot.org/ [EMAIL PROTECTED] || http://linux.com/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Little bug in lib/python/App/dtml/editPermission.dtml (v.2.3.0)
> In the editPermission form what should be the 'name' input field has an > incorrectly set HTML attribute (name="title"), it reads: > > > > but, it should be: > > This is fixed in CVS (Collector #1916). Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations 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 )
[Zope] parsing dtml from sql-method
Hello i would like to put some dtml code into my database and let it be parsed by zope by a query. it works fine with html, but with dtml it fails actual i have some can anybody help me ??? 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] Re: How to make a zclass as default Xron methods?
Best to address questions to the Zope mailing list. You'll get more prompt answers coupled with the collective experience of hundreds of users. I'm not sure exactly what you are asking, but I'll try to clarify, anyway... self.executeAt is the property that holds the next scheduled execution time. This property is set by manage_addXronDTMLMethod to hold the first scheduled execution time, and changed periodically by 'reschedule'. Could change addXronDTMLMethod.dtml to expose only executeAt but not periodDays or you could do the same by changing manage_addXronDTMLMethod (which is invoked by addXronDTMLMethod.dtml). -- Hope that helps -- Loren - Original Message - From: "Dirksen Lau" <[EMAIL PROTECTED]> To: "Loren Stafford" <[EMAIL PROTECTED]> Sent: Monday, January 01, 2001 7:51 PM Subject: How to make a zclass as default Xron methods? > Hi Loren, > > I want to subclass Xron method, and provide default action and reschedule > interval, leaving the initial time for customization. Which method to > override so as to preset the Scheduled Method? > > cheers > Dirksen > > ___ 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: Xron for Zope: Asking for Help
I don't have much experience with this either. You should direct your question to the Zope mailing list where others can share their expertise with you (not to mention replying promptly). -- Loren - Original Message - From: "R. Herold" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, January 07, 2001 7:31 AM Subject: Xron for Zope: Asking for Help > Dear Loren Stafford, > > thank You for providing the Xron product, which I would like to regularly > update ZCatalogs of parts of our site. However, I can't figure out > what I have to put into the Xron DTML Method. The site catalog should be > updated every 2 hours and cleared and renewed every 12 hours. I just don't > know how to translate the management interfaces URL for the catalog > (e.g. site_catalog/?manage_catalogReindex%3Amethod=+Update+Catalog) > into a Xron dtml-call - Coud You help me, please? > > I am using Xron 0.0.9 with Zope 2.2.4 (under Linux and Windows). > Thanks for any tip, > Greetings, Ralf Herold > > > -- Dr. med. Ralf Herold > | Koordinationszentrale Kompetenznetz Pädiatrische Onkologie und Hämatologie > | Charité Campus Virchow-Klinikum Medizinische Fakultät Humboldt-Universität > | D-13353 Berlin, Augustenburger Platz 1, Raum 4.3412 4. Etage Mittelallee 8 > | Tel. +49(30)450-66834 Fax -66906 Sprach-/Faxbox +49(180)505254-873936 > | mailto:[EMAIL PROTECTED] http://www.knm-poh.charite.de/ > > ___ 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] Z SQL Method
Hi there, I have got a litte problem with a Z SQL Method "sql_example": select count(*) as result from example_DB I want to put the returned result in a variable: This works fine.But should something like work, too? Thanks Martin ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to upgrade to 2.3 (no differential install?)
It means decompress a compressed archive... not all tars support this... - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, January 30, 2001 9:14 AM Subject: RE: [Zope] How to upgrade to 2.3 (no differential install?) > just checked man of tar - no "z" was listed. > what exactly is definition of "z"? > I assume it might be "ignore top level directory"? > > Dale > > -- SNIP > > two steps too many ;) > Just tar -xvzf the original file,no need to copy and then delete the > copy. > /me ducks > > > ___ > 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 to upgrade to 2.3 (no differential install?)
just checked man of tar - no "z" was listed. what exactly is definition of "z"? I assume it might be "ignore top level directory"? Dale -- SNIP two steps too many ;) Just tar -xvzf the original file,no need to copy and then delete the copy. /me ducks ___ 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] ANN: Core Session Tracking 0.7
A new release of the "CoreSessionTracking" product is out. The product allows you to associate state with anonymous visitors between requests. The latest version (0.7) fixes a fairly serious kid-clicking-related bug found by Randall Kern that effects RAM-based ("internal") session data containers. If you need to upgrade from 0.6, all that is required is to untar/ungzip this release on top of the 0.6 release files. Then you must restart. You can find the product at http://www.zope.org/Members/mcdonc/Products/CoreSessionTracking/index_html - C ___ 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] The new stylesheet used in the management interface
I'm wondering if there's a document describing the use of the elements from 'manage_page_style.css' for unifying the management interface. Maybe it will be a good thing to release two DTML methods/documents to simulate the 'manage_page_header' and 'manage_page_footer' for backward compatibility with previous builds of Zope while moving to the new layout. ___ 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] "Picture of the day" product
Hi, Tim context.ZopeTime() or container.ZopeTime() ZopeTime is not in the PythonScript's namespace. It is available in most (all?) containers, however. -- Jim Washington Timothy Wilson wrote: > > On Mon, 29 Jan 2001, Tres Seaver wrote: > > > > I'd like to grab all instances with a display_date <= today's > > > date. I can't figure out exactly how to do that in DTML or a > > > Python Script. Once I have that list of instances, I'll simply > > > pull off the latest one as you suggested. > > > I don't know where it would be in the book it would be, but > > I do this something like:: > > > > > > > > The expression would be basically the same in a PythonScript:: > > > > return context.theCatalog( meta_type='Photo' > >, display_date=ZopeTime() > >, display_date_usage='range:max' > >, sort_on='display_date' > >, sort_order='reverse' > >) > > Great! The first DTML example works perfectly. The second, however, throws > up an error. In fact, I have yet to figure out how to use ZopeTime() in a > PythonScript. Do I have to pass anything in? > > I get: > > Error Type: NameError > Error Value: ZopeTime > > when I try it. > > -Tim ___ 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] Little bug in lib/python/App/dtml/editPermission.dtml (v.2.3.0)
[Zope v.2.3.0 final] In the editPermission form what should be the 'name' input field has an incorrectly set HTML attribute (name="title"), it reads: but, it should be: -- Roberto Lupi ___ 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] RESPONSE.redirect
It's a html meta-tag that does the trick, not http. Look at http://www.geocities.com/siliconvalley/campus/1924/metacom.html. HTH Ragnar >Hi all, > >I'd like to show a page and after a few seconds I'd like to redirect to >another page. If I simply add it is >done immediately. How can I achieve a delay of a couple of seconds? > >Oliver ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] CacheManagers are cool :)
> anybody tried expiring an object,? say after 300 secs, the cached object > expires, get invalidated and a new cached object is created when somebody > requested the page. > is there any simple way to expire a RAM Cache? haven't tried this yet. > also, for those who tried caching. what do you guys do? cache > the methods > that make up the bigger method? or just cache the bigger method? > > e.g dtml method a is made from method b, c, d,...n > do you cache a, or selectively cache b and/or c, d, ... it depends on what's in each element. the design of the caching system is such that you can have as fained-grained a control as you wish. the decision is entirely up to you. my fairly amateurish tests suggest that the benefits of caching only really manifest themselves at high levels of concurrency. if the method (a) contains a little logic, items (b),(c) and (d) are images, and the whole page is very frequently accessed, you'd probably benefit from caching (a) in RAM, and using the HTTP Cache manager for the other elements. OTOH, you could expect proxies and browser caches to handle elements such as images fairly well, so I imagine most of the benefit would come from caching only the element of the page which contains the logic. If the page is accessed only a hundred times a day, you will see little benefit from caching it, at the cost of some memory on your server. in a scenario where (b), (c) and (d) each contain their own snippets of logic, you would be wise to cache them all. Otherwise you would lose the benefits of caching (a), because to build the page, Zope is still making hits to disk each time. well, that's how I assume it works, anyway. time for more tests, i think... seb ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] [OT perhaps] ZMySQLDA
mysql is case sencitive olaf Lee Reilly CS1997 schrieb: > > Hi, > > I wonder if someone could comment on what they think my problem with the > following may be. > > I have the ZMySQL DA installed, which works fine (I think). > > Testing my database in UNIX I created a table and populated it with some > values. From the 'Test' page of the database connection in Zope I > queried this table and it returned the correct values. So the connection > string's fine. > > Now, here is where I ran into problems. Entering the following into the > 'Test' page executes no problem. > > CREATE TABLE STUDENTS > ( > matric float (7), > fname varchar(20), > lname varchar (30), > uname varchar (8) > ) > > when i try and query it from Zope or Unix (select * from students) I get > "OperationalError: (1146, "Table 'lreilly.students' doesn't exist")" and > (table lreilly.students does not exist" respectively. > > I've even tried changing the tablename to lreilly.students but still no > luck. > > Can anyone see what my problem is? > > Thank you very much in advance. > > - Best regards, > > Lee > > ___ > 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 ) -- soli-con Engineering Zanger Dipl.-Ing. (FH) Olaf Marc Zanger Lorrainestrasse 23 3013 Bern / Switzerland Fon: +41-31-332 9782 Mob: +41-76-572 9782 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://www.soli-con.com begin:vcard n:Zanger;Olaf Marc tel;cell:+41-76-572 9782 tel;work:+41-31-332 9782 x-mozilla-html:FALSE url:www.soli-con.com org:soli-con Engineering Zanger adr:;;Lorrainestrasse 23;Bern;BE;3013;Switzerland version:2.1 email;internet:[EMAIL PROTECTED] title:Dipl.-Ing. note;quoted-printable:IT-Consulting=0D=0AEmbedded Systems=0D=0AEnergy Systems=0D=0AOpen Source Solutions=0D=0A x-mozilla-cpt:;-32176 fn:Olaf Zanger end:vcard
Re: [Zope] [OT perhaps] ZMySQLDA
On Tue, 30 Jan 2001, Lee Reilly CS1997 wrote: > CREATE TABLE STUDENTS > when i try and query it from Zope or Unix (select * from students) I get SELECT * FROM STUDENTS; Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [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] Catalogaware ZClass
Hello, usually I'm more patient but this time it's a very important feature(I have to build an archive). That's my question from yesterday: --->> I try to delete a Catalogware ZClass with subobjects that are also ZClasses. That's my method to delete a Class: But Zope answers: An exception occurred in a DTML method or document. Error type: BadRequest Error value: 980785769 does not exist But '980785769' EXISTS in the management-interface !! :-(( ---> It would be very nice if someone could give me a hint.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 )
RE: [Zope] [OT perhaps] ZMySQLDA
AFAIK in MySQL table names are case-sensitive. So, what happens if you say 'select * from STUDENTS'? Markus Kemmerling > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Lee > Reilly CS1997 > Sent: Tuesday, January 30, 2001 10:27 AM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: [Zope] [OT perhaps] ZMySQLDA > > > Hi, > > I wonder if someone could comment on what they think my problem with the > following may be. > > I have the ZMySQL DA installed, which works fine (I think). > > Testing my database in UNIX I created a table and populated it with some > values. From the 'Test' page of the database connection in Zope I > queried this table and it returned the correct values. So the connection > string's fine. > > Now, here is where I ran into problems. Entering the following into the > 'Test' page executes no problem. > > CREATE TABLE STUDENTS > ( >matric float (7), >fname varchar(20), >lname varchar (30), >uname varchar (8) > ) > > when i try and query it from Zope or Unix (select * from students) I get > "OperationalError: (1146, "Table 'lreilly.students' doesn't exist")" and > (table lreilly.students does not exist" respectively. > > I've even tried changing the tablename to lreilly.students but still no > luck. > > Can anyone see what my problem is? > > Thank you very much in advance. > > - Best regards, > > Lee > > ___ > 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] [OT perhaps] ZMySQLDA
Hi, I wonder if someone could comment on what they think my problem with the following may be. I have the ZMySQL DA installed, which works fine (I think). Testing my database in UNIX I created a table and populated it with some values. From the 'Test' page of the database connection in Zope I queried this table and it returned the correct values. So the connection string's fine. Now, here is where I ran into problems. Entering the following into the 'Test' page executes no problem. CREATE TABLE STUDENTS ( matric float (7), fname varchar(20), lname varchar (30), uname varchar (8) ) when i try and query it from Zope or Unix (select * from students) I get "OperationalError: (1146, "Table 'lreilly.students' doesn't exist")" and (table lreilly.students does not exist" respectively. I've even tried changing the tablename to lreilly.students but still no luck. Can anyone see what my problem is? Thank you very much in advance. - Best regards, Lee ___ 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] License
Bill Anderson wrote: > > Yeah, that typo really caught me a good laugh too. I should thank Chris > for it. :) Just stick it on the Zope Quotes board, can't remember the URL though :-S Jeez, what have I done, I wholeheartedly apologise for even mentioning licenses. Any heard of the web app server called Zope? I hear it's quite good :-) cheers, Chris PS: GPL sux :P (stir stir) PPS: Bill: Your [EMAIL PROTECTED] address is broken :-( ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Problem with Cut and Paste
Hi, First I'm sorry if this message was already received in this list, but I'm sure I've not received it to confirm, so I send it again, sorry for the inconvenience. I'm trying to modify OFS/dtml/main.dtml and OFS/CopySupport.py in order to create a shortcut button to cut an object and paste it in the parent object in one click, because I think this may save lots of boring clicks, at least for me. When I call the following method from the management interface (OFS/dtml/main.dtml) then I receive this error: "The data in the clipboard could not be read, possibly due to cookie data being truncated by your web browser. Try copying fewer objects." But when I call if from a PythonScript it works fine. My method, bound to a MoveUp button of my own: --CUT--- def manage_moveupObjects(self, ids=None, REQUEST=None): """Moves the selected objects to the parent objets (e.g. Folder)""" if ids is None and REQUEST is not None: return eNoItemsSpecified elif ids is None: raise ValueError, 'ids must be specified' if type(ids) is type(''): ids=[ids] if hasattr(self, 'aq_parent') and hasattr(self.aq_parent, 'manage_pasteObjects') : cb_copy_data = self.manage_cutObjects(ids, REQUEST) return self.aq_parent.manage_pasteObjects(cb_copy_data, REQUEST) ---CUT--- If I call self.aq_parent.manage_pasteObjects with None as the first parameter then it works fine from the management interface but not from a PythonScript: I receive a "No clipboard data found" error. Please could someone explain me what the problem is ? (I want it to work both from the management interface and from Python) Thanks in advance. Jerome Alet ___ 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] [OT] Disagreement (was Re: Ithy trigger....)
Bill Andersson wrote: > Be that as it may, it still does not constitute a flame-war. True. We are not having a flamewar. Yet. However, as I am sure you yourself have experienced, licensing issues/discussions in Open Source contexts require no more than a few heated mails to degenerate into a Flame War. Surely you have been around long enough to see this happen (in fact you were around this list's latest big hoopla about the GPL in September of last year. 44 mails about "Zope and the GPL poison pill" in 3 days, 11 various follow ups). Allready this thread has generated 16 mails so far, not including this one. > > Imagine the consequences of having the spooky ghost of the License Horse > > roaming about... *B* > > Or worse, the fear of saying something in disagreement, for fear of being > labelled a flame war starter. Well, I disagree ;^), the issue here is not really whether it is allowed or not to disagree. Of course it is allowed to disagree (which is exactly what I am doing now), and disagreement is good: it makes you think about your opinions one time more. License issues (or wars) are just not on the topic of this list. And neither is this post, so I'll stop right now :-) /dario btw: humour was intended in my last post, even if not obvious. sorry about that. ___ 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 )