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
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
**
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.
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
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
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.
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
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
> 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
' 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
> 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
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
_
> 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
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
___
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
>
>
> 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
___
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:/
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
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
; 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
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
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
_
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-&
> 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
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
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
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
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! *
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
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
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!
> 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
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
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.
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
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
> 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:/
> 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.
;)
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!
> 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
> 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
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
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
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
___
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
> 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
> 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
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
'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:
] = 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
;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
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
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
>
>
>
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
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
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
___
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
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!
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
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
_
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
___
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
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
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
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://
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
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
> 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
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
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
__
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
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
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
> 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
((,), {}, 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
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-
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
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
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
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
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
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
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
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
__
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
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
> 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
__
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:
> 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
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
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
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
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
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
__
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
>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 -
> 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
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
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
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 - 100 of 212 matches
Mail list logo