y insignificant;
the use of Zope3 technology within Zope2, however, is growing by leaps
and bounds.
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"htt
uld we move to
> an older version (2.8? 2.9?) first and then onto 2.10?
Maybe.
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuP
er layer. E.g., ::
def manage_addSomething(dispatcher, id, title, photofile):
from Products.whatever.photo import Photo
instance = Something(id, title)
dispatcher._setObject(id, instance)
obj = dispatcher._getOb(id)
photo = Photo(id='photo', title=''
es things for
> users who are NOT logged in.
If set, the named variables form part of the key for the cached items.
Tres.
- --
=======
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "
pe. BTW, I did
> implemented a workaround to this some time before (which I can't find
> now...), but my point was knowing if I was right using this resolve_url
> (even though this was not working) or there was something else available
> out of the box.
You probably wanted
so left a number of those features out ('test',
'run', and 'debug' have all been added back in).
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "
> Can any one guide me in this.. Appreciateit,
The producdt is not importing correctly, which causes it to be omitted
silently in "production" mode. Start Zope in "debug" mode (e.g.,
'bin/zopectl fg'), and report the error which you see on the console.
At a
y be caused by
>> zope's multiple threads) and then have a clean up routine which kills
>> all of the processes listed in the file (this could be an independant
>> clean-up routine which wakes up on a regular basis, or it could be
>> built into the 'spawning'
;, which would control the behavior of
'authenticateCredentials' and 'updateUserPassword'.
I've added an issue to the collector for SQLPasPlugin:
http://plone.org/products/sqlpasplugin/issues/4
Tres.
- --
===
Tres Seav
cked version of ZPublisher: it is
possible to register new server types in Zope2 products (e.g., the
original ClockServer product).
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "E
f you can get the vendor to use a PUT request instead of a POST, you
could process the result inside a custom object'c 'PUT' method.
Otherwise, you are going to need to create a custom derivative of
ZPublisher.HTTPRequest, and override its 'processInputs' to handle the
vendor
.new(clear).hexdigest() # or whatever
matched = self._execSQL(PASSWORD_TEST_SQL % (login, encrypted))
if matched:
return matched[0]['userid'], login
return {}
Tres.
- --
===
Tres Seaver +1 202-558
he changes made to the Zope2 version of ZPT
after the Zope3 version was forked, and find any optimizations which
were made only there.
Tres.
- --
=======
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Softwar
res.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
e looks like your example, you should have
> gotten errors due to missing arguments.
Except that 'OFS.ObjectManager' logs and suppresses any non-vetoing
errors raised by an object's 'manage_beforeDelete': the tradeoff is
that buggy objects could otherwise be unremovable.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Chris Withers wrote:
> Tres Seaver wrote:
>> Chris Withers wrote:
>>> ouch... I'd imagine Zope is vulnerable to this?
>>>
>>> What source version(s) of python have these problems fixed?
>>
>> I th
level default for the newly-added attributes.
zope.schema.fieldproperty.FieldProperty is a particularly good way to
set up those class-level defaults, as it uses the default value you
declare in the schema.
Tres.
- --
===
Tres Seaver +1 202-5
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Andreas Jung wrote:
>
>
> --On 6. Oktober 2006 12:32:51 -0400 Tres Seaver <[EMAIL PROTECTED]>
> wrote:
>
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>>
>> Chris Withers wrote:
>&
Zope with.
Python 2.4.4 will have this fix, when released.
[1]
http://sourceforge.net/tracker/index.php?func=detail&aid=1541585&group_id=5470&atid=305470
Tres.
- --
=======
Tres Seaver +1 202-558-7113
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Federico Schwindt wrote:
> On 10/5/06, Tres Seaver
> <[EMAIL PROTECTED]> wrote:
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>>
>> Pascal Peregrina wrote:
>>
>> > We made some basic load te
and somehow
> export a given object and subobjects (like export in the zmi)?
You can open an existing storage and copy transactinos into a new one,
including stopping at a given time.
Tres.
- --
=======
Tres Seaver
uilds recently (I can reproduce your error on a
2.9.4 tarball, but not with the 2.9 branch):
http://svn.zope.org/Zope/branches/2.9/setup.py?rev=69978&r1=69111&r2=69978
http://svn.zope.org/Zope/branches/2.10/setup.py?rev=69979&r1=69113&r2=69979
It looks as though I forgot to po
pure-Python equivalents, Some
('_initgroups.c', 'winlock.c') might be irrelevant on a given platform.
Tres.
- --
=======
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "
/* tp_setattro */
Lines 2213-6:
static struct PyMethodDef dtml_methods[] = {
{"guarded_getattr", (PyCFunction)dtml_guarded_getattr,
METH_VARARGS|METH_KEYWORDS, "" },
{NULL,NULL}
};
Line 2229 invokes the PURE_MIXIN_CLASS macro (defined in
Ex
g available on higher versions of Zope ?
'pool-size' is an attribute of the database configuration stanza, e.g.:
path $INSTANCE_HOME/var/Data.fs
mount-point/
cache-size 5000
pool-size 7
version-pool-size
alue, you also need to increase the number of database
connections avialble (via 'pool-size') which will increase the RAM
required by your appserver.
> Or are there some settings I can tweak to adjust some database
> connection timeout value ?
Not that I know of.
Tres.
- --
ot;effective" user to write to the
"ZEO control socket", which is normally in the 'etc' direcdtory of your
instance home, and named 'zeo.zdsock'. Try changing 'zeo.conf' to put
that file in your 'var' directory, where you *must* be able t
= time.time() - (7 * 86400) # one week ago
to_pack.pack(when)
Tres.
- --
=======
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"http://palladion.com
-BEG
on
>>
>>
>>
>> # Main FileStorage database
>>
>> path $INSTANCE/var/Data.fs
>>
>> mount-point /
>>
>>
>>
>> # Temporary storage database (for sessions)
>>
>> name temporar
erbose-security
$ bin/zopectl fg
...
2006-08-29 16:39:52 INFO Zope Ready to handle requests
^C
I'm attaching the working zope.conf file.
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Softwa
okie (the
"clipboard data"), and then pass it into 'manage_pasteObjects'. E.g.::
cb_data = source.manage_copyObjects(ids=selected)
target.manage_pasteObjects(cb_data)
In this mode, you don't (and shouldn't) need to pass the request at all.
Tres.
- --
===
the skeleton zope.conf.
Tres.
- --
=======
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
C
ed that in your earlier post you returned
> the "File" object itself. I would rather expect
> "str(fileObject.data)".
That would defeat the "stream iterator" optimimzation, wouldn't it?
Tres.
- --
child processes
> ==//
>
> I request for help on this.
> Thanks a lot for any help or hints.
>
> Regards,
> Nagaraj
I'm CC'ing the 'zodb-dev' mailing list, which is where the folks who
maintain ZODB hand out.
Tres.
- --
=
create
most kinds of content, due to Zope's ownership / security model.
If this is your problem, create a "normal" manager user (e.g.,
'bin/zopectl adduser admin/password') and log in as that user to create
content.
Tres.
- --
======
all
'set PYTHONPATH=Z:\path\to\instance\lib\python' at the command line
before invoking easy_install.
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"http://palladion.com
-BEGIN PGP
without losing session data for some users.
Externalizing the session storage removes the appserver as a
point-of-failure for user sessions.
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Soft
isten on that socket: that
will cause the "file" to be created, and Zope will then be able to
connect. Note that this requires tha MySQL run on the same host as Zope.
Tres.
- --
===
Tres Seaver +1 202-558-7113
folks who use refresh: if they can't reproduce the
problem with refresh disabled, I can't help them.
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"http://palladion.com
-BEGIN PG
site comes to a halt until
> the transaction is restarted.
>
> As im not realy deep in the ZODB/ZEO subject. Can anybody pinpoint me where
> to look for the Problem.
I think I would re-post your message over on the zodb-dev list, where
the folks hang out who actually know this stuff. ;
amed virtual hosts.
WRT the caching directives: I have never used Apache as a caching proxy
(I use Squid for that), and I doubt many others here have either.
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
P
only when
running a *specific* version of a *specific* JVM, which is highly
unlikely to be the JVM / version shipped by a given distro.
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Soft
tree.get(id, _marker)
if ob is _marker:
return default
else:
return ob.__of__(self)
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "
program running; pid=12345
zopectl> stop
. daemon process stopped
zopectl> adduser admin 123
zopectl> start
. daemon process started, pid=34567
In this version, you can skip the 'stop' and 'start' if you are running
Zope with ZEO enabled.
Tres.
- --
==
in ensure_finalized
>self.finalize_options()
> File "c:\Python23\lib\distutils\command\build_ext.py", line 170, in
> finalize_o
> ptions
>self.build_temp = os.path.join(self.build_temp, "Release")
> File "C:\Python23\lib\ntpath.py", line 89, in jo
e, as well).
The text in the announcement is actually cloned from the earlier
announcment (of 2.8.7).
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"
s together with a system wide Python 2.4 installation
(e.g. Fedora, SuSE...). Such installations are in general not
supported. In addition there some third-party products and Python
packages that don't work with Python 2.4 and can cause trouble when
using Python 2.4.
- --
======
evidence that running 4 appserver instances on a
dual-core dual-CPU box worked best in one application under load. I
don't recall what number of threads they ended up using per appserver
instance, nor what checkinterval setting they settled on.
Tres.
- --
===
Online is a class (and portal tool) that inherits from SimpleItem,
> Implicit and PropertyManager.
Make your 'members_rooms' attribute a PersistentMapping, instead of a
dict, e.g.:
from persistent.mapping import PersistentMapping
class WhoOnline(SimpleItem, Implicit, Pr
module.somefunction' returns the mapping which
'sometemplate' will use as its top-level namespace. The callable is
passed 'context' and 'request' as arguments.
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladio
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Jonathan wrote:
>
> - Original Message - From: "Tres Seaver" <[EMAIL PROTECTED]>
>>
>> Jonathan wrote:
>>> During recent load testing of a new application 3.1% to 7.6% of all
>>> http re
to be substantially different,
typically by mangling in a random number (or, for instance, the
microseconds value of the current timestamp).
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladio
then copy the Data.fs to the new
instance.
5. Start the new instance, and verify that it comes up. Run the
unit tests of your products in the new instance, and upgrade /
fix as needed.
Tres.
- --
===
Tres Seaver
> which cannot be done as easily in ZPT, I believe. Correct me if I'm wrong.
It should be relatively simple to do given a combination of ZPT and some
Python to set up the data (either a Five view or a PythonScript).
Tres.
- --
=====
String
>
>
> Can anyone tell me what's wrong and figure out the solution?
You need to run Zope with the same Python as you compiled it with;
in this case, it looks as though the Python you compiled with uses UCS4
for unicode, but the one you are running with uses UCS2.
You can pass t
ns tool hammer".
Nothing says you can't use the framework without the tool. See for
instance my CMFFolderExportImport product, which uses the content-space
adapters to drive per-item dump / reload:
http://palladion.com/home/tseaver/software/CMFFolderExport
Tres.
- --
=
torage is 'repozo.py', which does not need to have exclusive access
in order to create a backup.
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"http://palladion.com
-BEGIN PGP SIGN
nterested in the PythonScript and PageTemplate
>>> thingies...
>
> The best set of examples is still the CMF itself, and the CMF list is a
> better place to ask GS questions.
PAS and PluginRegistry both have GS support, as well.
Tres
- --
===
w product version.
YMMV as to whether the effort here outweighs writing BBB / migration
code in your product.
Tres.
- --
=======
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence
st.py',
'fsrefs.py', etc.)
Tres.
--
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"http://palladion.com
__
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Ron Bickers wrote:
> On Wed May 31 2006 14:09, Tres Seaver wrote:
>
>
>> - 2.10 is the "development" version, not yet released except in
>>beta. It should be released by the end of June. It will
>>bu
- 2.10 is the "development" version, not yet released except in
beta. It should be released by the end of June. It will
bundle a newer Zope3 version (3.4), and removes a number of
"forks" between Zope2 and Zope3 versions of the same features.
- 2.11 (not yet in
ubdirectory and the zpkg-generated setup.py
are missing.
Tres.
- --
=======
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Antonio Beamud Montero wrote:
> El jue, 25-05-2006 a las 12:49 -0400, Tres Seaver escribió:
>
> If this template needs to be renderable by anonymous users even for
> contexts to which they do not have access, then you can give the
> t
Zope 2.7 and later.
There is a 'requestprofiler.py' script which is useful for analyzing the
log.
I would strongly recommend upgrading to a more recent version of Zope
and ZODB, as there have been a large number of stability-related fixes
and features added since Zope 2.6 / ZODB 3.1,
ct*,
which makes its use in a path expression impossible, even though the
'absolute_url' method of that object *would* be accessible by anonymous.
If this template needs to be renderable by anonymous users even for
contexts to which they do not have access, then you can give the
templa
vn+ssh://svn.zope.org/repos/main/Zope/branches/Zope-2_8-branch
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"http://palladion.com
-BEG
, before we chase all this down, can you verify that the script
actually does allow access in your case? I can imagine a case where the
authentication was already done by the time the script got to run, which
would make this an annoyance, rather than a hole.
Tres.
- --
===
as configurable options, defaulting
(at least initially) to the current behavior.
Before you chase this down, please verify that the user folder you use
*can* be tricked this way: for instance, if the authentication always
occurs *before* your script is executed, then the scribbling is only an
an
her than the default one where untrusted code can scribble::
remote_user = request['REMOTE_USER'] # hackable
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence
oducts.ExtSQLFactory': the
'Products' package is itself on your PYTHONPATH (or stitched into it via
some majyk), but the sub-packages of it are not.
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL
find a module
'ExtZSQLFactory' directly on the PYTHONPATH or else in the product itself.
Tres,
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"http://
se will
> contain instances of classes that don't exist in (can't be loaded by) older
> ZEO clients. For example, the database root object was an instance of
> ``ZODB.PersistentMapping.PersistentMapping`` before ZODB 3.3, but is an
> instance of ``persistent.mapping.PersistentMapping`` in ZO
*all* disk-based products
and then restart Zope: it will recreate them at startup, and should
also rebuild the catalogs with the borked BTrees.
Of course, back everything up first.
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAI
d I think should
>
>
> Thank you for your suggestion. I tried 'default-publisher-encoding' and the
> error is the same as before.
The spelling in my 2.8 branch checkout is 'default-zpublisher-encoding'.
Tres.
- --
======
ng'; the example is wrong (and I think should
be fixed in SVN already).
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"http://pallad
> storage client. I think the idea is more of a hot backup in case of
> failure of the main storage but I know little of ZRS.
ZRS secondaries go into "recovery mode" whenever they lose connection
with the promary: that recovery is sufficient to allow it to resync
(even to bring up a ne
rsync.
- Another possibility would be to use 'repozo' to create deltas
on the primary, and then propagate them to the secondary via
rsync, then apply them via 'repozo'.
Tres.
- --
===
Tres Seaver
idle" for too
long. Dieter Maurer has a product which works around such scenarios:
http://mail.zope.org/pipermail/zodb-dev/2005-June/008967.html
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECT
the storage server in debug mode and watch the log output:
$ bin/zeoctl start && tail -100f var/error.log
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellenc
ties/requestprofiler.py --help
Tres.
- --
=======
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunde
t; Error Value: 'BODY'
>
> Are you sure about this?
> In that case, any idea why it is missing?
>
> We are on Zope 2.7.5-1.fc3, python 2.3.4, behind Apache/2.0.52
REQUEST.stdin is the actual stream (either a tempfile or a StringIO).
You will likely need to rewind
xObject()
> |
> | and then in ZCML::
> |
> || for="zope.app.event.objectevent.ObjectEvent"
> | factory="Products.yourproduct.events.update_keywords"
Tres.
- --
===
Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Terry Jones wrote:
> I'd like to set up a folder in Zope with the property that when an object
> is put into it, the object has a keyword added to it automatically (and
> when the object is moved out of the folder, the keyword is removed).
>
> If you
your itch, not that we doubt you have it.
Given that this is open source, you *can* modify ZPublisher such that it
uses a different mechanism to parse the form data, and are free to
submit back such a patch to be included in a future Zope release.
Tres.
- --
=
about the exact Zope 2.9 version. According to
> the logs there are some changes in 2.9.2 concerning XML export.
See the collector issue:
http://www.zope.org/Collectors/Zope/2051
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software
rary will
marshall those objects to the XMLRPC XML dialect for you. (BTW, the "X"
in "AJAX"" was originally about =XMLRPC, not about arbitrary XML).
Tres.
- --
=======
Tres Seaver +1 202-558-7113 [
erred to *is* pluggable in Zope3: the "adding" name
doesn't have to be '+', and you can register a different name-checker
component for your containers than the default one.
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Pallad
to to on each instance (the compiled code is
not persisted to the ZODB).
Tres.
- --
=======
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"http://palladion.com
7; , and in this context you have 'da di da'
>
> etc.
>
> I think somehow verbose-security is not working for me. Has anyone tried it?
Just a guess, but be sure to enable the Python security policy, as well
as verbose security, in zope.conf:
security-policy-implementation p
t of these
> boxes? If so, how'd you get the both clients on the box accessible by
> LVS? 2 ip addresses?
Nope, different port numbere. LVS is configured per-service, rather
than per-IP.
Tres.
- --
=======
Tres Seaver
s, and found that "one appserver per CPU" gave us near linear
scaling of the application, without any explicit affinity set. I don't
have the numbers (we were using stock Dell 1U dual CPU boxes, I think),
but the win seemed clear enough that we quit invesigating taskset.
Tres.
- --
===
branches).
Tres.
- --
=======
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using G
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
JulianRead wrote:
> Do you know if it is possible to get zopectl to run using rc.local?
Yes.
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Pallad
atever logic is appropriate,
and return its absolute_url. You would then call that script in TAL::
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design&qu
x27;, '/usr/lib/python24.zip', '/usr/lib/python2.4',
...
'/usr/lib/python2.4/site-packages/gtk-2.0']
Exporting:
$ export PYTHONPATH
$ python -c "import sys; print sys.path"
['', '/foo', '/usr/lib/python24.zip', '/us
needs special handling, just *smart* special handling, because
Windows filesystems lie about the mtime of their directories. Mark
Hammond had a notion of how do make that happen, and I created an issue
for it in the CMF collector:
http://www.zope.org/Collectors/CMF/366
Tres.
- --
====
amp;& make install
If not, please report error messages.
Tres.
- --
=======
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"http://palladion.com
-BEGIN PGP
opic are
included in the Plone 2.1.2 tarball, and are drawn from CMF 1.5.5.
I don't know about the PIL requirement, however. BTW, your question
would likely get a more authoritative answer on the plone-users list.
Tres.
- --
===
Tr
h
has meant that in Zope2 land we have felt very little urge to adopt it.
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"http://palladion.com
---
301 - 400 of 642 matches
Mail list logo