Re: [Zope] (also) ConflictError from Products.Transience.Transience.Increaser

2010-08-04 Thread Maciej Wisniowski
Chris Withers pisze: > Maciej Wisniowski wrote: >> You may try to incerase session_resolution_seconds (eg. to 300) at >> your zope.conf to get rid of these conflict errors. > > Is that a root zope.conf setting or does it live in some special section? > It is a root settin

Re: [Zope] (also) ConflictError from Products.Transience.Transience.Increaser

2010-08-04 Thread Maciej Wisniowski
ke transience machinery work. You may try to incerase session_resolution_seconds (eg. to 300) at your zope.conf to get rid of these conflict errors. -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope **

[Zope] Zope 2.8.4 - ZEO ClientStorage cache problem

2010-04-07 Thread Maciej Wisniowski
Hi! I have a problem with my instances of Zope 2.8.4: recently they started to run slowly. Restarting doesn't help much. After observing Zope threads with DeadlockDebugger we found that very often threads are stuck while trying to access to ZEO cache file. We have ZEO server and 2 ZEO clients.

Re: [Zope] Weird hangs on zope/plone.

2007-10-09 Thread Maciej Wisniowski
so check if some external resources like LDAP are not restarted/backed up or sth. like that at this time, or before (eg. there is a backup at night that causes 'something' wrong for connections from your zope and your users start working since 8:00 - thats when you se

Re: [Zope] Weird hangs on zope/plone.

2007-10-09 Thread Maciej Wisniowski
g more) to check this next time happen? Use DeadlockDebugger and if this doesn't help try: http://www.zopelabs.com/cookbook/1073504990 -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross

Re: [Zope] How to upgrade Python in older Zope?

2007-09-11 Thread Maciej Wisniowski
ntries from ZODB and make it smaller. Of course create a backup before ;) -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.

Re: [Zope] UTF encoding problem w/ ZPT's (No, not the usual :)

2007-08-30 Thread Maciej Wisniowski
ed on the > assumption that the string -> unicode difference might come from the > encoding of the PT itself? > Which Zope version do you have and are you sure your versions are same in both environments? -- Maciej Wisniowski ___ Zo

Re: [Zope] Can t start Zope

2007-08-28 Thread Maciej Wisniowski
o? ;) As Andreas said previous error is possibly due to broken installation. Check if you have AccessControl.Role and if so, then check if your python/site-packages doesn't contain another one eg. from Zope3. -- Maciej Wisniowski ___ Zope mail

Re: [Zope] Conflict errors

2007-07-27 Thread Maciej Wisniowski
> Could anyone suggest whats happening here that cause this error. Look at list archives. You may try to incerase session-resolution-seconds to 300 in your instances zope.conf and see if there is less of these errors. BTW. Zope-DB is about Zope and relational databases only. -- Mac

Re: [Zope] Extracting all files from Zope DB

2007-07-26 Thread Maciej Wisniowski
' is instance of class 'File'. Some of these objects have methods that allow them to 'answer' to FTP requests, and you can see them in your FTP client. If some objects are not 'FTP enabled' you will not be able to use

Re: [Zope] Site Error page

2007-07-22 Thread Maciej Wisniowski
> BlankIs there any way to update the Zope's error page that appears during any > Site error with a different content? > Any help is appreciated in advance. Change standard_error_message object (located at root folder - visible via ZMI) -- Mac

Re: [Zope] UnicodeDecodeError in Zope 2.10.4 (upgrade from 2.8.4)

2007-07-17 Thread Maciej Wisniowski
s; sys.getdefaultencoding() > 'ascii' I already realized same thing and used sitecustomize.py with sys.setdefaultencoding('utf-8') as a quick fix. This works but is not nice solution. I rather expected Zope 2.10 resolver to deal with this. -- Maciej Wisniowski _

Re: [Zope] UnicodeDecodeError in Zope 2.10.4 (upgrade from 2.8.4)

