Re: [Zope] Dieter Mauer's Reference Product

2010-03-16 Thread Dieter Maurer
Dieter Maurer wrote at 2010-3-16 17:42 +0100: >Brian Brinegar wrote at 2010-3-16 10:12 -0400: >>Our university relies heavily on a Zope product based on Dieter Maurer's >>"Reference" product. Recently, we upgraded from Zope 2.9.6 to Zope >>2.11.x and found som

Re: [Zope] Dieter Mauer's Reference Product

2010-03-16 Thread Dieter Maurer
Brian Brinegar wrote at 2010-3-16 10:12 -0400: >Our university relies heavily on a Zope product based on Dieter Maurer's >"Reference" product. Recently, we upgraded from Zope 2.9.6 to Zope >2.11.x and found some changes in behavior. > >In short the Reference product creates a Symlink like pointer i

Re: [Zope] ZopeProfiler uninstall

2009-12-01 Thread Dieter Maurer
Gaute Amundsen wrote at 2009-12-1 14:33 +0100: >We have ZopeProfiler 1.72 installed on a site (Zope 2.7.5-1.fc3) that >don't need it anymore. >I've removed the folder and deleted the product, but I cant' find a way >to remove it form the controlpanel. >I notice it's been asked once before, but I ca

Re: [Zope] [Zope-Annce] ZClasses resurrected

2009-10-04 Thread Dieter Maurer
Allen Schmidt Sr. wrote at 2009-10-4 16:40 -0400: >So...we are on 2.8.10 and our biggest app on our site is a ZClass based >news object. How close will this provide functionality to just drop our >data.fs into 2.12 and have those zclasses work? I do not know. "ZClasses" have quite vast functi

Re: [Zope] Reconnection session_data to own Session.fs storage

2009-08-05 Thread Dieter Maurer
> I verified using your process that it is indeed just a folder. So I deleted > the session_folder in the root and then tried to add a ZODB mount point in the > root and it showed the session_folder was ready to be created. I made sure > that option was checked and clicked Ok. It reloaded the root

Re: [Zope] Reconnection session_data to own Session.fs storage

2009-08-04 Thread Dieter Maurer
Allen Schmidt Sr. wrote at 2009-8-4 13:45 -0400: > ... >In the ZMI, there are: > >/session_folder/ ( a regular folder ) >session_data ( Transient Object Container ) > >/session_data_manager ( Session Data Manager ) > > >All the parts seem right but its not workingsession writes wi

Re: [Zope] ZSyncer-0.71 problems

2009-07-19 Thread Dieter Maurer
Dennis Allison wrote at 2009-7-19 17:03 -0700: >Zope 2.11, Python 2.4 > ... ># EOFError ># ># Traceback (most recent call last): > ... >dest_base_info, dest_sub_info = self._getRemoteList(remote, path) >File "/opt/zope/zinstances/xxx/Products/ZSyncer/ZSyncer.py", line >1211, >in _getRemoteList >r

Re: [Zope] [Zope-dev] Zope 4.0, maybe not such a bad idea...

2009-05-26 Thread Dieter Maurer
Peter Bengtsson wrote at 2009-4-13 15:03 +0100: > - Chris, I rarely agree with you but I actually like your fearless >and provocative bashing for the sake (hopefully) of stirring up some >action. > >- Andreas, you've done a great job with Zope but let's raise the bar >and not pass judgement on peop

Re: [Zope] [Zope-dev] Zope 4.0, maybe not such a bad idea...

2009-04-12 Thread Dieter Maurer
are soon embracing censorship. Thus, should you soon no longer hear from me, you know what happened Here the complete message of Andreas (in German): > From: Andreas Jung > To: Dieter Maurer > Subject: Re: [Zope] [Zope-dev] Zope 4.0, maybe not such a bad idea... > Date: S

Re: [Zope] [Zope-dev] Zope 4.0, maybe not such a bad idea...

2009-04-12 Thread Dieter Maurer
Andreas Jung wrote at 2009-4-12 09:52 +0200: > >@Dieter: participate or be silent. I do not obey your orders. You are Zope 2 release manager and part of the Foundation board -- but you do not have command power over things outside the Zope 2 release management and the foundation. Thus, I wi

Re: [Zope] [Zope-dev] Zope 4.0, maybe not such a bad idea...

2009-04-12 Thread Dieter Maurer
Andrew Milton wrote at 2009-4-11 21:46 +1000: > ... >So your position is, the code is fine, but, the docs suck so don't use >it. Well the docs have always sucked, the zope-3 docs don't seem any >better. Perhaps the people deprecating and removing interfaces willy-nilly >should document the replace

Re: [Zope] dtml-in pagination

2009-04-10 Thread Dieter Maurer
Bobby wrote at 2009-4-7 09:58 -0700: > > previous > next > > > > > Not sure, whether you will find it useful. But, you may have a look at "http://www.handshake.de/~dieter/pyprojects/zope/book/chap3.html#c37ac15c14b4";. Search there for "4.3.5.2.3. Batch control". -- Dieter

