ec'ed Python.
I don't know what facilities the kernel in your Linux provides for doing
that (and haven't tried on any recent kernels of my own, either).
Tres.
- --
=======
Tres Seaver +1 202-558-7113
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Luca Olivetti wrote:
> En/na Tres Seaver ha escrit:
>
>>
>> Note that I think the original poster must not have done 'make install',
>> but rather was using an inplace build directly from the unpacked
>> tarbal
from Zope-2.7.3-0/lib/python/App in my installation.
It was there to support a (lame) "opaque" product distribution (for
Lever / ZClass products).
Tres.
- --
=======
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Pa
was using an inplace build directly from the unpacked
tarball: the install process would have fixed up the permissions otherwise.
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence
e, but must have read access to the whole
instance.
Tres.
- --
=======
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Vers
factory" has a contract that it return an object, which will
then be "seated" in its container, after which its PUT method will be
called. If you don't want that behavior, then you need to use a custom
container which overrides PUT itself, rather than trying to use the one
i
t;
>>
>>As the old joke goes, it's a "Z" shaped learning curve.
>
>
> LOL.
>
> (Why did I spell learning with u. That looks REALLY strange :) ).
That phoneme is the hardest one to spell in the whole English language;
I think there are at least eight or nin
well,
even in that initial bootstrapping phase. I for one think your
contributions to the Zope ecology are very significant, and look forward
to the day when we can collaborate more directly in the source tree.
Tres.
- --
===
Tr
http://www.zope.org/Collectors/Zope/1441/
Tres.
- --
=======
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version
you can use repozo to back up the old Zope without downing
it, then restore it into the new instance before starting the new Zope.
Tres.
- --
=======
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Softw
ode-safe:
http://www.python.org/doc/current/lib/module-cStringIO.html
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 (GN
sts are fine for many cases, but they suck
for doing "coverage" / "edge case" testing, which are the "valuable"
unit tests for my applications.
I would note that the usefulness of a doctest as documentation is
inversely proportional to the amount of "setup noise"
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Chris Withers wrote:
> Tres Seaver wrote:
>
>> The prior behavior (allowing users to access protected resources "above"
>> the domain of their user folders) was a security hole caused by a bug,
>> and was never docum
anting it the
roles which allow it to view the site: as long as nobody else can spoof
that IP, you should be fine.
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"http://palladion.co
ions which relied on the hole is
unfortunate; breaking them is better than leaving the sites built
around the defined model vulnerable to abuse.
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"htt
about why the security machinery is blocking access
in the error log.
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG
ed person could probably adapt the code
from 'zopeservice.py' to run the MailDropHost daemon as a service in
Windwos.
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"http://palladion.com
traceback indicated that AccessControl.ImplC couldn't import
AccessControl.ImplPython, which sounds to me as though the installation
is corrupt.
Tres.
- --
=======
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Pallad
> from Implementation import setImplementation
> File "C:\Programme\Zope-2.9.0\lib\python\AccessControl\Implementation.py",
> lin
> e 98, in ?
> setImplementation("C")
> File "C:\Programme\Zope-2.9.0\lib\python\AccessControl\Implementation.py",
Windows machine using the MingW
>> compiler. Works great!
>>
>
> Could you contribute your work? Can you work on an archive?
> I think there is some distutils option for creating an archive
> or even an installer on windows.
'bdist_win'?
Tres.
- --
=
rview/index_html
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)
don't run Windows boxen any longer, so it was a
shot in the dark.
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNA
lt with VC++ version 6; Python 2.4.x with version 7.
If you can't lay your hands on that version, then perhaps Mingw would do:
http://sebsauvage.net/python/mingw.html
Tres.
- --
=======
Tres Seaver +1 202-558-7113
g. 'propertyMap'.
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)
Authenticated') which
you use to protect the shared resources.
You would then grant them *local* roles on the subfolders, giving them
more access.
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED
he new box. Start Zope on the
new box, and verify that the instance looks OK>
5. Now, start upgrading the various bits of software incrementally on
the new box, beginning with Zope and Python, then the libraries, and
finally the Products. Test the site after each upgrade.
Tres.
- --
reation data in a separate attribute,
'creation_data'. That attribute has mo "mutator" method, and therefore
cannot be assigned by untrusted code. You should be able to set the
value from an ExternalMethod, however.
Tres.
- --
====
er.py',
which is a tool for reporting against that log file.
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE--
use it at all. Through bitter experience, they have learned that
when refresht fails (silently), they have found that the hours spent
figuring out why the application's behavior changed are much more
expensive than the time it takes enter '' in the
zopectl shell.
You'd be better
a .zexp file
exported from a *newer* version of Zope into an *older* version.
Keeping that path open has *not* been a goal for Zope, and so the OP
needs to find another way to solve his problem.
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion
#x27;t get it working command line.
'chown -R' changes the ownership (including group, if specified)
recursively; 'chmod -R' should apply the user-group-world settings
recursively.
Tres.
- --
=======
Tres Seave
lock_file.py", line 42, in lock_file
> fcntl.flock(file.fileno(), _flags)
> IOError: [Errno 11] Resource temporarily unavailable
If you aren't running the appserver with a ZEO storage, you will need to
stop the appserver before running 'inituser'.
Tres.
- --
==
ts/Zope/
Sorry about that.
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)
main socket, which can be protected with
appropriate filesystem permissions. If using a TCP socket (required
on Windows), you need to configure it to listen only on "trusted"
interfaces, e.g., localhost, or an IP address which is in a
carefully firewalled submet.
Tres
CPU load
significantly (the storage server is I/O bound, not CPU bound).
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version:
dumb question to the list now. ;)
>
>
> no, dot use a regular file! Use the tempfile module!
> And dont reopen but seek to the start - f.seek(0)
> You just open it for "rw".
Don't forget the 'b' when doing zipfiles!
Tres.
- --
======
ecause Windows is the only platform where the C runtime will mangle
the line endings for files it thinks are "text", rather than
"binary".
- You could use a StringIO instance, rather than a tempfile; YMMV.
Tres.
- --
===
?
Do you have the 'threadframe' extension installed in the Python you are
using to run Zope with?
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"
e '-devel'
pacakges, if appropriate), and rebuild Zope.
The 'zipimport' failure may also be related to a missing library /
header; without the traceback, we can't tell, however.
Tres.
- --
===
Tres Seave
uot;stock" zdaemon and a little extra config.
Tres.
- --
=======
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATU
n. ;) This would actually be a lot like what some of the more
RDB-centric web frameworks do already.
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE--
ZODB.Connection, line 760, in _setstate
> Module ZODB.serialize, line 495, in setGhostState
> Module ZODB.serialize, line 488, in getState
> Module ZODB.serialize, line 436, in _persistent_load
> Module ZODB.Connection, line 208, in get
> Module ZODB.serialize, line 482, in getGh
t this morning: I was waiting to board
a plane in Birmingham.
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
CMF, and CPS).
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 Thunderbird - http://en
e *unrendered* source of the script / template.
Tres.
- --
=======
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
ng of 2.8.5...how about a 2.8.5 release before X-mas (around
> December, 20th)?
+1.
Tres.
- --
=======
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"http://pall
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Chris Withers wrote:
> Tres Seaver wrote:
>
>> You have confused the "server socket" (which is set in the
>> section) with the "daemon control socket (set in in the
>> zeo.conf file; not currently settable in
ocket (set in in the
zeo.conf file; not currently settable in zope.conf). The control
socket has to be a Unix-domain socket. John is asking to surface an
existing zdaemon feature (already used in zeo.conf) within zope.conf.
Tres.
- --
atch (to http://www.zope.org/Collectors/Zope) when you
get it working.
Tres
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"http://palladion.com
-BEGIN PGP
t that it "belonged" to a given user; any
attempt will likely leave your system hosed, requiring an appserver restart.
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Exc
aintain Zope also knows and uses FastCGI; *he* used to be the person
who did know it (per http://www.fastcgi.com/), but no longer.
Without such a person or persons, Zope cannot really claim to support
FastCGI at all.
Tres.
- --
===
t()
cat._p_deactivate() # throw away changes
But why don't we avoid the whole thing and just call the catalog directly:
for cat in catalogs:
cat.catalog_object(object, object.url()
Tres.
- --
===
Tres Seaver
ds (such as catalog items or
> customer info).
Already doable, and in fact done in many Zope applications.
> - HTTP authentication and SSL provide security.
Likewise. Basically, Zope already provides everything you need, and
more (not using the "more" is the hard part).
Tres.
ingle check
to test both, which makes it impossible to do the Right Thing (TM):
either the proxy roles should be taken into account, in which case the
containment constraint may be violated, or they shouldn't, in which case
a proxy-role-granted script cannot be used to perform a "co
;Florent
>>
>
> hi florent!
>
> actually that's the best thing to do! this way the implementer knows
> what to do exactly :)
> but be aware that some tests got modified to pass with current (broken)
> behaviour!
>
> one more question (to the public!):
>
hat case).
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 Gn
install plone-site
which wants a lot of zope2.7 packages installed. I don't know how you
were able to install plone2.1 via synaptic.
Here is something else to try:
$ sudo /var/lib/zope2.8/plone-site/bin/zopectl
zope> adduser admin 123
zope> restart
You should then be able to log
/var/lib/zope2.8/plone-site' in your case), with an "emergency user" ID
and password; you can even leave the password in plain text while
testing, e.g.:
$ cat /var/lib/zope2.8/plone-site/access
emergency:123
You should then be able to log in as that user after restarting Zope;
tha
tributeError*
> *Error Value: 'NoneType' object has no attribute 'headers'*
HTML forms which upload files need to set the 'enctype' attribute of the
form element to 'multipart/formdata', and must use POST rather than GET,
e.g.::
Tres.
- --
===
t;> Any other help or advice would be appreciated.
>
> I'm afraid that the only way this "problem" (or set of two problems, or
> three, or however many it turns out to be) will be solved is to for
> someone to be able to replicate the symptom. I don't suppos
AuthHeader' method
added by the patch for details).
Tres.
- --
=======
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Versi
#x27;m assuming that you are using Ubuntu's 'zope2.7' pacakage, which
actually depends on python2.3. Check to see whether the startup scripts
for zope actually use /usr/bin/python2.3.
Tres.
- --
=======
Tres Seaver +1
the problem
will solve itself. Workflow exists to solve primarily this problem.
This qustion belongs on the zope-cmf list, BTW.
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Ex
at is necessarily wrong, it
just didn't seem worthwhile on the boxes I helped admin).
> And what's supposed to be the "correct" Python version for 2.8.4 btw?
Python 2.3.5.
Tres.
- --
===
Tres Seaver +1 2
hon' rather than 'python'.
Users whose pagers / cell phones go off if Zope crashes (this is my
definitino of "enterprise user", BTW) should install a separate Python.
Non-enterprise users can likely get away without it.
Tres.
- --
=
essages are going
to be inscrutable. The "right" place to do this might be in a custom
user folder, rather than in content. PAS, for instance, has the concept
of making the role computation for the *user* pluggable.
Tres.
- --
===
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Chris Withers wrote:
> Tres Seaver wrote:
>
>> AcceseRules run during path traversal, before any authentication is done
>> (Zope2 does "inside out" authentication starting at the "published"
>> objectd). Y
de out" authentication starting at the "published"
objectd). You might be able to force user validation to be attempted
earlier, e.g. by calling 'validate' directly on the user folder.
Tres.
- --
=
s.
The environment variable *is* a fossil, whose former effects are now
spelled out via configuration directives for the storage itself. We
should remove the code which sets the environment variable, and update
any docs which pretend that it is still effective. Please file a
collector issue fo
umvent any query munging done in the catalog tool
> searchResults method, specifically the effective/expires and
> allowedRolesAndUsers filtering.
CMF's CatalogTool grep an 'unrestrictedSearchResults' method which
does exactly that -- it can only be called from trusted code, but an
ExternalMe
hat the missing key in your case is 'udb', while in the older case
it was 'query'. I don't know where the first page was getting its value
for 'udb'; there is no key for it in the error log entry you cite.
>>Error Type: KeyError
>>Error Value: 'query'
T
>>>>
>>>>And where does this log information end up?
>>>
>>--
>
>
> I was referring to the zLOG info. Where does it go?
Wherever you configure it in your zope.conf file.
- --
===
T
ct homepage:
http://sourceforge.net/projects/mysql-python
- Patch collector:
http://sourceforge.net/tracker/?group_id=22307&atid=374934
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion S
many Perl modules are widely used by many
> applications, whereas a lot of Zope code is only used by other Zope
> code.
One of the major promises of Zope3 is that it makes for more modular
code, because its component architecture makes it easy and natural to
break apart monolithic classes in
ls you, quite clearly, even
> in German, that you don't have enough memory on that machine.
I used to see errors similar to that one (but not in German ;) when
building the Zope extension modules on a machine with a flaky RAM chip.
Tres.
- --
===
Tres Seaver
t;in context of" the object being validated.
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using
e
inaccessible, and *large*, files there.
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.
ng url.
The Zope security machinery goes out of its way to prevent such an
exploit: essentially, it considers only "containment" acquisition when
evaluating roles, etc.
Tres.
- --
=======
Tres Seaver +1 202-558-7113
a 'logs' directory if you feel obsessive about keeping
the logs elsewhere), so that works out well.
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"http://palladion.com
-BEGIN PGP SI
In Zope3, one accomplishes your use case by registering a utility for
the interface your singleton provides, without supplying a name.
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"
"'
attribute to your 'queue_template', and then include it as a macro, e.g.:
T
and::
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software &q
e" to find out how to set this up (or create a
VHM and read its fairly helpful configuration ZMI to start).
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Des
Chairman, Zope Corp
> o Rob Page, CEO, Zope Corp
> o Rajesh Setty, Chairman, Cignex
> o Dan Ravicher, Legal Director, Software Freedom law Cnter
>
> Regards,
> Rob
Many thanks to all those who are working on the foundation!
Tres.
- --
======
You can use 'tal:condition repeat/licenses/start' to test that you are
in the first pass through the loop.
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "
rg/CMF/branches/1.5/CMFCore/CookieCrumbler.py?rev=37453&view=auto
Tres.
- --
=======
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"http://palladion.com
-
7; or an equivalent on the box to verify that you don't
have a flaky RAM chip.
- If you are RAM constrained, *reduce* the number of objects in the
connection cache; more objects in that cache requires more RAM.
Leaving the on-disk cache size high shouldn't be a problem.
commend that Marco upgrade to avoid the kind
of consistency issues you point out.
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"http://palladion.com
render
> * Module Products.PageTemplates.PageTemplate, line 96, in
> pt_render
>
> TypeError: unbound method pt_getContext() must be called with
> ZopePageTemplate instance as first argument (got nothing instead) (Also,
> an error occurred while attempting to render the sta
e the
NuxCPSDocuments product installed in both places?).
Tres.
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (GNU
uly), did
not completely remove the 'os.pathwalk': it merely made the exclusion
of the .svn directory work cleanly. The better fix would be to use the
Win32 APIs for file monitoring; Mark Hammond volunteered to look into that.
Tres.
- --
off' also avoids this issue, if
you can't upgrade CMF for some reason (and you *should* be running this
way if performance matters, anyway).
Tres
- --
===
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
and date of a zope object when it was
> created
Creation date isn't available for "stock" Zope objects. CMF and
derivatives mandate a 'created' method for "content."
Tres.
- --
=======
Tres Seave
; that is a ways off yet. What am I doing wrong can anyone help?
What versions of Python, Zope, etc. are you running, and on what OS?
Your latest posting (the "blocked transaction" entries in your storage
server logs) sounds like you might be running Zope 2.6.x.
Tres.
- -
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Dan Gaibel wrote:
> At 07:22 PM 8/27/2005 -0400, Tres Seaver wrote:
>
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>>
>> Dan Gaibel wrote:
>> > Hi folks,
>> >
>> > This is my first post
now. Any help or guidance would be very appreciated.
Can you run 'lsof' against your Data.fs? or run 'killall python' (not
as root, unless Zope is the only process which might be running Python).
Tres.
- --
7;user': Anonymous User}
>
> * Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
> __traceback_info__: here.sponsors[0] != ''
> * Module Python expression "here.sponsors[0] != ''", line 1, in
>
> * Module Acce
pan KK, a company specializing in
localizing Zope applications for Japanese and other Big5 markets.
Tres.
- --
=======
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by D
ight be able to
improve performance by running Apache on a separate box, where it won't
"steal" CPU from Zope to do the compression.
Tres.
- --
=======
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED
ces(dumper, object, path):
""" Create a file or files on the filesystem
"""
def initialize(context): # could be the ExternalMethod, too
from Products.FSDump.Dumper import Dumper
handler_overrides = {'My ZClass' : _dumpMyZClassInstances,
Solaris, because that was what made the SAs
feel warm-n-fuzzy).
Matt Hamilton's report is still probably your best resource if you find
yourself with the gun to your head:
http://www.zope.org/Members/glpb/solaris
Tres.
- --
===
401 - 500 of 642 matches
Mail list logo