2007-07-17 Thread Maciej Wisniowski
> If the documented hints don't work, please submit a bugreport > with a reproducable testcase in form of a unittest. Bug submitted with tests attached at: http://www.zope.org/Collectors/Zope/2339 -- Maciej Wisniowski ___ Zope mailli

Re: [Zope] UnicodeDecodeError in Zope 2.10.4 (upgrade from 2.8.4)

2007-07-17 Thread Maciej Wisniowski
15 default-zpublisher-encoding is set to utf-8 > In order to deal with UnicodeDecodeErrors in a reasonable way, > we added a configurable Unicode conflict resolver. As I said before resolver is not even called when using 'structure' keyword. -- Maciej Wisniowski ___

[Zope] UnicodeDecodeError in Zope 2.10.4 (upgrade from 2.8.4)

2007-07-17 Thread Maciej Wisniowski
et to true in 2.10.4 while oryginally in 2.8.4 it was false. This caused that tales expressions disappeared from ZPTs under 2.10.4. I've written a script that explicitly set expand=0 to all ZPT instances in Zope 2.8.4 and then, after migration, everything is OK. -- Maciej Wisniowski

Re: [Zope] Problem w/ ZMySQLDA

2007-07-16 Thread Maciej Wisniowski
> > > Furthermore, mytop shows the user is hanging: > 30 mysqluser localhost mrtableclo 473 Sleep > > What should I do next to troubleshoot this? Try deadlockdebugger to see what is happening -- Maciej Wisniowski ___

Re: [Zope] Logon process

2007-07-06 Thread Maciej Wisniowski
cation etc. You may exchange some of them to suit your needs and write your own ones. -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http:/

Re: [Zope] Logon process

2007-07-05 Thread Maciej Wisniowski
ink you should rather take a look at PAS - PluggableAuthService and possibly just write your own plugin. There is Zope-PAS mailing list too. You may take a look at docs/ and interfaces in this package. Default PAS plugins include ZODB users storage and cookie au

Re: [Zope] KeyErrors in Zope using ZEO

2007-07-03 Thread Maciej Wisniowski
hould be > using? I think there is no better way although there are different ways. Maybe you should think again if you really have to use sessions shared between zeo clients. If so then you should possibly try Faster (another session implementation) that is said to be better especially in su

[Zope] Re: [Zope3-Users] z3c.form 1.3.0, z3c.formui 1.0.1, and z3c.formdemo 1.1.0 released!

2007-06-28 Thread Maciej Wisniowski
; also providing a message overview screen, since the ZMI is not helpful for > pure SQL data. > Thanks for this one :) -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTM

Re: [Zope] A question on pool-size

2007-06-26 Thread Maciej Wisniowski
zope with ./runzope or ./zopectl fg to see your prints. You may also take a look at 'push' method of _ConnectionPool in the same file. This is the place where warning messages came from. If you look closer then you'll see that there is no absolute limit for pool_size. Only warnings

Re: [Zope] A question on pool-size

2007-06-26 Thread Maciej Wisniowski
ize bigger than 25 - every thread will possibly use ZODB so it should have connection to use. In fact connection is created as needed, even if pool_size is too small. That is why number of connections in your logs is bigger than pool_size. -- Maciej Wisniowski _

Re: [Zope] how to restore a copied instance.

2007-06-26 Thread Maciej Wisniowski
s way i hoped that Data.fs which contained all my objects ... will > automatically become visible. > > it doesn't work this way either, it only sees the default objects, i > can access the site ... but all my objects are not visible. Check ControlPanel-&

Re: [Zope] zope stopped working suddenly

2007-06-18 Thread Maciej Wisniowski
> What I did finally is that I deleted the folders in both /tmp/zope and > /opt/Zope-2.10 folders, and installed Zope Again and everything is > working fine right :) -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zop

Re: [Zope] zope stopped working suddenly

2007-06-15 Thread Maciej Wisniowski
ing was ok in the past I was able to run zope through > ./zopectl start (as a root) > but now the stop command displays that the daemon manager is not open. Strange that it worked. In general I think you shouldn't run zope as root. -- Maciej Wisniowski