Re: [Zope] RIP Zope 2!

2009-04-09 Thread Dieter Maurer
Tim Nash wrote at 2009-4-5 14:05 -0700: >Also, I have been critical of the zope 3 line because I love zope 2 >and it appears to me that zope 3 is killing zope 2. I share your feeling. With my current experience, the Zope 3 way to handle skins is considerably more work then the previous CMF skinni

Re: [Zope] How to add existing folder in Zope

2009-04-04 Thread Dieter Maurer
Chris Withers wrote at 2009-4-2 20:22 +0100: >Dieter Maurer wrote: >> "SkinnedFolder" (at least if you mean >> "http://www.handshake.de/~dieter/pyprojects/zope/index.html#bct_sec_4.7";) >> makes "CMFCore"'s "SkinsTool" available (w

Re: [Zope] [Zope-dev] Zope 4.0, maybe not such a bad idea...

2009-04-04 Thread Dieter Maurer
Chris Withers wrote at 2009-4-2 21:29 +0100: >Andreas Jung wrote: >> Andrew & others have been working on this issue at the sprint. There is >> consensus that www.zope.org must be turned into landing page with some >> mission statement and then links to the related subprojects. The current >> zope.

Re: [Zope] LocalFS unsupported and doesn't work without patching...

2009-04-02 Thread Dieter Maurer
Chris Withers wrote at 2009-4-2 20:24 +0100: >Dieter Maurer wrote: >> I am very happy about stable packages because I often extend them. >> >> For example, I have extended "LocalFS" to allow configuration of >> its instances via environment variables. This all

Re: [Zope] Migrated from Zope 2.7.8 to 2.10; how to fix "Unauthorized: You are not allowed to access 'standard_html_header' in this context" error?

2009-03-29 Thread Dieter Maurer
Aleksey Tsalolikhin wrote at 2009-3-28 21:57 -0700: > I recently migrated from Zope 2.7.8 to 2.10 and am now seeing >this error in my event.log: > > >2009-03-28T21:15:52 ERROR root Exception while rendering an error message >Traceback (most recent call last): > File "/usr/lib/zope/lib/python/OFS/S

Re: [Zope] How to add existing folder in Zope

2009-03-29 Thread Dieter Maurer
Andreas Jung wrote at 2009-3-28 14:13 -0500: > ... >Installing Plone in such a case is only the solution if one has no better >idea about doing things. The Filesystem Directory View functionality >is available out-of-the-box through CMF (which is much smaller than Plone). >There was also something

Re: [Zope] How to add existing folder in Zope

2009-03-29 Thread Dieter Maurer
thedag...@gmail.com wrote at 2009-3-28 00:16 +: > ... >LocalFS has [not] been updated since 2006. > >There is nothing in the zope world >that is as well maintained as plone. Sorry. I would like to stress that stable packages (those that do not need to be continously updated) are in fact a qu

Re: [Zope] How to add existing folder in Zope

2009-03-27 Thread Dieter Maurer
amol kumbhar wrote at 2009-3-27 18:39 +0530: >Actually I want to use SmartClient for my web site and for this I have to >add the SmartClient Library folder into zope so using this I can write JS >which include these libraries. If you have a web server before Zope (recommended for production use),

Re: [Zope] help with running a dtml method

2009-03-27 Thread Dieter Maurer
Dvir Bar-lev wrote at 2009-3-26 10:12 +0200: >I have a site with the following folder structure in zope: >Dvir >WebSite > contentPages > >I have and index_html in the WebSite folder, in it I call a dtml method >that's in the contentPages folder named overview_html, > >in the same fold

Re: [Zope] Importing .zexp files

2009-03-27 Thread Dieter Maurer
Bobby wrote at 2009-3-25 13:17 -0700: >I___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/m

Re: [Zope] Regarding ZODB

2009-03-25 Thread Dieter Maurer
amol kumbhar wrote at 2009-3-25 10:28 +0530: >I am trying to execute following code > >*import ZODB >from Persistence import Persistent For Zope 2.8, the package/module structure has been drastically changed. What used to be in "Persistence" is now in "persistent". I.e. you now use "from persiste

Re: [Zope] FTP server problem

2009-03-25 Thread Dieter Maurer
Gareth Allen wrote at 2009-3-23 12:27 +0200: >I'm experiencing a strange problem. I've enabled FTP access to my Zope >instance, but when I try and login it throws an exception: > >2009-03-23T11:14:42 INFO ZServer Successful login. >-- >2009-03-23T11:15:07 ERROR ZServer uncaptured python except

Re: [Zope] Overriding DateTime

2009-03-25 Thread Dieter Maurer
Tim Knapp wrote at 2009-3-23 18:21 +1300: >I would like to override the DateTime.DateTime class within my >functional tests. I have tried mocking (via mocker) and injecting the >subclassed DateTime class into sys.modules (results in a >TraversalError). The fartherest I've gotten is to set DateTime.

Re: [Zope] re ad-only-database

