Dear
List,
Am a newbie so
please bear with me.
I need Zope to
stream files to my users when they click on a link.
Exactly how is this
done ? Is it by the use of the Request.Write () method ? If so, canyou
give me sample code and some reference links ?
Thanks.
Danny
'jobname' is added as *metadata* to your catalog?
Not sure if using manage_addProperty () to add jobname is equivalent to
adding it as *metadata* .
code
manage_addProperty('jobname', 'ABC12345', 'string')
/code
___
Zope maillist - Zope@zope.org
This add a property to an object but it has nothing to do with adding
*metadata* to a ZCatalog instance. Please read the ZCatalog chapter of
the Zope Book 2.7 edition. It carefully explains what *metadata* in
the ZCatalog context means. The short version: a Zcatalog search returns
*proxy*
Click on update catalog in the Advanced tab or use the
refreshCatalog()
method of the ZCatalog (described in its interfaces.py file).
refreshCatalog() is exactly what I was forced to use in the first place.
I was wondering if there exists an alternative function / method that
won't require
That's the official ZCatalog API. Otherwise find your objects through
a catalog search and reindex them individually.
I already did the reindexing just before the search and it didn't work.
In any case, I may have found a workaround by using getObject().
According to
manage_addProperty does not trigger recataloguing of the object even
if its a subclass of CatalogAwareness. You should ? either call
obj.reindex_object() or at least obj.index_object(), if your class has
the CatalogAwareness-Mixin or you use the catalog API:
Dear
All,
Can anyone share
their experiences on Zope's performance, what your hardware / Zope configs are,
and how you plan to scale ?
Regards,
Danny
___
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross
Hello,
Am using Zope
2.7.6-final.
We accidentally
clicked on the "Clear Catalog" button and all the catalog contents were
zapped.
However, the folder
containing the said catalog still has the information we
need.
We can still list
down the once-cataloged list of workflow processes
Already tried, but we're getting multiple-undo errors.
-Original Message-
From: Andreas Jung [mailto:[EMAIL PROTECTED]
Sent: Monday, July 17, 2006 4:55 PM
To: Sinang, Danny; zope@zope.org
Subject: Re: [Zope] Recreating catalog contents
--On 17. Juli 2006 16:51:06 +0800 Sinang, Danny
It worked.
Thanks AJ.
-Original Message-
From: Andreas Jung [mailto:[EMAIL PROTECTED]
Sent: Monday, July 17, 2006 5:03 PM
To: Sinang, Danny; Andreas Jung
Cc: zope@zope.org
Subject: RE: [Zope] Recreating catalog contents
Then use the Find tab.
-aj
--On 17. Juli 2006 16:57:18 +0800
Hello,
We need to find some
objects in Zope and rename them to their lower-case equivalents.
Is there a way to do
this either via the ZMI or programmatically ?
Regards,
Danny
___
Zope maillist - Zope@zope.org
Look at the ZopeFind() and/or ZopeFindAndApply() methods as defined in
OFS.FindSupport.
I've tried ZopeFind() and it can indeed find the objects I'm looking
for.
Am now trying to use ZopeFindAndApply() to find and rename the objects
found using manage_renameObject().
However, since
Hello,
Would anyone here
know how to programmatically log out of Zope ?
Regards,
Danny
___
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
Because '/' is a reserved character since it is used in URLs as path
separator.
Any workarounds ?
Is there a way to refer to the said objects without using the '/' ?
___
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**
Huh? Usually you have no chance to create a Zope object with such an
id.
So there is no need to rename something that can't exist be definition
:-)
Exactly.
The said object, s5/Begin, is the Begin activity of the s5 process
found in the GeneralWorkflow workflow - which is an OpenFlow (
You must call manage_renameObject on the object *container*, passing
the old name and the new name. Something like this:
object = result[1]
container = object.aq_parent
container.manage_renameObject(object.id, object.id.lower())
Thanks Gabriel.
I did exactly as you suggested, but ran
Hello,
We wrote an
application (on Zope v2.7.6-final) that queries a MySQL database via ZMySQLDA
v2.0.8.
Whenever the MySQL
server experiences heavy load, Zope seems to hang, such that we can't even
access the ZMI.
Is this a bug in
version 2.7.6 or ZMySQLDA ?
Or are there some
Sorry for the typo error.
The subject should read "hangs", not "hands"
.
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sinang, DannySent:
Wednesday, September 06, 2006 10:56 PMTo:
zope@zope.orgSubject: [Zope] Zope hands when database takes too long
to respond
Hello,
It is a known limitation of Zope, which has a set number of worker
threads available to service user requests. If a worker thread blocks
(e.g., waiting for MySQL), it is not able to do any work for other
pending requests.
You can tweak the number of threads in your zope.conf file, via the
Seems that all your Zope threads are busy (they're waiting for
database response). There is no more threads to serve next requests so
they're waiting (you may say that zope hangs in this situation, but in
fact all it's threads are waiting for DB).
You may install DeadlockDebugger product and
In the Zope Book
v2.6, it says :
"Each database connection maintains its own cache (see above, "Database
Cache"), so bumping the number of
connections up increases memory requirements. Only change this setting if
you're sure you have the memory to spare.
To change this setting, create a
or later, what you want to do is now done by editing
zope.conf.
On Thu, Sep 07, 2006 at 08:44:08AM +0800, Sinang, Danny wrote:
In the Zope Book v2.6, it says :
Each database connection maintains its own cache (see above,
Database Cache), so bumping the number of connections up increases
memory
Hello,
I want to reference
an object named "Es"foundin the directory /apps/wms
.
I'd normally create
a script in /apps/wms and issue the command obj = getattr(context,"Es")
.
But how do I do so
from a script located elsewhere ?
Regards,
Danny
Hello,
I'm using a Zope
product called OpenFlowEditor and I modified one of its .zpt pages
(view_process.zpt).
All is well, except
that I now want to allow Anonymous users to view this zpt page.
I tried doing so by
checking the "Anonymous" checkbox for the "View" privilege in
Hello,
We're currently not
using ZEO, but may do so in the future.
Question is, do we
need to export or convertour Data.fs toa ZEO-capableformat
?
Regards,
Danny
___
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**
Hello,
In Unix, there's the
"su" command which admins can use to log in as another user.
Is there a similar
facility in Zope ?
If not, is there a
way for admins to view the passwords of their users ?
Regards,Danny
___
Zope maillist -
Hello,
How do I
programmatically log out a user from Zope ?
I've asked this
question before, but was told to :
1. Redirect the user
to a page that always raises Unauthenticated.
Seemanage_zmi_logout.
2. from AccessControl.SecurityManagement import
noSecurityManagernoSecurityManager()
Hello,
"Out of the box", is
Zope able to do password-expiration ?
Or do I needan
authentication product to do this ? Will this external product be
able to effectpassword expirationon existing acl_user folder users
?
Regards,
Danny
___
Zope
Hello,
Is there a Zope product out there that would allow me to check into SVN
my Zope objects (i.e. TAL pages, Python scripts, and ZSQLMethods) ?
If not, can anyone here show me some skeleton code to :
1. Enumerate these objects
2. Reference them as files
so I can programmatically check
Hello,
I've got a script located in /wms/Ccp/Main/TeamLead/Scripts and it needs
to reference a workflow object in /wms/Ccp/Main/Workflows/Ccp/ .
Currently, we do this by issuing this line :
wf = context.Workflows.Ccp.ccp_agro_article
But everytime we run this, a username/password prompt
Hello,
I need to modify a Zope product to record the authenticated user
executing a method.
How do I refer to the authenticated user ?
Regards,
Danny
___
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross
Dear All,
The system clock of our Zope 2.7 machine accidentally got set to 2009.
We noticed this mistake 6 hours later and we decided to set back the
clock to 2008.
How does this affect the integrity of Data.fs ?
From our observation :
1. Session write errors suddenly began to appear
2.
Hi All,
Is it possible to stop an ongoing ZODB packing operation without
restarting Zope ?
Am using Zope 2.7.6-final.
- Danny
___
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
Thanks.
Is there a way to spot these data inconsistencies in Data.fs and remove
or fix them ?
Regards,
Danny
-Original Message-
From: Andreas Jung [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 06, 2008 12:31 PM
To: Sinang, Danny; zope@zope.org
Subject: Re: [Zope] Turning back system
Hello,
We've got lots of Catalog reads and writes and our Data.fs is growing at
an immense rate.
Is there a way we can tell Zope to stop storing old object versions to
limit the growth and not have to pack that often ?
Regards,
Danny
___
Zope
rewrite it to use MySQL, or we find a way to make
Catalogs write to MySQL.
Regards,
Danny
-Original Message-
From: Jonathan [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 08, 2008 10:08 PM
To: Sinang, Danny
Cc: zope@zope.org
Subject: Re: [Zope] Making Zope stop storing old object versions
How do I go about replacing a Catalog using MySQL ? This is the first
time I've heard this.
-Original Message-
From: Jonathan [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 08, 2008 7:16 PM
To: Sinang, Danny
Cc: zope@zope.org
Subject: Re: [Zope] Making Zope stop storing old object
Dear All,
How do we get records X to X+20 of a catalog search ?
We're aware of the limit parameter of the search () function, but this
only gives us the top Z rows.
If I want to show records 90 to 100, I'm trying to avoid having to fetch
records 1 to 89.
Regards,
Danny
38 matches
Mail list logo