Re: [Zope] zope stopped working suddenly

2007-06-15 Thread Maciej Wisniowski
py", line 34, in > __init__ > StreamHandler.__init__(self, open(filename, mode)) > IOError: [Errno 13] Permission denied: '/tmp/zope/log/event.log' > /** END **/ So seems that you have incorrect permissions set for /tmp/zope/log/event.log and you need to change

Re: [Zope] a warning message before performing an action

2007-06-14 Thread Maciej Wisniowski
if (confirm("Do you really want to remove this picture")) return true return false which may be used with onsubmit event of form object. Of course this is javascript code not python. -- Maciej Wisniowski ___ Zope maillist - Zope@z

Re: [Zope] zope stopped working suddenly

2007-06-13 Thread Maciej Wisniowski
tays attached to the console and displays startup errors etc. If you find any errors post full traceback here. -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! *

Re: [Zope] Re: Zope 2.7 - sporadic service hangup

2007-06-05 Thread Maciej Wisniowski
nto z2.log but doesn't serve them because all it's threads are busy. Solution is to use DeadlockDebugger to see what your threads are doing while Zope seems to be 'hang'. -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://m

Re: [Zope] Re: [Zope-DB] blobs and dtml-sqlvar

2007-06-02 Thread Maciej Wisniowski
Python Script: from psycopg2 import Binary picture = container['logo.gif'].data # Image object container.set_logo(companyid=companyid, logo = Binary( obraz )) Maybe there is something similiar in MySQLDB. -- Maciej Wisniowski ___ Zope maillis

Re: [Zope] Zope 2.7 - sporadic service hangup

2007-06-01 Thread Maciej Wisniowski
Have you tried DeadlockDebugger to see what are your threads doing? I'm not sure if this works with Zope 2.7 -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding!

Re: [Zope] Uncaptured python exception

2007-05-31 Thread Maciej Wisniowski
> Var1 = var2 > > Where var2 is undefined (i.e. has never been assigned anything) > > Just silent failure. No error. So how do you know there is a failure then? There is really nothing in event.log and nothing in error_log? -- Ma

Re: [Zope] Re: Function reindexObject()

2007-05-31 Thread Maciej Wisniowski
used to reindex object in Catalog. invokeFactory puts new object of the specific type to ZMI. -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related list

Re: [Zope] Function reindexObject()

2007-05-30 Thread Maciej Wisniowski
lesystem path or path in your ZODB? What are your scripts? External methods? -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.

Re: [Zope] extract page title

2007-04-24 Thread Maciej Wisniowski
but... Where tag content came from? If this is from typical title_or_id function then you may use something like: you may then also do: http://domain/xxx/xxx/s?websitename.%s' % (here.title_or_id())" width="1" height="1" alt=""> -- Maciej Wis

Re: [Zope] nested queries and zpt

2007-04-12 Thread Maciej Wisniowski
e for > that server... any ideas? list of software goes here -- Maciej Wisniowski ___ Zope maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org

Re: [Zope] [Ann] "analyseObjects": analyse live objects

2007-04-10 Thread Maciej Wisniowski
> Hi Dieter, > > am I missing something, or the code is not on the web? I'm able to get the code from here: http://www.dieter.handshake.de/pyprojects/zope/analyseObjects.py -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http:/

Re: [Zope] ImportError: No module named cPersistence when creating new instance

2007-04-04 Thread Maciej Wisniowski
> ImportError: No module named cPersistence Check zope list archives. -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.

Re: [Zope] IOError: [Errno 11] Resource temporarily unavailable for ./zopectl adduser...?

2007-04-03 Thread Maciej Wisniowski
;) Maybe you have Five that is not compatible with your zope version. Check compatibility table at codespeak.net. -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding!

Re: [Zope] IOError: [Errno 11] Resource temporarily unavailable for ./zopectl adduser...?