2009-03-13 Thread Dieter Maurer
Jean Jordaan wrote at 2009-3-12 04:11 -0700: >The only place I find a clue about 'read-only' is in >.../zope2/lib/python/ZODB/component.xml after grepping (after reading >Dieter's message) That's what you should use for your "read-only" databases. It describes a configuration option for your "sto

Re: [Zope] fstest reports time-stamp reduction, what does it mean and should I be worried?

2009-03-09 Thread Dieter Maurer
Chris Withers wrote at 2009-3-8 12:26 +: >Nope, Zope 2.9.8. > >> In older ZODB versions, this should happen when your clock >> jumped back into the past. > >The clocks on both the storage servers are NTP synched and I'm pretty >sure they've not jumped back at any point... Another (more seriou

Re: [Zope] sending a encrypted login URL

2009-03-05 Thread Dieter Maurer
Joseph Thomas (s) wrote at 2009-3-5 14:01 -0600: >Thanks, could you elaborate a bit, I'm somewhat new zope/plone: > >I assume we'd need a shared key on both on ore j2ee server and zope "EVP" (documented in the *nix man pages) supports both symmetical as well as unsymmetrical encryption. When you u

Re: [Zope] Reconnection session_data to own Session.fs storage

2009-03-05 Thread Dieter Maurer
Allen Schmidt Sr. wrote at 2009-3-5 10:34 -0500: >Somehow, and not sure how, our session_data objects got deleted. No one >admits doing it so no idea what happened. >I recreated the objects with the same IDs and even setup the ZODB mount >point to point to the right parts. But our SESSION calls w

Re: [Zope] fstest reports time-stamp reduction, what does it mean and should I be worried?

2009-03-05 Thread Dieter Maurer
Chris Withers wrote at 2009-3-5 11:28 +: >For one customer, I have a secondary storage server that copies repozo >backups, restores them and then runs fstest over the restored result >once every few hours. >(I'd like to move to zeoraid, but it's not quite there yet!) > >On a few occasions rec

Re: [Zope] sending a encrypted login URL

2009-03-05 Thread Dieter Maurer
Joseph Thomas (s) wrote at 2009-3-4 10:29 -0600: >We'd like to construct a zope login URL of the form on another server: >http://zope.domain:port/context/logged_in?__ac_name=uzz&__ac_passwor >d=xxx&submit=Log+in >where the ac_name and ac_password parameters are encrypted using zope >public

Re: [Zope] Help with my first steps

2009-02-21 Thread Dieter Maurer
deconya wrote at 2009-2-20 15:14 +0100: >Im new in this list and I need help for my first steps. Im received a server >with zope installed to administer 3 webs but one has the problem that fails >the configuration to establish the initial page. I fear you need some background reading to understand

Re: [Zope] Filesystem Directory View Child Folders

2009-02-21 Thread Dieter Maurer
Garito wrote at 2009-2-18 13:13 +0100: >I have a filesystem directory view that has 2 child folders > >But when I switch to debug mode off the 2 folders disappears > >Is this the normal FDV behaviour or I have any kind of problem? No. There should only be a single difference between debug and no-

Re: [Zope] Zope2 and XMLRPC methods

2009-02-21 Thread Dieter Maurer
Rowan Woodhouse wrote at 2009-2-17 21:36 +: > ... >I'm having some trouble getting XML-RPC methods going on Zope2/Five. >I've got the following in my configure.zcml: The Zope 3 xmlrpc implementation may not work with Zope2. Zope2' xmlrpc implementation is incredibly hard (and broken): it int

Re: [Zope] Disabling ZEO file cache?

2009-02-04 Thread Dieter Maurer
Morten W. Petersen wrote at 2009-2-2 18:23 +0100: >how does one go about in the configuration file to disable the >ZEO file-caching feature? What is the ZEO file-caching feature? When you mean the persistent ZEO client cache feature, then "ZODB/component.xml" --> "zeoclient" tells you about all a

Re: [Zope] ZopeProfiler and Kcachegrind, how to convert statistics files ?

2009-01-28 Thread Dieter Maurer
Jean-Michel FRANCOIS wrote at 2009-1-28 16:56 +0100: >Is someone has try to use ZopeProfiler with KCacheGrind ? I would like >to try KCachegrind because i found xdot very slow. > >I have started to read the code of ZopeProfiler and i have discovered >the world of profiling file format. It seems tha

Re: [Zope] how to set anonymous access to authorized content?

2009-01-12 Thread Dieter Maurer
Jaroslav Lukesh wrote at 2009-1-12 11:35 +0100: >>>But what to do with ZSQL methods? I was create Python script called >>>ZSQL_query: > >Hi all, > >so the only one functional and clean method is to use web_client. > >External method: > >from ZPublisher import Client >def wc_list(xmyparam='URL param

Re: [Zope] how to set anonymous access to authorized content?

2009-01-10 Thread Dieter Maurer
Jaroslav Lukesh wrote at 2009-1-9 19:06 +0100: > ... >But what to do with ZSQL methods? I was create Python script called >ZSQL_query: > >## Script (Python) "ZSQL_query" > ... >##parameters=my_string > >result=context.folder_few_levels_above.ZSQL_query(my_string=my_string) >return len(result)

Re: [Zope] how to set anonymous access to authorized content?

2009-01-06 Thread Dieter Maurer
Jaroslav Lukesh wrote at 2009-1-6 11:49 +0100: >I need to set-up page with anonymous access with some informations from >site, where are authorized access only. This page call dtml method >list_robot from authorized site, from where are called other authorized >methods and documents. From author

Re: [Zope] Storing unicode in ZODB objects

2008-12-16 Thread Dieter Maurer
Thibaud Morel l'Horset wrote at 2008-12-15 23:59 -0500: >One more thing... as far as I can tell there is still a need to set the >header through a nocall if try to display your file content as part of a >larger page that is generated with out of the box Page Templates or DTML >methods. The "index_

Re: [Zope] Storing unicode in ZODB objects

2008-12-15 Thread Dieter Maurer
Andreas Jung wrote at 2008-12-14 16:00 +0100: >On 14.12.2008 15:44 Uhr, Thibaud Morel l'Horset wrote: >> Hey AJ, >> >> Thanks. Full traceback below. Regarding storing files, I meant the File >> Zope Object, as added by the following API call: >> newFolder.manage_addFile(id,title=title, content_type

Re: [Zope] Unknown directive for xmlrpc

2008-12-13 Thread Dieter Maurer
Bertus Van der Linden wrote at 2008-12-12 15:32 -0700: >zope.configuration.xmlconfig.ZopeXMLConfigurationError: File >"/home/nolbert/miqra/mbm-dev-buildout2/parts/instance/etc/site.zcml", line >15.2-15.23 >ZopeXMLConfigurationError: File >"/home/nolbert/miqra/mbm-dev-buildout2/products/worldcoo

Re: [Zope] The proxy server received an invalid response from an upstream server.

2008-12-13 Thread Dieter Maurer
rugbert wrote at 2008-12-12 09:33 -0800: > >My client's zope has two back ends, /manage and /tools. tools is the one with >the more user friendly interface and manage is the utilitarian one. > >When users goto /tools tho, and click the "assets" folder the site times >outs with this: >[code] >Proxy

Re: [Zope] single zsql on multiple tables or multiple zsql s

2008-12-13 Thread Dieter Maurer
indrajit926 indra wrote at 2008-12-12 18:21 +0530: >Now i want to improve performance of project.So i thought to reduce number >of zsqls,expecting it may improve performance. The runtime performance is only minimally affected (ZSQL methods are small objects). The structure of your ZSQL methods ma

Re: [Zope] How manage error with zsql

2008-12-11 Thread Dieter Maurer
Miguel Beltran R. wrote at 2008-12-9 13:42 -0600: >is possible have a general except and inside show what type is? >in dtml was > >... > > type: value: > According to the documentation (--> embedded online documentation (aka "Help") --> Zope Help --> DTML Reference --> try), this is possible.

Re: [Zope] How manage error with zsql

2008-12-09 Thread Dieter Maurer
Miguel Beltran R. wrote at 2008-12-8 21:01 -0600: >I trying the next, but not work say " invalid syntax (Script (Python), line >11)" > >2008/12/6 robert rottermann <[EMAIL PROTECTED]> > >> hi, >> >> I think you should write in a python script: >> >> try: >> result = context.insert_data.zsql >> m

Re: [Zope] pb with attach file

2008-12-08 Thread Dieter Maurer
[EMAIL PROTECTED] wrote at 2008-12-8 11:43 +0100: > ... >Few months ago, I send my problem with attach file with Zope 2.6 and higher. >How I have no solution, I send again my problem which is described after > > >Thanks to help me > >Frederique > >--- > >I have created a zclass

Re: [Zope] Multiple zope instances using the same storage

2008-12-08 Thread Dieter Maurer
Mark Gibson wrote at 2008-12-6 11:22 -0700: >I have an unusual setup. I have 4 distinct Zope instances (4 seperate >Data.fs'). Each Data.fs is identical - Data is kept in a RDBMS. I have >a product I need to install that stores data in the ZODB. This data is >stored in one folder. > >Now, I

Re: [Zope] How manage error with zsql

2008-12-06 Thread Dieter Maurer
robert rottermann wrote at 2008-12-6 17:15 +0100: >I think you should write in a python script: > >try: > result = context.insert_data.zsql I expect (at least) two errors here. "context.insert_data()" has a chance to work. > msg = 'data inserted' >except ZeroDivisionError: > msg = 'ZeroDivisi

Re: [Zope] problem with ms sql server

2008-12-02 Thread Dieter Maurer
Miguel Beltran R. wrote at 2008-12-1 11:13 -0600: >I have a zsql where made a UPDATE and INSERT, I need know when happen a >error to show. >I using pyodbc 2.0.58, zpyodbcda 1.0.6 and ms sql server 2000 > >[zsql with error after render: actualiza_info ] >SET XACT_ABORT ON >BEGIN TRANSACTION >UPDATE

Re: [Zope] POSKeyError

2008-12-02 Thread Dieter Maurer
Rupesh P Raj wrote at 2008-12-2 13:46 +0530: >I am getting the following POSKeyError. Can anyone please tell me, what is >the reason for this error, and how can I rectify it: > >2008-12-02T03:16:11 ERROR ZODB.Connection Couldn't load state for 0x18fb01 >Traceback (most recent call last): > File "/

Re: [Zope] database conflict error on startup - disabling Five

2008-12-01 Thread Dieter Maurer
Dylan Jay wrote at 2008-12-1 10:22 +1100: > ... >> You are right. Almost surely, you see a "Five" bug: "Five", too, should >> respect "enable-product-installation". >> >> You can see the right transaction handling in >> "OFS.Application.install_product' -- somewhere near the buttom of this >> func

Re: [Zope] database conflict error on startup - disabling Five

2008-11-30 Thread Dieter Maurer
Dylan Jay wrote at 2008-11-30 08:46 +1100: > ... >> When you have a multi ZEO client setup, you should have a single >> client distinguished responsible to keep "Control_Panel/products" >> up to date. There is a configuration option for this ("*enable*product*"). >> Set it to "on" in this distingui

[Zope] erroneous use of "aq_parent" (was: Where is my BtreeFolder stored?)

2008-11-29 Thread Dieter Maurer
Mr SZ wrote at 2008-11-27 07:09 -0800: > ... >def test4(): >if 'suftest' in aq_parent.objectIds(): >return 'True' > > > >class OOBStuff(BTreeFolder2): > meta_type ='OOBStuff' > def __init__(self, oid,dict_to_add): > super(OOBStuff, self).__init__(oid) >

Re: [Zope] database conflict error on startup - disabling Five

2008-11-29 Thread Dieter Maurer
djay75 wrote at 2008-11-26 15:38 -0800: > >Hi, I'm getting the following error during startup of a zeo with 3 instances. >It doesn't happen with one instance. It's zope2.9.8, plone 2.5 and the Five >1.4 svn branch. > >I thought the Five svn branch might help based on this thread >http://archives.fr

Re: [Zope] repairing zodb in 2.10.5

2008-11-19 Thread Dieter Maurer
baiewola wrote at 2008-11-18 13:48 -0800: >I'm running zope 2.10.5 on Macintosh OS X Leopard Server and I see that >several objects seem to be corrupted, as evidenced by poskey errors and >the fact that I can no longer access or delete them. I have found web >sites suggesting that I use fsrecover.p

Re: [Zope] FunctionalTestCase commits transactions

2008-11-16 Thread Dieter Maurer
Peter Bengtsson wrote at 2008-11-5 15:14 +: > ... >> When I wrote a functional test browser (years before "zope3"), >> I emulated the Zope publisher rather than calling it directly >> in order to have control how transactions are handled. >> >> Especially, I used subtransactions instead of top

Re: [Zope] FunctionalTestCase commits transactions

2008-11-04 Thread Dieter Maurer
Ross Patterson wrote at 2008-11-3 16:04 -0800: > ... >If memory serves, a *functional* test fixture calls the Zope publisher >when a testbrowser request is made. The publisher opens a new >transaction, as it should. Really? When I wrote a functional test browser (years before "zope3"), I emulate

Re: [Zope] Zope failing to load causing 503 error

2008-10-19 Thread Dieter Maurer
rugbert wrote at 2008-10-17 09:33 -0700: > >I migrated a server from one machine to another (using this thread: >http://ubuntuforums.org/showthread.php?t=35087) and while most everything >transferred over correctly (some permission settings didnt) apache isnt %100 >working. Does your Zope work cor

Re: [Zope] Read File using python script

2008-10-15 Thread Dieter Maurer
vaibhav pol wrote at 2008-10-15 13:01 +0530: >I create folder in zope where I add one text file .Now i want to read the >content of the file >using the script python not using external script how can i do that . For an "OFS.Image.File" object, the "str" function returns its content: "str(file)".

Re: [Zope] changing permissions in python

2008-10-14 Thread Dieter Maurer
Garry Saddington wrote at 2008-10-13 08:07 +0100: >I have been searching everywhere for the correct syntax to use to change >permissions on a dtml method from a python script. I know it could be using >manage_changePermissions() but exactly how can I call it on any method. Do not use "manage_cha

Re: [Zope] Old zope instance migration to Ubuntu 8.04?

2008-10-14 Thread Dieter Maurer
Mike Elliott wrote at 2008-10-11 15:42 -0700: > ... >I have a full backup of the system and would be quite content to get >it running under the current Ubuntu zope distribution on the new >server but would like some advice as to how best to proceed. Simply >putting the existing zope directory str

Re: [Zope] [Off-Topic] KSS ugly? (was: Re: use path function on a python script)

2008-10-14 Thread Dieter Maurer
Garito wrote at 2008-10-12 17:00 +0200: > ... >This is internet, we don't need any kind of intermediary to achieve our >needs. Really? Yo *do* need intermediaries -- lots of them: browser, network, routers, DNS, You may not need KSS -- but it may help you for some tasks. If it does not help

Re: [Zope] use path function on a python script

2008-10-14 Thread Dieter Maurer
Garito wrote at 2008-10-12 17:13 +0200: >This is like KSS question: why we resolve a question with the first way we >find? I do not think that this was the case for KSS. When KSS was developped, there already have been lots of solutions -- but not satisfactory ones when you want only small differ

Re: [Zope] use path function on a python script

2008-10-11 Thread Dieter Maurer
Garito wrote at 2008-10-11 16:39 +0200: >Did you imagine another way to do what I need to do? I have not followed intensively "what you need to do". Thus, what follows may not be adequate. When I remember right, then a PageTemplate's namespace is passed on to a "Script (Python)" when this script

Re: [Zope] [Off-Topic] KSS ugly? (was: Re: use path function on a python script)

2008-10-11 Thread Dieter Maurer
Garito wrote at 2008-10-11 16:37 +0200: >In my country, Spain, there are a very high difference between the price it >cost a tomato when you buy it to the farmer that if you buy it on the store. >Why? Because of the intermediaries Sure. But sometimes intermediaries are helpful. I, e.g., would be

Re: [Zope] [Off-Topic] KSS ugly?

2008-10-11 Thread Dieter Maurer
Andreas Jung wrote at 2008-10-11 06:05 -0400: >On 11.10.2008 2:21 Uhr, Dieter Maurer wrote: >> Garito wrote at 2008-10-8 14:22 +0200: >>> I'm agree with you, Tino. Plone has a lot of ugly features (as KSS, for >>> instance) >> >> Why is KSS ugly? &g

Re: [Zope] Zope hangs

2008-10-11 Thread Dieter Maurer
Nico Grubert wrote at 2008-10-9 10:17 +0200: > ... >> If your system gets slow but still occasionally responds, you can >> use "ZopeProfiler" to find out, where the time is spend. >> Ensure to use "real time" as the timer (not cpu time). > >Hi Dieter > >thank you very much for the information. > >T

Re: [Zope] use path function on a python script

2008-10-11 Thread Dieter Maurer
Garito wrote at 2008-10-8 10:46 +0200: >How can I import the TALES funcion path on a python script? You cannot -- while it looks like a normal function, it not really is one. "path" gets a string but interprets this string with knowledge about the template's namespace. This shows you that some ma

Re: [Zope] VHM / traverse subpath interaction bug?

2008-10-10 Thread Dieter Maurer
Chris Withers wrote at 2008-10-10 15:56 +0100: > ... >Well okay, but can Zope 2's VHM be re-implemented in such a way as to >not need the silly hidden traversal step? As I have explained: It could -- but probably would not do the correct thing when you put objects with traversal magic between "Vi

[Zope] [Off-Topic] KSS ugly? (was: Re: use path function on a python script)

2008-10-10 Thread Dieter Maurer
Garito wrote at 2008-10-8 14:22 +0200: >I'm agree with you, Tino. Plone has a lot of ugly features (as KSS, for >instance) Why is KSS ugly? Reading the documentation, I found it quite attractive -- Dieter ___ Zope maillist - Zope@zope.org http:

Re: [Zope] change password through script messes up session

2008-10-06 Thread Dieter Maurer
Laurence Rowe wrote at 2008-10-6 09:52 -0400: >IIRC CookieCrumbler just stores the username:password on the __ac >cookie. You probably need to force it to set another cookie when you >change the password, or move to a different implementation like >plone.session that uses signed cookies and avoi

Re: [Zope] VHM / traverse subpath interaction bug?

2008-10-04 Thread Dieter Maurer
Chris Withers wrote at 2008-10-3 15:32 +0100: >Dieter Maurer wrote: >>> Worse yet, if you go to: >>> >>> http://localhost:8080/VirtualHostBase/https/example.com:443/test/VirtualHostRoot/_vh_something/x/y/z >>> >>> ...you get: >>> >>&g

Re: [Zope] Zope hangs

2008-10-03 Thread Dieter Maurer
Nico Grubert wrote at 2008-10-2 10:13 +0200: > > These entries should not be the one that cause your problems > > (they are not computationally expensive). > > Do you see other entries as well? > >Thank you very much for your answer, Dieter. >There are 2 entries from in the DeadlockDebugger's outpu

Re: [Zope] VHM / traverse subpath interaction bug?

2008-10-03 Thread Dieter Maurer
Chris Withers wrote at 2008-10-2 08:13 +0100: >I've tried this on Zope 2.8-2.11.1 and it behaves the same on all but >feels like a bug. I wonder if anyone else agrees or, better yet, knows >what's going on here... > >So, add a Script (Python) called test in the root on a Zope instance >running o

Re: [Zope] anyone seen these errors with Zope 2.11.1?

2008-10-03 Thread Dieter Maurer
Chris Withers wrote at 2008-10-2 07:57 +0100: >Dieter Maurer wrote: >> Chris Withers wrote at 2008-9-30 13:45 +0100: >>> I recently ugpraded to Zope 2.11.1 and now get the following errors >>> every so often: >>> ... >>> Module Products.PageT

Re: [Zope] Moving zope data.fs

2008-10-01 Thread Dieter Maurer
Jakob Carlsson wrote at 2008-9-30 21:39 +0200: >I have two Data.fs files and the Products directory from a server that was >running two Plone websites (don't know anything more about Zope or Plone >versions than it was Plone 2.5.x) that I'm trying to get up and running on >the new server with no ac

Re: [Zope] concerns with nfs

2008-10-01 Thread Dieter Maurer
David Bear wrote at 2008-9-30 09:32 -0700: >Since I have started using vmware ESX as a hosting platform for zope, >I've been mostly happy. However, I am wondering if I should have any >concerns with storing the zodb on nfs. All our file systems on ESX are >nfs mounted and lately we have had some in

Re: [Zope] anyone seen these errors with Zope 2.11.1?

2008-09-30 Thread Dieter Maurer
Chris Withers wrote at 2008-9-30 13:45 +0100: >I recently ugpraded to Zope 2.11.1 and now get the following errors >every so often: > ... > Module Products.PageTemplates.unicodeconflictresolver, line 69, in >resolve > Module zope.publisher.http, line 931, in getPreferredCharsets >ValueError:

Re: [Zope] Zope hangs

2008-09-30 Thread Dieter Maurer
Nico Grubert wrote at 2008-9-30 11:49 +0200: >in the last days my Zope server seems to hang and the CPU is almost >every time at 100 %. When your CPU is almost at 100 % over an extended period, then you do not have a typical "hanging" problem but rather something like a busy loop. >I installed D

Re: [Zope] Strange redirect problem -- can someone assist?

2008-09-30 Thread Dieter Maurer
Dennis Allison wrote at 2008-9-28 22:56 -0700: > ... >My problem: In one form for one submit button, the redirect appears to >fail. The action is performed but the page to which the action redirects >upon completion is never displayed. Other actions from the same form work >fine. We have been t

Re: [Zope] A question about __setstate__ in Shared/DC/ZRDB/Connection.py

2008-09-30 Thread Dieter Maurer
Marco Bizzarri wrote at 2008-9-20 08:41 +0200: > ... >I'm working right now with Zope 2.8, which I don't think is running on >that version of ZODB; is is possible to backport such patch to Zope >2.8? I'm not asking to do the work, I'm just asking if, in theory, it >is possible to do it, or if it re

Re: [Zope] [Further investigations] Re: A question about __setstate__ in Shared/DC/ZRDB/Connection.py

2008-09-19 Thread Dieter Maurer
Tres Seaver wrote at 2008-9-19 10:15 -0400: > ... >There are two problems here: > > - We need a way to keep the Pdata objects from evicting "precious" > objects; ideally, Pdata instances would never be added to the cache > at all. I worked a bit on a spike in which the Pdata iterator part >

Re: [Zope] [Further investigations] Re: A question about __setstate__ in Shared/DC/ZRDB/Connection.py

2008-09-19 Thread Dieter Maurer
Tres Seaver wrote at 2008-9-19 09:33 -0400: > ... >There is a special 'STICKY' state which prevents ghostifying, but it >can't be set from Python code. You could, however, set '_p_changed' on >the connection at the beginning of the method, and then delete it at the >end: changed objects can't be

Re: [Zope] A question about __setstate__ in Shared/DC/ZRDB/Connection.py

2008-09-19 Thread Dieter Maurer
Marco Bizzarri wrote at 2008-9-19 09:23 +0200: > ... >I assume therefore that the ZPsycopgDA object has been "ghostified", >during the transaction. But this "assumption" is not supported by any >evidence. In particular, it is not supported by my knowledge of the >internal behaviour of ZODB on objec

Re: [Zope] [ZODB-Dev] Zope memory usage

2008-09-18 Thread Dieter Maurer
Manuel Vazquez Acosta wrote at 2008-9-17 20:05 -0400: >Alan, > >I'm replying to the Zope list also, because this issue is perhaps >related to other components there. > >I'm running into the same situation: The python process running my Plone >site is steadyly growing. > >I'm using Zope2.9.8-final (

Re: [Zope] how suppress http based authentication window of zope

2008-09-17 Thread Dieter Maurer
vaibhav pol wrote at 2008-9-17 12:52 +0530: > As per my information zope provide http based authentication >and not support cookies based authentication . > I used >CookieCrumbler,exUserFolder,fcForum Products but it not so useful and >robust . Why do you think "CookieCrumber" is no

Re: [Zope] 'str' object has no attribute 'other'

2008-09-17 Thread Dieter Maurer
chaouche yacine wrote at 2008-9-16 01:36 -0700: >I also tried to inherit Acquisition.Implicit, but then, I got yet another >error : > >... >* Module Products.PageTemplates.PageTemplate, line 90, in pt_render > >* Module Products.PageTemplates.PageTemplateFile, line 73, in pt_getCont

Re: [Zope] Security for objects being called

2008-09-17 Thread Dieter Maurer
Thibaud Morel l'Horset wrote at 2008-9-15 19:44 -0400: > I'm trying to figure out how to prevent certain zope objects from being >called directly but allow them to be called from another object. > > Here is an example: > You have a ZPT page, let's originally call it 'test' > test calls a Script

Re: [Zope] DirectoryStorage product - zope won't start

2008-09-10 Thread Dieter Maurer
Thomas Bennett wrote at 2008-9-9 13:12 -0400: >using >python 2.4.5 >Zope 2.11.1-final >DirectoryStorage 1.1.19 > > >First, is there a more preferable product to use to serve files, mostly PDF, >from the file system with Zope? > >I suspect lock_file.py has changed since the DirectoryStorage prod

Re: [Zope] How do I write to a text file from Python?

2008-09-09 Thread Dieter Maurer
Jakob Schou Jensen wrote at 2008-9-9 08:27 +0200: >Where is the 'manage_upload' function documented? In the source ("OFS.Image.File.manage_upload"). def manage_upload(self,file='',REQUEST=None): """ Replaces the current contents of the File or Image object with file.

Re: [Zope] Using page templates to generate large XML files

2008-09-06 Thread Dieter Maurer
Marco Bizzarri wrote at 2008-9-6 08:26 +0200: >I need to generate a large XML file inside a Zope application; the >file is for backup purposes, so it is stored on the server and can be >downloaded later with whatever suitable tool. > >The data are taken from a database, and then they are used to cr

Re: [Zope] How do I write to a text file from Python?

2008-09-02 Thread Dieter Maurer
Jakob Schou Jensen wrote at 2008-9-2 09:25 +0200: >By file object I meant the "OFS.Image.File" kind. I had two problems >creating and modifying the file (at least). The first was that the >manage_addFile() function that you mention seemed to insist on a os-file >like object for the "file" parameter

Re: [Zope] Zope request/response question ...

2008-09-01 Thread Dieter Maurer
Ajay Deshpande wrote at 2008-9-1 13:42 +0530: >I am trying to build a mechanism which cross-checks requests and responses >to fnd out if any requests got dropped in a ZEO scheme. Is there a Zope2.x >product that analyzes requests and heir corresponding responses. There is the "logger trace" sectio

Re: [Zope] How do I write to a text file from Python?

2008-08-30 Thread Dieter Maurer
Jakob Schou Jensen wrote at 2008-8-29 20:11 +0200: >I would like to create a File object in the and store some text in it from a >Python script. It depends what you mean by "File object". If you mean a Python "file", sitting somewhere on your file system, then Andreas' advice is helpful. If you

Re: [Zope] Writing a testcase for a Plone 2.5 product - ztc.installPackage isn't available

2008-08-28 Thread Dieter Maurer
Israel Saeta PĂ©rez wrote at 2008-8-23 18:57 +0200: > ... >My question is: > Is possible to install eggified products in zope-2.9.8 using ZopeTestCase? I think that eggified products are automatically recognized only with Zope 2.11 -- even in standard (non test) operation. -- Dieter ___

Re: [Zope] Need some help to get rid of an InvalidObjectReference exception

2008-08-23 Thread Dieter Maurer
chaouche yacine wrote at 2008-8-20 05:21 -0700: > ... >Ok here's how I did to finally fix it : > >* create a new Transient Object Container (sessionTOC) at root >* create a new Session Data Manager (sessionDM), with the following settings : >** Id : sessionDM >** Transient Object Container Path : /

Re: [Zope] Need some help to get rid of an InvalidObjectReference exception

2008-08-23 Thread Dieter Maurer
chaouche yacine wrote at 2008-8-20 01:52 -0700: > ... >How do I know to which ZODB a specific object belongs to ? A persistent object has the attribute "_p_jar". This attribute is "None" when the object was not loaded from the ZODB and otherwise, it is the ZODB connection which has loaded it. A Z

Re: [Zope] Need some help to get rid of an InvalidObjectReference exception

2008-08-19 Thread Dieter Maurer
chaouche yacine wrote at 2008-8-18 09:50 -0700: >Need some help to get rid of an InvalidObjectReference exception >In my zope product, when I try to put some specific object in the session, I >get this : > >2008-08-18T14:51:02 ERROR(200) SiteError >http://www.afdas.com:8091/noyauafdas/tests/testA

Re: [Zope] Trying ZODB with a background in RDBMS

2008-08-17 Thread Dieter Maurer
Chris Withers wrote at 2008-8-16 23:09 +0100: > ... >How important is it that they're strictly incremental? >If it is, you may want to look at the BTrees.Length module. "BTrees.Length" is unfit for the generation of unique ids, as it may hand out the same id to concurrent transactions. Other solu

  1   2   3   4   5   6   7   8   9   10   >