2007-04-03 Thread Maciej Wisniowski
> IOError: [Errno 11] Resource temporarily unavailable Try: ./zopectl stop ./zopectl adduser ./zopectl start -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encod

Re: [Zope] Making pythonscript changes to formulator fields persistent

2007-04-02 Thread Maciej Wisniowski
> EM gives you no security restrictions in comparision to Script Python. I should rather say that it gives you less restrictions: access to all python modules etc. -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/mail

Re: [Zope] Making pythonscript changes to formulator fields persistent

2007-04-02 Thread Maciej Wisniowski
ctItems( 'Folder (Ordered)' ): checkFolder( fld_obj ) I'm not sure about 'FormulatorForm', this may be 'Formulator Form' or something like that. -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://m

Re: [Zope] Making pythonscript changes to formulator fields persistent

2007-04-02 Thread Maciej Wisniowski
I??? > But I digress.. > > If anyone knows how to solve this I would be less frustrated for a while ;-) Use ExternalMethod - easy just like python scripts and it's code is trusted. -- Maciej Wisniowski ___ Zope maillist - Zope@zope.o

Re: [Zope] ZSQL, call for early beta testers

2007-04-01 Thread Maciej Wisniowski
here for me but I fear I'm getitng a > bit home blind based on just my needs. I'm pretty sure it works but some > early feedback would be appreciated. I'm interested, although I can't guarantee quick response :) -- Maciej Wisniowski ___

Re: [Zope] include?

2007-03-28 Thread Maciej Wisniowski
wei/PHParser but I don't know if and how this works. -- Maciej Wisniowski ___ 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/listin

Re: [Zope] Cannot Import Base has_attr

2007-03-27 Thread Maciej Wisniowski
> Hi; > I had this problem on another server I recently built...and it went away > all by itself! I'm now rebuilding my home server, and it's cropped up > again. Last time, Maciej Wisniowski suggested I go to a zopectl prompt > and type in "import Products.CMFPlone

Re: [Zope] Attribute error

2007-03-23 Thread Maciej Wisniowski
> Error Type: AttributeError > Error Value: visible > > And I have no idea what it means or how to fix it. Any suggestions would be > much appreciated. You have to start learning about python and zope :) Take a look at site error log (via ZMI) or at event.log in the filesystem

Re: [Zope] open image in a fitted new window

2007-03-22 Thread Maciej Wisniowski
in a > zpt. A example/tutorial would be very welcome so. What you're asking for? How to insert javascript code into html page? -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts

Re: [Zope] dtml Z SQL doubt

2007-03-22 Thread Maciej Wisniowski
't (but I might be wrong). -- Maciej Wisniowski ___ 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:

Re: [Zope] Re: losing random session data

2007-03-19 Thread Maciej Wisniowski
] = order BTW. req.SESSION.set(..., ...) method is also persistence aware (according to zope book) -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Relat

Re: [Zope] losing random session data

2007-03-18 Thread Maciej Wisniowski
;order' list like: session = context.REQUEST.SESSION order = session.get('order', []) order.append({'foo':req.form['foo'], 'bar':req.form['bar']}) session.set('order',order) and see what happens now. -- Maciej Wisnio

Re: [Zope] accessing the user search using mxODBC adapter

2007-03-14 Thread Maciej Wisniowski
search form'. So far you didn't even tell us if you use PlonePAS and if so what kind of authentication plugin. I still think this is a Plone related problem/question :) -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope

Re: [Zope] accessing the user search using mxODBC adapter

2007-03-13 Thread Maciej Wisniowski
er or > is a ZSQL required? For me, mxODBC can't be a problem here. Do you have error tracebacks? This issue can be better answered on Plone-users list I think. -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/li

Re: [Zope] 'int' object has no attribute 'objectValues'

2007-03-12 Thread Maciej Wisniowski
> > > Check what here/quotes is evaluating to. Seems that it is int. -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists

Re: [Zope] have problem with managing objects within a external product

2007-03-11 Thread Maciej Wisniowski
Class(Folder, CatalogAware): Item, Persistent and Implicit already are base clases of Folder. -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://m

Re: [Zope] How can run multiple query in an Z sql method

2007-03-09 Thread Maciej Wisniowski
dapters usually use volatile attributes and as Dieter Maurer told me (on zope-db) under some (very specific) conditions (AFAIR subtransaction commit or something like that) this may cause connection object stored in volatile attribute to disappear during request. -- Maciej Wisniowski ___

Re: [Zope] No space left on device

2007-03-09 Thread Maciej Wisniowski
rve how it changes while importing etc. -- Maciej Wisniowski ___ 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-anno

Re: [Zope] can not install ZMySQLDA

2007-03-08 Thread Maciej Wisniowski
oblems so I can't help too much. Try to search the web for this problem, you'll possibly find something. -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding!

Re: [Zope] can not install ZMySQLDA

2007-03-08 Thread Maciej Wisniowski
Send your emails also to the zope list, please. There were questions about this recently (not sure if it was here or on Zope3s list. Message says that you have to set proper permissions to the .pyton-eggs folder, so just do it (give write access to everybody or something like that). -- Maciej

Re: [Zope] Iteration Over Non-sequence

2007-03-08 Thread Maciej Wisniowski
ding your error traceback wrong way. It says about: Expression: standard:'here/en-us/quotes/?number/macros/quote' and there is nothing about global number here/quotes/randomNumber So check first if you're looking in the right place. -- Maciej Wisniowski _

Re: [Zope] can not install ZMySQLDA

2007-03-08 Thread Maciej Wisniowski
Panel in Zope Management Interface. After copying restart Zope and in ZMI go to ControlPanel/Products and see if your product is there and if it is not broken. You may also check event.log of your instance if something goes wrong. -- Maciej Wisniowski ___

Re: [Zope] Download Large Files in Zope

2007-03-07 Thread Maciej Wisniowski
User Restrictions Possibly not. This is application server that decides if user is allowed to upload/download file (by setting proper headers). -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** N

Re: [Zope] database connection in script

2007-03-07 Thread Maciej Wisniowski
HERE') as Robert Rottermann suggested. -- Maciej Wisniowski ___ 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-announc

Re: [Zope] Download Large Files in Zope

2007-03-07 Thread Maciej Wisniowski
in specific filesystem folders. When someone requests a file for download, application server sets special header that contains unique file identifier and this causes that tramline will return real, big file to the browser. Upload similarly uses headers to allow or disallow uploading. -- Ma

Re: [Zope] Download Large Files in Zope

2007-03-07 Thread Maciej Wisniowski
ver sees is a unique identifier of the uploaded file". I don't know whether it is a file name, but seems that while uploading/downloading you may do some writes into db. Good luck! -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://

Re: [Zope] Download Large Files in Zope

2007-03-07 Thread Maciej Wisniowski
ry fast filesystem storage. Even more, seems for me that it is designed to do exacly what you're asking for. You say that tramline may help you after resolving zope issues, but I don't get it... By using tramline you will have no files in Zope (ZODB or LocalFS) so you will have no proble

Re: [Zope] Download Large Files in Zope

2007-03-07 Thread Maciej Wisniowski
thout > Apache so this product can help me after I resolved the Zope issue. I think that if you'll use tramline you'll have no 'Zope issue' anymore. -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/mail

Re: [Zope] Download Large Files in Zope

2007-03-06 Thread Maciej Wisniowski
> What about railorad: http://www.infrae.com/products/railroad I meant tramline: http://www.infrae.com/products/tramline -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or H

Re: [Zope] Download Large Files in Zope

2007-03-06 Thread Maciej Wisniowski
ge downloads & uploads? In general it is bad idea to hold and serve large files directly from ZODB. This should be done by Apache etc. -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross p

Re: [Zope] Resizing Images In Page Templates

2007-03-04 Thread Maciej Wisniowski
istake when you've written previous e-mail > > OK, I thinked again about this. This may work :) You may have object with id 'myimage.jpg' with resize method, and it may be referenced this 'hardcoced' way. -- Maciej Wisniowski __

Re: [Zope] Re: ImportError: cannot import name base_hasattr

2007-03-04 Thread Maciej Wisniowski
utils.py. Have you tried debugging via zopectl like I suggested in previous email? -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http

Re: [Zope] Resizing Images In Page Templates

2007-03-04 Thread Maciej Wisniowski
ritten previous e-mail It is plain html. something like: may do something 'dynamic'. -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Relate

Re: [Zope] Re: ImportError: cannot import name base_hasattr

2007-02-28 Thread Maciej Wisniowski
in/zopectl on zopectl prompt enter: zopectl> debug and when you'll see python prompt write: >>> import Products.CMFPlone >>> print Products.CMFPlone and check what path you have there. -- Maciej Wisniowski ___ Zope maillis

Re: [Zope] Re: ImportError: cannot import name base_hasattr

2007-02-28 Thread Maciej Wisniowski
> Maciej Wisniowski recently responded something to the effect of that I should > take a look at my PYTHONPATH and gave me the address for subscribing to Plone. > Thank you. I subscribed and posted to Plone, but after a day have received no > response :( > I looked at my PYTHONPA

Re: [Zope] Re: Exporting portal member data to csv

2007-02-27 Thread Maciej Wisniowski
((,), {}, None) > * Module C:\Program Files\Plone 2\Data\Extensions\export.py, line > 15, in createcsv > What code do you have in export.py, especially what is in line 15? -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.z

Re: [Zope] ImportError: cannot import name base_hasattr

2007-02-27 Thread Maciej Wisniowski
Maybe you have something wrong with your PYTHONPATH. -- Maciej Wisniowski ___ 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-

Re: [Zope] Large jumps of memory use increase, and seeking overall understanding of memory use

2007-02-25 Thread Maciej Wisniowski
in zope.conf that says about cache size. It is used with ZEO setups. Maybe it is worth looking at how big value it is set to. -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross post

Re: [Zope] Large jumps of memory use increase, and seeking overall understanding of memory use

2007-02-25 Thread Maciej Wisniowski
a > CacheFu rule, to what was being cached by default, to account for the > "Composite Page" Plone product I am using (the templates for the > "slots" were not being cached and caused significant performance > issues). I said sorry if I'm telling something obvious

Re: [Zope] Large jumps of memory use increase, and seeking overall understanding of memory use

2007-02-25 Thread Maciej Wisniowski
save some memory then. I don't know whether amount of memory used because of above is huge enough to cause described problem. It's just a though. Feel free to correct me if I'm wrong. -- Maciej Wisniowski ___ Zope maillist - Zope@z

Re: [Zope] Large jumps of memory use increase, and seeking overall understanding of memory use

2007-02-25 Thread Maciej Wisniowski
t. If you have no caching then serving all this stuff from zope may also cause bigger RAM usage as all these objects are read into memory by Zope when they're 'touched'. -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mai

Re: [Zope] Moodle and Zope SSO.

2007-02-19 Thread Maciej Wisniowski
For zope you'll find CAS4PAS authentication plugin for PHP I don't remember how it is called. CAS itself is java based application. -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross post

Re: [Zope] session

2007-02-13 Thread Maciej Wisniowski
is should help you a lot in understanding what happens in PAS and your plugin. And one more thing. I'm not aware of plone issues here so there may be something different because of this. -- Maciej Wisniowski ___ Zope maillist - Zope@zope.o

Re: [Zope] session

2007-02-13 Thread Maciej Wisniowski
ich stores data in cookies. This is first part. You have credentials. Second thing is to compare them with users stored in ZODB (that what ZODBUserManager is doing...) -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/ma

Re: [Zope] session

2007-02-13 Thread Maciej Wisniowski
ession and if so then it extracts credentials from this object, if no, then it tries to extract credentials from request. You should now validate these credentials with something (eg. RDBMS), possibly in authenticateCredentials function. -- Maciej Wisniowski __

Re: [Zope] session

2007-02-13 Thread Maciej Wisniowski
you may store object with user name etc. in session and later just check if it is there. If so, then user is authenticated... In general this is how CAS4PAS plugin works. -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/mai

Re: [Zope] session

2007-02-13 Thread Maciej Wisniowski
t or in cookies? -- Maciej Wisniowski ___ 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] session

2007-02-13 Thread Maciej Wisniowski
> i did a plugin for authenticated and extractCredentials, but it don´t > save session so it is how if user isn´t validate. > Can i save session for user authenticated? What do you mean by 'save session'? -- Maciej Wisniowski __

Re: [Zope] ZODB access via ZEO

2007-02-07 Thread Maciej Wisniowski
between few zope intantces with different set of products? Which class(?) has 'home' attribute? What do you mean by changing location of products and what are products for you? -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http:

Re: [Zope] Limiting access to a Zope Site

2007-02-03 Thread Maciej Wisniowski
> You're still expressing an opinion about what's "preferrable" as a > statement of fact. Your'e right. I was wrong about 'preferred way'. Someone may find copying data.fs good and workable for his use case. -- Maciej Wisniowski

Re: [Zope] Limiting access to a Zope Site

2007-02-03 Thread Maciej Wisniowski
e instances. -- Maciej Wisniowski ___ 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/mailm

Re: [Zope] Limiting access to a Zope Site

2007-02-03 Thread Maciej Wisniowski
or example I have internal and external test instances). To move application between these environments I'm using copying (via SVN) zope products and exported .zexp files. -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailma

Re: [Zope] Limiting access to a Zope Site

2007-02-02 Thread Maciej Wisniowski
that. I'm not sure how it is in Plone but I don't believe in moving data.fs :) -- Maciej Wisniowski > > Jonathan [the other] > ___ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cro

[Zope] Re: UserFolder

2007-02-01 Thread Maciej Wisniowski
rg/events/conferences/seattle-2006/presentations/presentation.pdf/view I haven't read this but I hope this will help you. -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or

Re: [Zope] User Folder

2007-02-01 Thread Maciej Wisniowski
self._user_passwords = OOBTree() self._login_to_userid = OOBTree() self._userid_to_login = OOBTree() and it stores user data there. Then it's authenticateCredentials is able to check if user with specific login and password exists there. -- Maciej Wisniowski __

Re: [Zope] User Folder

2007-01-31 Thread Maciej Wisniowski
of PAS (Plone PAS)? Maybe it is something because of that. I've found plugin for plone that you may want to analyze: http://plone.org/products/ip-range-pas-plugin. In general what is your plugin supposed to do?? -- Maciej Wisniowski ___ Zope m

Re: [Zope] User Folder

2007-01-31 Thread Maciej Wisniowski
>acl = self.getUserFolder() // Is this ok? I think no. Do you have any error tracebacks or what do you mean by 'not working'? Take a look at CAS4PAS plugin. It may give you some clues. -- Maciej Wisniowski ___ Zope maillist -

Re: [Zope] Referencing authenticated user

2007-01-30 Thread Maciej Wisniowski
> I need to modify a Zope product to record the authenticated user > executing a method. > > How do I refer to the authenticated user ? You may try: self.REQUEST.AUTHENTICATED_USER -- Maciej Wisniowski ___ Zope maillist - Zope@z

Re: [Zope] Session Timeout Troubles

2007-01-25 Thread Maciej Wisniowski
session expires) to logout the user or you may use different UserFolder, eg. PAS. -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.z

Re: [Zope] Captcha Image For Form Verification

2007-01-25 Thread Maciej Wisniowski
ptchas.net/sample/python/ AFAIK there is such product for Plone, you may want to take a look at this. -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related

Re: [Zope] Session Timeout Troubles

2007-01-25 Thread Maciej Wisniowski
n wait for 15-20 minutes and see what happens. Another thing that may cause this is session-resolution-seconds setting in your zope.conf - this affect session timeout value. -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailm

  1   2   3   >