Re: [Zope] high loads, more threads, spinning wheels

2005-04-30 Thread Jens Vagelpohl
Can this be taken to mean that:
- the practical maximum number of threads to run your single (non-ZEO)
zope instance is {number of zodb connections in pool} else you risk
deadlock
No, there should be more connections than threads, just as in the 
original configuration.


if yes, would upping the number of ZODB connections effectively raise
the ceiling - e.g. 12 ZODB connections -> 12 threads should perform
properly ?   Is increasing the number of ZODB cx's possible, let alone
advisable?  (why the default of 7 - not 6 or 8?)
More concretely, is there any good way to increase the request-handling
capacity of a standalone instance, beyond the limits imposed by the
defaults, without deploying ZEO?
Trying to squeeze a single instance that way is fraught with problems, 
and not just the experimentation needed to come up with sane values for 
threads, connections, and then connection cache sized to avoid memory 
contention. A single Zope process also means you are running one Python 
process with one global interpreter lock. It's just a bad situation to 
base a production site on. Use ZEO and set up additional clients as 
needed, anything else is hackish and error-prone.

jens
___
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/mailman/listinfo/zope-dev )


Re: [Zope] custom_zodb.py and Control_Panel

2005-04-30 Thread Jens Vagelpohl
On Apr 29, 2005, at 20:32, Jim Abramson wrote:
v2.7.4 running on Linux - I'm trying to use this (custom_zodb.py in 
INSTANCE_HOME)
custom_zodb.py is no longer used for Zope 2.7.x. You define databases 
in zope.conf.

jens
___
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/mailman/listinfo/zope-dev )


Re: [Zope] custom_zodb.py and Control_Panel

2005-05-02 Thread Jens Vagelpohl
On May 2, 2005, at 14:49, Jim Abramson wrote:
v2.7.4 running on Linux - I'm trying to use this (custom_zodb.py in
INSTANCE_HOME)
custom_zodb.py is no longer used for Zope 2.7.x. You define
databases in zope.conf.
Ah, OK thanks.
Is it for the collector that, aside from messing up the ZMI a bit, the
custom_zodb.py approach is still basically effective?
I suppose it could be argued that custom_zodb.py should simply not be 
read in any longer, or throw big fat warnings.

jens
___
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/mailman/listinfo/zope-dev )


Re: [Zope] Password Protection

2005-05-06 Thread Jens Vagelpohl
On May 6, 2005, at 12:08 , Phil Beardmore wrote:
This may be a really simple thing to do (but I'm a bit stuck and  
searched the web but found no answers).  I have a Plone site  
working great.  I have a folder which I wish to password protect  
(and all of the data in the folder).  Thing is, I want to use our  
LDAP server for authentication.  I have the site setup as normal  
with an ACL_users folder.  I then have a folder called  
"protected".  In this folder I have added a LDAPUserFolder object  
and linked it with our main LDAP server.  Question is, how do I use  
this LDAPUserFolder to provide authentication for the "Protected"  
folder?
???
There is nothing you set up to make Zope "use" a user folder. It will  
automatically be consulted.

jens
___
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/mailman/listinfo/zope-dev )


Re: [Zope] Password Protection

2005-05-06 Thread Jens Vagelpohl
On May 6, 2005, at 1:24 , Andreas Pakulat wrote:
There is nothing you set up to make Zope "use" a user folder. It will
automatically be consulted.

As long as the object has an id of "acl_users".
Umh, no. First of all, all user folders have that ID. If not, they  
are not user folders. Secondly, the ID is not used to hook into the  
authentication mechanism. It has nothing to do with it really.

jens
___
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/mailman/listinfo/zope-dev )


Re: [Zope] Password Protection

2005-05-06 Thread Jens Vagelpohl
On May 6, 2005, at 1:26 , Andrew Milton wrote:

| > There is nothing you set up to make Zope "use" a user folder.  
It will
| > automatically be consulted.
|
| As long as the object has an id of "acl_users".

And the containing folder has __allow_groups__ attribute set to  
that user
folder.

In fact you can call your user folder anything, as long as this  
attribute is
set to be the instance..

Exactly.
jens
___
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/mailman/listinfo/zope-dev )


Re: [Zope] Password Protection

2005-05-06 Thread Jens Vagelpohl
On May 6, 2005, at 2:23 , Phil Beardmore wrote:
Hi Guys, still cant get it to work.  Is it okay to have multiple  
ACL_users folders?  Basdically I want to grant access to Folder A  
to all users in one tree of our LDAP server, then grant access to  
Folder B to all users in another Tree.  I can get the folder to be  
password protected, so they need to login to access the pages, but  
it always seems to use the acl_users folder at the root of the site.
It is perfectly OK to have several user folders. The "closest one"  
looking towards the root of the ZODB will be used when accessing a  
resource, and if it cannot resolve the credentials the next one up is  
consulted, until you reach the root user folder.

The fact that authentications falls through to the root user folder  
makes me thing the LDAPUserFolder instance is misconfigured.

jens
___
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/mailman/listinfo/zope-dev )


Re: [Zope] Is it possible to extend Zopes WebDAV authentication?

2005-05-07 Thread Jens Vagelpohl
On May 6, 2005, at 23:52 , mark hellewell wrote:
On 5/6/05, Tino Wildenhain <[EMAIL PROTECTED]> wrote:
Actually, it does not. You have no such thing like a session
when all you have is webdav. I dont know if many dav-clients
store cookies too - it may depend on your usecase.
Yes the use-case is Windows Explorer users only.
If this is supposed to use that "Web Folder" thingy in Windoze  
Explorer you might want to reconsider. That WebDAV implementation is  
seriously broken. Installing helpers like WebDrive on Windoze seems  
to make WebDAV access work for many people.

jens
___
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/mailman/listinfo/zope-dev )


Re: [Zope] Zope stops responding on hpux

2005-05-07 Thread Jens Vagelpohl
On May 7, 2005, at 23:45 , Samuel Bieri wrote:
Dear list-members
I am desperately trying to get our zope application run on hpux,  
and any help is greatly appreciated. I have the following problem:
I know this isn't really helpful, but when it comes to exotic  
operating systems like HP-UX you might be all on your own and there  
won't be many people to help. If you really want to use Zope it might  
be easier and cheaper in the long run to buy a i386-based commodity  
server and put Linux on it.

jens
___
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/mailman/listinfo/zope-dev )


Re: [Zope] Access log

2005-05-09 Thread Jens Vagelpohl
On May 9, 2005, at 20:17, Luiz Fernando B. Ribeiro wrote:
Hi all,
I am hosting several virtual hosts and I need to provide access log  
reports (like awstats) for my clients. I would like to know if any  
of the following alternatives is possible:

1. Is it possible to have diferent access log files for each  
virtual host?

2. Is it possible to include the "%v" (virtualhost) field in the  
current access log?

No on both counts. I suggest you use something in front of Zope, like  
Apache, and analyze its logs instead.

jens
___
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/mailman/listinfo/zope-dev )


Re: [Zope] Hiding HTML URL

2005-05-09 Thread Jens Vagelpohl
On May 10, 2005, at 00:48, J Cameron Cooper wrote:
But please note, this is very hostile web design. I would suggest  
you re-think your need for such a "feature".
"Hostile" is an excellent word for that kind of behavior. It  
certainly breaks quite a few rules in the "user friendliness" book.

So what exactly is the goal for following such a user-defeating  
technique?

jens
___
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/mailman/listinfo/zope-dev )


Re: [Zope] LDAPUserFolder and roles/groups assignment Problem

2005-05-11 Thread Jens Vagelpohl
On May 11, 2005, at 11:21, Bernard Lange wrote:
Traceback (innermost last):
* Module ZPublisher.Publish, line 101, in publish
* Module ZPublisher.mapply, line 88, in mapply
* Module ZPublisher.Publish, line 39, in call_object
* Module Products.GroupUserFolder.GroupUserFolder, line 1372,  
in changeOrCreateUsers
* Module Products.GroupUserFolder.GroupUserFolder, line 1110,  
in _updateUser
* Module Products.GroupUserFolder.GroupUserFolder, line 1057,  
in _doChangeUser
* Module Products.GroupUserFolder.LDAPUserFolderAdapter, line  
138, in _doChangeUser
* Module Products.LDAPUserFolder.LDAPUserFolder, line 1497, in  
manage_editUserRoles

AttributeError: 'NoneType' object has no attribute 'find'
That "LDAPUserFolderAdapter" thingamajig is feeding garbage to the  
LDAPUserFolder.manage_editUserRoles method.

These questions should probably go to Plone/GRUF lists.
jens
___
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/mailman/listinfo/zope-dev )


Re: [Zope] what are the dtml for logout and deleting a existing user??

2005-05-11 Thread Jens Vagelpohl
On May 11, 2005, at 22:32, Andreas Pakulat wrote:
That's not necessary, look at the ZMI, there is a logout option in the
dropdown box. I never digged into "zmi_logout" (IIRC it has that name)
but I think it is not accessible by _any_ Zope-User even not the
Emergency User, so regardless of what you type in the Login-dialog you
get logged out. The only problem I find is that you get presented a
login dialog which always fails to login and this is a bit "weird" as
"logout-action".
That's only as weird as basic HTTP auth itself. There *is* no other  
way to make the browser discard the credentials you typed in other  
than to tell the browser that an access is unauthorized, which will  
then always pop up the login box again.

This has nothing to do with Zope, it's just basic HTTP auth.
jens
___
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/mailman/listinfo/zope-dev )


Re: [Zope] Export/import preserving bobobase_modification_time?

2005-05-12 Thread Jens Vagelpohl
On May 12, 2005, at 12:28, Marcin Kasperski wrote:
Is it possible to somehow export data from Zope instance and import
into another one preserving somehow bobobase_modification_time info?
No it is not.
If you need a time value to store a time you are interested in you  
should create and maintain it yourself in your code.

jens
___
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/mailman/listinfo/zope-dev )


Re: [Zope] custom_zodb.py and Control_Panel

2005-05-12 Thread Jens Vagelpohl
On May 12, 2005, at 21:45, Chris Withers wrote:
Jens Vagelpohl wrote:
I suppose it could be argued that custom_zodb.py should simply not  
be read in any longer, or throw big fat warnings.

Why wouldn't it still work fine, apart from some minor Control  
Panel barfage?
You will agree that it is confusing at best to even allow a  
completely different and totally unmaintained way of configuring  
these things. zope.conf is the way it should be done, and people who  
don't do it yet should be reminded to change their config.

jens
___
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/mailman/listinfo/zope-dev )


Re: [Zope] dollars-and-cents display fails

2005-05-12 Thread Jens Vagelpohl
On May 13, 2005, at 03:21, Greg Fischer wrote:
Thanks Andy.  I do have those versions.  But Python is 2.3.5 because I
didnt want to move to 2.4.x as I think I read something in the README
for Zope stating it was not tested for compatibility. (right?)
Yes, that is correct. Do not use it if you expect anyone here to help  
with problems you encounter.

jens
___
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/mailman/listinfo/zope-dev )


Re: [Zope] LDAPUserFolder at Zope root

2005-05-27 Thread Jens Vagelpohl


On May 26, 2005, at 22:34, J Cameron Cooper wrote:


Oscar Figueiredo wrote:


this might be trivial but I just can't find a way to do it.  How  
does one
replace the initial UserFolder at Zope root with a  
LDAPUSerFolder ?  I tried the dummy way : delete the acl_users  
with an intent to instanciate a
LDAPUSerFolder afterwards but that locked me out in a way I could  
do nothing

but recreate a new Zope instance...  skip-authentication-checking in
etc/zope.conf didn't help...



Do not do that. You don't want to get locked out of your Zope  
because of LDAP problems.


The emergency user always works. You can't lock yourself out due to  
LDAP problems. If anyone sees a symptom like that on the current  
LDAPUserFolder version it will be fixed right away because it is a bug.


jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] LDAPUserFolder at Zope root

2005-05-28 Thread Jens Vagelpohl


On May 27, 2005, at 19:29, J Cameron Cooper wrote:
Do not do that. You don't want to get locked out of your Zope   
because of LDAP problems.


The emergency user always works. You can't lock yourself out due  
to  LDAP problems. If anyone sees a symptom like that on the  
current  LDAPUserFolder version it will be fixed right away  
because it is a bug.




Yes, you can always break into Zope that way. But that's not  
something I would want to plan to do, especially when the  
alternative is so easy.


My point is simply that asserting "never do that, you will lock  
yourself out" is just spreading FUD unless you work with badly  
written user folders.


jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] Uploading files

2005-06-04 Thread Jens Vagelpohl


On 3 Jun 2005, at 18:09, Nikko Wolf wrote:

In my python script I use:
   filedata = container.REQUEST.file.read()
then merge this data into a MIME submission for the external web  
site, and on success, save it locally as a "file".


My question is -- aside from memory usage, what problems might  
there be with this approach?


It is *highly dangerous* to start requests to external resources from  
a running Zope request, unless you make sure the external request has  
a timeout that kicks in if it hangs for any reason. Just four hanging  
external resource requests and your Zope site is dead because all  
available threads are in use...


jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] Reloading iframes with DTML

2005-06-08 Thread Jens Vagelpohl


On 8 Jun 2005, at 07:47, Wim Bekker wrote:




Hi,

Suppose I have two iframes in a DTML document. If I submit a form  
in one

iframe and reload this iframe, I want to also reload the other iframe.
This can be done with javascript.

Is there a way to do this with DTML or python?


You're confusing server-side and client-side here. DTML and python  
work on the *server* and cannot cause the client browser to reload  
anything. You need *client-side* scripting or simple HTML methods  
like the meta refresh tag.


jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] developing with zmi: how to move a patch from data from devel to live?

2005-06-20 Thread Jens Vagelpohl


On 20 Jun 2005, at 07:35, gabor wrote:

now you create the fix/improvement on the devel server.

but now how do you move the improvement/fix to the live server?
you cannot just copy the data.fs over. the customer already has  
some content/data in it...



one way seems to be to not use the ZMI at all. you create an  
install python script, which calls the methods of the ZMI  
interface. this way works, but it seems for me to waste my time.  
finding the right method that the gui calls to call it from the  
install script seems stupid for me.


but it solves the problem. with the script i can really make the  
changes i need on the devel server.


so, is there a solution where i can use the ZMI?

how do you solve this kind of problem?


The problem is that you develop using the ZMI. It's a bad pattern.  
Don't do it.


jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] developing with zmi: how to move a patch from data from devel to live?

2005-06-20 Thread Jens Vagelpohl


On 20 Jun 2005, at 10:16, gabor wrote:

well, or let me ask the question a different way:
if i should not use the ZMI, then why is it there?


The ZMI is great for maintenance tasks, but not great for software  
development. You already ran into the first issue, replicating  
changes to other machines. Then there is no way to apply sane  
software development techniques, like using version control software  
and developing in a team.


jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] ZPT tutorial

2005-06-21 Thread Jens Vagelpohl


On 21 Jun 2005, at 23:23, Tamas Hegedus wrote:


Hi,


In addition, Zope is heading fast into even less friendly  
territory. DTML, which is technically 'mucky' but reasonably easy  
to grasp for non-programmers,



> is increasingly deprecated.

I just started to learn Zope recently. I choose dtml over page  
templates to learn as it

=> seemed to me easier (maybe as I am a non-programmer);
=> has the possibility to build dynamic SQL queries;
=> was written in the Book to exist forever.

I would like to know that 'increasingly deprecated' means by  
everybody (I mean here: in the www-programmers-word), or just by Zope.


That's FUD and not true. DTML is not being deprecated, period. Don't  
believe anyone who says that. Everyone should choose the tool they  
work with best, and DTML is suitable for many people. There's more  
people who choose to use ZPT nowadays, but that does not mean DTML  
will be deprecated.


jens


___
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/mailman/listinfo/zope-dev )


Re: [Zope] Removing old FileStorage backups from repozo

2005-06-27 Thread Jens Vagelpohl


On 27 Jun 2005, at 14:00, Felix Ulrich-Oltean wrote:

Can I just go in and delete files older than X days from the backup
directory, or will this upset repozo, which apparently keeps info
about its backup files in the .dat file?


You can safely delete all files older than your last *full backup*.

jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] 2.5.1 to 2.8.0

2005-06-27 Thread Jens Vagelpohl


On 27 Jun 2005, at 21:30, Paul Winkler wrote:

2005-06-27T13:06:58 WARNING ZODB Could not import class  
'SimpleLog' from

module 'Products.LDAPUserFolder.SimpleLog'



It's pretty clear that Zope is having a major problem with
LDAPUserFolder.  Possibly you have an old version of LDAPUserFolder
that is not compatible with Zope 2.8?
New versions can be downloaded here:
http://www.dataflake.org/software/ldapuserfolder/


Let's just say that whatever LDAPUserFolder version you ran with Zope  
2.5.1 has long since passed into the "unsupported" pile...


- Get the latest released LDAPUserFolder version and install it into  
your new Zope 2.8-based instance

- Make a backup copy of your old ZODB
- Log into a 2.5.1-based instance as the emergency user (-> see doc/ 
SECURITY.txt in your 2.5.1 Zope installation about how to create one)  
- if you don't have a LDAPUserFolder in the Zope root you can skip  
that and log in as a Manager user from the root user folder

- Delete every single LDAPUserFolder instance you have
- Stop Zope
- Copy the Data.fs into your Zope 2.8-based sandbox
- If you had a LDAPUserFolder at the root, make sure you're set up  
for an emergency user
- Start Zope and log in either as an emergency user or a root user  
folder manager

- Recreate all LDAPUserFolder instances.

jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] 2.5.1 to 2.8.0

2005-06-27 Thread Jens Vagelpohl


On 27 Jun 2005, at 22:27, Tim Suter wrote:

We don't want to use LDAPUserFolder for authentication.  The preferred
method of authentication is against an authzldap enabled apache.  Or
when authenticating, is it necessary to add the LDAPUserFolder?   
Which,

this might explain why when attempting to edit the page, it would ask
for authentication.


If you don't use the LDAPUserFolder then simply delete all instances  
in your 2.5.1-based sandbox.


Just FYI, having another webserver do authentication and making that  
work nicely with Zope Sucks with a Capital S. Most of the time there  
is no valid reason to go that route, other than the lame excuse "but  
we only know it this way".


Requests for Zope should be proxied/rewritten through and Zope can do  
the authentication itself. If mod_authzldap works, LDAPUserFolder  
will work fine as well.


jens

___
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/mailman/listinfo/zope-dev )


[Zope] CMF 1.5.2beta released

2005-06-28 Thread Jens Vagelpohl
Zope Corporation is pleased to announce the release of version  
1.5.2beta of the Zope Content Management Framework (CMF). This  
release is intended for testing purposes only;  we do not recommend  
deploying it to production servers.  The final release of version  
1.5.2 is expected mid-July 2005.


What is the CMF?

The Zope Content Management Framework provides a set of
services and content objects useful for building highly
dynamic, content-oriented portal sites.  As packaged, the
CMF generates a site much like the Zope.org site.  The CMF is
intended to be easily customizable, in terms of both the
types of content used and the policies and services it
provides.

Where do I get it?

Download it from http://zope.org/Products/CMF/CMF-1.5.2beta

Points of interest include:

- "Windows ZIP file",
  http://zope.org/Products/CMF/CMF-1.5.2beta/CMF-1.5.2beta.zip

- "Unix tar/gzip archive",
  http://zope.org/Products/CMF/CMF-1.5.2beta/CMF-1.5.2beta.tar.gz .

- "Release notes",
  http://zope.org/Products/CMF/CMF-1.5.2beta/README.txt

- "Change history",
  http://zope.org/Products/CMF/CMF-1.5.2beta/CHANGES.txt

- "Installation instructions",
  http://zope.org/Products/CMF/CMF-1.5.2beta/INSTALL.txt

Where do I go to learn more?

The CMF mailing list ([EMAIL PROTECTED]) has many
participants who are active in supporting the CMF.

...to report bugs?

The "CMF Collector":http://zope.org/Collectors/CMF
is the place to report bugs (please search for existing
reports of your issue first!)


___
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/mailman/listinfo/zope-dev )


Re: [Zope] Breadcrumb dilemma

2005-06-28 Thread Jens Vagelpohl


On 28 Jun 2005, at 23:50, Adamo, Steven wrote:
However, the breadcrumb trail will only display "you are here:  
home".  I

simply cannot figure out what I haven't included (or what I "killed"
when I created my new skin) that will make the breadcrumb pick up the
new folder (you are here: home > company).


Since that is probably specific Plone functionality you might be  
better off asking on the Plone lists.


jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] blacklisting referers and/or specific hosts

2005-07-03 Thread Jens Vagelpohl


On 3 Jul 2005, at 20:05, Tim Hicks wrote:
So, I'm wondering if there's a way to blacklist those clients that  
I don't

like based on host/ip and/or on referer.


If there is a set of distinguishable IPs/hosts, then use a tool that  
was *made* for that purpose such as a firewalling/filtering tool  
(IPTables, IPChains, fw, etc) and not Zope.


jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] Apache 2 + Zope can't gzip HTTP response body?

2005-07-04 Thread Jens Vagelpohl


On 4 Jul 2005, at 01:26, Daniel Dekany wrote:

Thanks! Just on more thing... According to
http://sourceforge.net/mailarchive/forum.php? 
thread_id=7393296&forum_id=12354

the gzip compression was enabled by default in Plone 2.0.x (only from
2.0.4 I guess), but will be disabled in 2.1. If it is true, why? Is it
not recommenced after all? (Actually I try to gzip only because my
predecessor did...)


I suggest you ask on the Plone list.

jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] Re: Re: zopectl debug, 2.8.0 local zeo, Data.fs.lock file locking error

2005-07-05 Thread Jens Vagelpohl


On 5 Jul 2005, at 12:20, Florent Guillaume wrote:


Running zopectl debug runs your normal instance with additional debug
breakpoints and pdb started. So in the same way that you cannot start
the same instance twice, you cannot start your instance and a zopectl
debug at the same time.


Umh, that's incorrect. zopectl debug has nothing to do with debug  
breakpoints or pdb. And you can run it right alongside your running  
Zope instance. All it does is present you with a Python prompt where  
the root object is bound to "app", nothing more and nothing less.


jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] Re: Re: zopectl debug, 2.8.0 local zeo, Data.fs.lock file locking error

2005-07-05 Thread Jens Vagelpohl


On 5 Jul 2005, at 12:55, Jens Vagelpohl wrote:
Umh, that's incorrect. zopectl debug has nothing to do with debug  
breakpoints or pdb. And you can run it right alongside your running  
Zope instance. All it does is present you with a Python prompt  
where the root object is bound to "app", nothing more and nothing  
less.


One correction: If you use ZEO you can run it alongside the running  
instance. Otherwise, since it would want exclusive access to the  
database, you could not. One of the reasons why ZEO is recommended  
even in single server setups.


jens


___
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/mailman/listinfo/zope-dev )


Re: [Zope] LDAPUserFolder OLD and Zope 2.5.1 migration to LDAPUserFolder 2.5 and Zope 2.8

2005-07-05 Thread Jens Vagelpohl


On 5 Jul 2005, at 18:42, Tim Suter wrote:

- Log into a 2.5.1-based instance as the emergency user (-> see doc/
SECURITY.txt in your 2.5.1 Zope installation about how to create one)

I can't do this part because I was left with no info in regards to  
what

the credentials are as the emergency user.  I have located the access
file though.  Can I delete this file and create a new one  
documented in

SECURITY.txt?


yes

jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] Pluggable Auth Service ... how is it used?

2005-07-07 Thread Jens Vagelpohl


On 7 Jul 2005, at 06:41, Richard Jones wrote:


I'd like to get session-based login going, and on the surface PAS  
appears to

support that.

First up, is there any documentation?

I've set up in my PAS "acl_users" the following objects:

1. "cookies" - a Cookie Auth Helper active for Challenge
2. "session" - a Session Auth Helper active for  Extraction, Update
Credentials and Reset Credentials
3. "users"   - a ZODB User Manager with a single user "test"
4. "roles"   - a ZODB Role Manager with the "test" user assigned to  
"Manager"


Then accessing a "Manager" protected method inside the folder  
brings up the
login form from the Cookie Auth Helper, but submitting that form  
does nothing

(it returns the empty form to me).



Add "Extraction" to the cookie object. Only the cookie object would  
know how to extract credentials coming back from the cookie object's  
challenge. Makes sense, doesn't it?


I have described such a setup before either here or on the PAS list  
itself, take a look at the archives. The very first challenge and  
extraction is done by the cookie auth helper, and the credentials are  
then stored by the session auth helper which is doing all extractions  
after that.


jens


___
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/mailman/listinfo/zope-dev )


[Zope] CMF 1.5.2beta released

2005-07-09 Thread Jens Vagelpohl
Zope Corporation is pleased to announce the release of version  
1.5.2beta2 of the Zope Content Management Framework (CMF). This  
release is intended for testing purposes only;  we do not recommend  
deploying it to production servers.  The final release of version  
1.5.2 is expected mid-July 2005.


What is the CMF?

The Zope Content Management Framework provides a set of
services and content objects useful for building highly
dynamic, content-oriented portal sites.  As packaged, the
CMF generates a site much like the Zope.org site.  The CMF is
intended to be easily customizable, in terms of both the
types of content used and the policies and services it
provides.

Where do I get it?

Download it from http://www.zope.org/Products/CMF/CMF-1.5.2beta2

Points of interest include:

- "Windows ZIP file",
  http://www.zope.org/Products/CMF/CMF-1.5.2beta2/ 
CMF-1.5.2beta2.zip


- "Unix tar/gzip archive",
  http://www.zope.org/Products/CMF/CMF-1.5.2beta2/ 
CMF-1.5.2beta2.tar.gz .


- "Release notes",
  http://www.zope.org/Products/CMF/CMF-1.5.2beta2/README.txt

- "Change history",
  http://www.zope.org/Products/CMF/CMF-1.5.2beta2/CHANGES.txt

- "Installation instructions",
  http://www.zope.org/Products/CMF/CMF-1.5.2beta2/INSTALL.txt

Where do I go to learn more?

The CMF mailing list ([EMAIL PROTECTED]) has many
participants who are active in supporting the CMF.

...to report bugs?

The "CMF Collector":http://www.zope.org/Collectors/CMF
is the place to report bugs (please search for existing
reports of your issue first!)



___
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/mailman/listinfo/zope-dev )


Re: [Zope] ldap authentication with apache or LDAPUserFolder?

2005-07-11 Thread Jens Vagelpohl


On 11 Jul 2005, at 17:00, Tim Suter wrote:


As some of you know, I am working on an installation of Zope/Zwiki.
What I have inherited is a 2.5.1 Zope/Zwiki on a Debian box.  I am
wanting to move the data from the 2.5.1 to a 2.8.  But here's the
situation.




Why don't you just *try* different combinations and see what happens?  
Like, comment out the Apache AuthLDAP stuff and see what happens.


jens


___
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/mailman/listinfo/zope-dev )


Re: [Zope] security for ZPT-based Product

2005-07-11 Thread Jens Vagelpohl


On 11 Jul 2005, at 17:41, Andreas Pakulat wrote:

add a security.declareProtected('comment_add_form', '')

Where the second string would be one of the rights listed on the
security tab with in the ZMI. If that right is granted to the
authenticated user only, you have your access restrictions.


It's the other way around. Permission first, then the method name.

jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] LDAPUSerFolder permission problem

2005-07-12 Thread Jens Vagelpohl


On 12 Jul 2005, at 14:03, Nicholas Watmough wrote:

I'm trying to access the getProperty() method of the LDAPUser class  
in a Python script, in order to access the Active Directory email  
address of the user.


There is no problem with this, if I use the method on the current  
active user. However, it doesn't work when I attempt to use the  
method on another property.


The output of VerboseSecurity is:

*Error Type: Unauthorized*
*Error Value: Your user account does not have the required  
permission. Access to 'getProperty' of nwuser denied. Your user  
account, abuser, exists at /acl_users. Access requires one of the  
following roles: ['Manager']. Your roles in this context are  
['Anonymous', 'Authenticated', 'User'].*


It appears that the currently authenticated used has the 'View'  
permission (required to use getProperty) on itself, but not for  
other users. I'm not sure how to change this.


I'm assuming that the "other" user is not wrapped. How are you  
getting that other user object?


jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] How to create Version Object

2005-07-12 Thread Jens Vagelpohl


On 12 Jul 2005, at 15:28, Charlene wrote:


I'm using the book The Book of Zope: How to Build and Deliver Web
Applications to learn Zope.  I'm on the chapter on Versions.   
Neither the book nor Zope documentation explains exactly how to  
create a version.


That's probably your luck. They are deprecated, unsupported, and  
carry the risk of data loss. So you should not be using them, anyway :)


jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] How to create Version Object

2005-07-12 Thread Jens Vagelpohl


On 12 Jul 2005, at 19:57, Charlene wrote:

Except in the documentation.   Which made it even more confusing.   
I guess I'll skip this chapter of the book.


Books about fast-evolving software always carry the big risk of  
becoming at least partially obsolete quickly. Not much one can do  
about that.


jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] LDAPUSerFolder permission problem

2005-07-15 Thread Jens Vagelpohl


On 14 Jul 2005, at 02:53, Nicholas Watmough wrote:

I'm not sure what you mean by a 'wrapped' user. What causes a user  
to have a wrapper in Zope?


I am getting the 'other' user via the following code:

user = context.acl_users.getUserById(username)

Will this cause the user to be returned with a wrapper, and if so,  
how would I remove the wrapper?


No, it's the other way around. You want the wrapper. getUserbyId  
returns unwrapped users.


If you use CMF or something based on CMF you could use the membership  
tool's getMemberById to return something more useful, otherwwise  
you'll have to do the wrapping yourself:


user = acl_users.getUserById(user_id).__of__(acl_users)

jens

___
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/mailman/listinfo/zope-dev )


[Zope] CMF 1.5.2 Released

2005-07-17 Thread Jens Vagelpohl
Zope Corporation is pleased to announce the release of version 1.5.2  
of the Zope Content Management Framework (CMF). This release marks  
the latest stable release in the CMF 1.5 series and should be  
suitable for production use.


What is the CMF?

The Zope Content Management Framework provides a set of
services and content objects useful for building highly
dynamic, content-oriented portal sites.  As packaged, the
CMF generates a site much like the Zope.org site.  The CMF is
intended to be easily customizable, in terms of both the
types of content used and the policies and services it
provides.

Where do I get it?

Download it from http://zope.org/Products/CMF/CMF-1.5.2

Points of interest include:

- "Windows ZIP file",
  http://zope.org/Products/CMF/CMF-1.5.2/CMF-1.5.2.zip

- "Unix tar/gzip archive",
  http://zope.org/Products/CMF/CMF-1.5.2/CMF-1.5.2.tar.gz

- "Release notes",
  http://zope.org/Products/CMF/CMF-1.5.2/README.txt

- "Change history",
  http://zope.org/Products/CMF/CMF-1.5.2/CHANGES.txt

- "Installation instructions",
  http://zope.org/Products/CMF/CMF-1.5.2/INSTALL.txt

Where do I go to learn more?

The "CMF mailing list":mailto:[EMAIL PROTECTED] has many
participants who are active in supporting the CMF.

...to report bugs?

The "CMF Collector":http://zope.org/Collectors/CMF
is ths place to report bugs (please search for existing
reports of your issue first!)



---
Jens Vagelpohl[EMAIL PROTECTED]
Zetwork GmbHhttp://www.zetwork.com/


___
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/mailman/listinfo/zope-dev )


Re: [Zope] Re: How to upload a file and save it in a physical path

2005-07-17 Thread Jens Vagelpohl


On 17 Jul 2005, at 11:27, Peter Bengtsson wrote:


Why use Blob when there's ExtFile?
I don't understand the difference.


Did you follow the link and read the description? For one, Blob also  
hooks into the Zope transaction machinery, to maintain transactional  
integrity. I doubt ExtFile does...


jens

___
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/mailman/listinfo/zope-dev )


[Zope] [ATTN]: CMF and related packages moved to svn.zope.org

2005-07-17 Thread Jens Vagelpohl

Hi everyone,

I just finished migrating the CMF and related projects from  
cvs.zope.org to svn.zope.org, from CVS to Subversion. All tags and  
branches have moved, unlike Zope itself there won't be some  
development using CVS and some using Subversion. These are the packages:


- CMF
- CMF_Hotfixes
- CMF_Extras

They packages became new toplevel projects at svn.zope.org, as can be  
seen here:


  http://svn.zope.org/

Pending final agreement on the CMF list (or an overriding word from  
the CMF Pope himself) svn.zope.org will now be the canonical location  
for CMF sources. They are accessed just like Zope 2.8 and Zope trunk  
as described here:


  http://www.zope.org/DevHome/Subversion/ZopeSVNFAQ

The only difference is, of course, the last element in the path.  
Eveerything else works as described in the document linked above. The  
packages are at...


  /repos/main/[CMF|CMF_Extras|CMF_Hotfixes]

***To all CMF developers***:

Please change your sandboxes and convert them to SVN. If you see any  
problem please make it known on the CMF list as soon as possible. No  
data is lost on cvs.zope.org, so if there are show-stoppers we can  
always switch back to using CVS. Please **do not** commit into  
cvs.zope.org or svn.zope.org until we have a "yay" or "nay" on which  
repository we go forward with.


***Next steps***:

If we have agreement on using svn.zope.org a couple cleanup tasks  
need to be done, such as...


- "Close off" or "freeze" the CMF projects on cvs.zope.org to either  
disallow checkins or bring up big fat warnings if someone tries to.  
Input and ideas on this are welcome, if it was up to me I would use  
the "commitinfo" file in the CVSROOT to completely prevent updates as  
the first step.


- Change any references to cvs.zope.org in the CMF code to their  
svn.zope.org equivalents


- Change any references to cvs.zope.org on the project web pages,  
mostly http://www.zope.org/Products/CMF, to point to the svn.zope.org  
equivalent


- Change any download instructions that use CVS to instructions for SVN


jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] Re: emergency user account does not work

2005-07-21 Thread Jens Vagelpohl


On 21 Jul 2005, at 20:44, Tim Suter wrote:


The emergency user account will not work.  I have tried deleting and
creating it no with no domain restrictions.  Outside of that, I don't
know what to do.  The LDAPUserFolder IS at the root folder of the ZMI.
Could that be hanging it up?


No. The LDAPUserFolder does not interfere with emergency user handling.

jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] FSZSQLMethod.py refactory

2005-07-21 Thread Jens Vagelpohl
I did a refactory in the FSZSQLMethod.py module of CMFCore from  
SVN. I want to use my ZSQLs from the filesystem and I improved the  
module to better support to this feature.


First of all, CMF-related items are better discussed on the zope- 
[EMAIL PROTECTED] list.


Can you explain how your changes "better support" ZSQL methods on the  
file system? They work perfectly fine the way they are.


Oh, and what exactly is not working about the CMF Subversion repository?

jens


___
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/mailman/listinfo/zope-dev )


Re: [Zope] manage_changeProperties quirk?

2005-07-22 Thread Jens Vagelpohl


On 22 Jul 2005, at 11:04, Joe Bezier wrote:
So I tried pretty much everything - checking all sorts of  
permissions and other stuff, but eventually made a copy of the  
folder, to make sure it wasn't something peculiar with the folder  
name - the copy worked perfectly. So, I then replaced the original  
folder with the folder copy and this worked fine too.


So, basically, problem solved. But I'm now concerned - could this  
happen again? Is there something I'm missing? Has anyone  
experienced something like this before?


Shot in the dark: Was this folder created (and thus under effective  
ownership) of a user that has been deleted from the user folder?


jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] FSZSQLMethod.py refactory

2005-07-22 Thread Jens Vagelpohl


On 22 Jul 2005, at 14:31, Jean Rodrigo Ferri wrote:
So, the entire data information is submited in template, or either,  
the body of zsql method receives  tags and the  
arguments list too. I don't know how can it work!?


It does work.



In the top of template has a comment:

"""
(not yet) Customizable ZSQL methods that come from the filesystem.
"""

I think (not yet) means this module is not working yet, and it is  
my impression after my tests and analisys the code!


It does work. The comment is wrong. If you find something that does  
*not* work I'll be glad to look at it, but so far you have not given  
any specific information about breakages like tracebacks or steps to  
follow to produce an error.


jens


___
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/mailman/listinfo/zope-dev )


Re: [Zope] FSZSQLMethod.py refactory

2005-07-22 Thread Jens Vagelpohl


On 22 Jul 2005, at 17:17, Jean Rodrigo Ferri wrote:


Jens Vagelpohl wrote:


It does work.



How? Give me an example!


Take a look at the unit tests which exercise the FSZSQL code, there  
is a sample one that is part of the fake skins directory used by the  
CMFCore unit tests:


http://svn.zope.org/CMF/trunk/CMFCore/tests/fake_skins/fake_skin/ 
testsql.zsql?rev=37165&view=markup



I can't give this information because it doesn't raise exceptions.  
It works (not raise errors), but not properly.


I never saw an example of ZSQL Methods running from file system in  
CMF, can you give me this?


My intention is just contribute, however, solving a real problem I  
have.


You're still giving no clue about what exactly it is that works "not  
properly".


jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] Getting a methods parent (in a product)

2005-07-22 Thread Jens Vagelpohl


On 22 Jul 2005, at 18:48, Jan-Ole Esleben wrote:


Hi!

How can I get a Product instance's _actual_ parent when one of its
methods is called? (In other ways: how can I find out, from an
instance, where that instance is located without falling prey to
acquisition in Zope 2?)


from Acquisition import aq_inner, aq_parent

parent = aq_parent(aq_inner(self))

This will return the true container the instance is set in, not just  
the acquisition parent.


jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] FSZSQLMethod.py refactory

2005-07-22 Thread Jens Vagelpohl
I only wait that someone test my reimplementation of parser and  
says me it's really insignificant.


I would like at least not to have that trash (...) in  
the body of the method.


As far as the CMF goes, IMHO it doesn't make much sense to put code  
into the repository just because one person doesn't like the way  
arguments are handed to these ZSQL methods. They work perfectly as is.


I fail to see how several lines of double-hash-escaped lines is any  
less "trash" than the comment-tagged version that is there right now.


jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] Different IPs, one zope instance

2005-07-22 Thread Jens Vagelpohl


On 22 Jul 2005, at 21:16, Remy Pinsonnault wrote:


Hello everyone,

We a have a server with 5 differents IPs.

How would it be possible to specify one IP (only one out of 5) to the
Zope server?


Yes. See the "servers" directive in zope.conf, which documents all  
this very well.


jens


___
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/mailman/listinfo/zope-dev )


[Zope] Re: Getting a methods parent (in a product)

2005-07-23 Thread Jens Vagelpohl


On 23 Jul 2005, at 16:12, Peter Bengtsson wrote:

from Acquisition import aq_inner, aq_parent

parent = aq_parent(aq_inner(self))

This will return the true container the instance is set in, not just
the acquisition parent.



What's so bad about
parent = self.aq_parent


Two things:

- simply using aq_parent does not guarantee giving you the real  
containment parent. Depending on the path used to access the object  
it could be something different from the true containment parent.  
That's the power of acquisition...


- direct attribute access like that makes me feel dirty. I prefer the  
true object-oriented style where you use methods to get at stuff.


jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] zoperun vs start and ssh

2005-07-23 Thread Jens Vagelpohl


On 23 Jul 2005, at 18:46, virgil huston wrote:


This may be a stupid question, but, after searching the archives to
find out how to keep Zope running after starting and then
disconnecting from a remote ssh session, nothing works.

First, the Zope manual and all the archives messages talk about using
./start. That doesn't work for me unless I am just in the wrong
directory. I am running ./zoperun from /bin.


The "start" script was used in Zope versions up to 2.6.x, replaced by  
"zopectl" for safely starting and stopping Zope in the 2.7-series and  
up. Apart from that, packages that are put together by other people  
or by Linux distribution maintainers may have their own scripts.


I have no idea what "zoperun" is, I'm assuming you mean "runzope.py",  
which is part of 2.7.x and up? If not then this smells like some non- 
standard package, you should contact its maintainer.


jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] Searching Content Objects in Zope 3

2005-07-23 Thread Jens Vagelpohl


On 23 Jul 2005, at 19:01, Jim Vine wrote:

As recommended on this list I opted for Zope 3 to
build my app, and I'm finding it quite powerful.
However, I've hit a bit of a brick wall around
searching.


In case you don't get help here, you should subscribe to the specific  
Zope 3 list and ask there:


http://mail.zope.org/mailman/listinfo/zope3-users

jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] zoperun vs start and ssh

2005-07-23 Thread Jens Vagelpohl


On 23 Jul 2005, at 20:48, bobb wrote:


you can also run start as a param...
./zopectl start &


With zopectl the "&" is unnecessary. It does all the right things to  
go into the background and detach from the terminal by itself without  
the ampersand.


jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] 2 Zope instances on a 2 CPU linux server

2005-07-28 Thread Jens Vagelpohl


On 28 Jul 2005, at 14:11, Pascal Peregrina wrote:


Hi,

I would like to know what if using taskset (CPU affinity utility on  
linux) to bind each Zope instance to one single CPU can improve  
overall performance of both instances in any way ?


As far a I know, python can not fully take advantage of 2 CPU cause  
python threads are not OS threads.


The cost you save is the cost of processes and thread switching  
between CPUs, which may happen depending on the OS and kernel versions.


jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] Question about zserver-threads.

2005-07-29 Thread Jens Vagelpohl


On 29 Jul 2005, at 10:43, Pascal Peregrina wrote:
If I have an http-server, ftp-server and webdqv-source-server and  
if my

global zserver-threads param is set to 10, does it mean :
a)The the max number of http-server + ftp-server + webdav-source- 
server

threads will be 10 ?
b)The max number of http-server + ftp-server + webdav-source-server  
threads

will be 30 (3 zservers) ?


a

By the way, these parameters should not be tweaked without fully  
understanding the implications. This is not some magic "go fast" button.


jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] configurating Zopes for merged logs

2005-08-01 Thread Jens Vagelpohl

Zope 2.7.6 with ZEO
Python 2.4.1

I would like to configure for a single merged log.  If BE is the  
backend

machine running ZEO and FEA FEB and FEC are various front-ends for the
ZEO, what's the configuration supposed to look like to get a merged  
log
collected on the machine on which ZEO runs.   The only log I need  
to merge
is the Z2.log--the othes can be left per-Zope frontend.  While it  
would be
nice if the merged entries were serialized, it is not strictly  
necessary.

Cross machine transmission can be either UDP or TCP.


Apart from the fact that Python 2.4.1 is unsupported on Zope 2.7.6,  
have you looked at the logger section in zope.conf? You can configure  
a syslog loghandler for any log and send the logging output to a  
syslog server. See zope.conf and /lib/python/zLOG/component.xml  
for the configuration knobs.


jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] configurating Zopes for merged logs

2005-08-01 Thread Jens Vagelpohl
Exactly what I was planning to do.  The docs themselves indicate  
they are

incomplete. Is there any documentation beyond that supplied with the
distribution.   (I have read the "logging" docs and PEP 282.)


Not sure what you *need* in terms of documentation. There are only a  
couple parameters, like logging host and log facility, to specify.  
Why don't you just try it out and see what happens?




Python 2.4.1 seems to be clean and stable with Zope 2.7.6.  We've been
running it in production for a while with no problems attributable  
to it.

My understanding is that the only reason it is "unsupported" is that a
security audit has not been done on the changes from Python 2.3.5.


"Seems clean and stable" wouldn't be a good-enough reason for me to  
put production servers on an unsupported combination of software. But  
that's everyone's personal choice.


jens

___
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/mailman/listinfo/zope-dev )


[Zope] CMF 1.5.3-beta released

2005-08-02 Thread Jens Vagelpohl

The CMF developer community and Zope Corporation are pleased to
announce the release of version 1.5.3-beta of the Zope Content  
Management

Framework (CMF). This release is intended for testing purposes only;
we do not recommend deploying it to production servers.  The final
release of version 1.5.3 is expected to land within about 10 days.

What is the CMF?

The Zope Content Management Framework provides a set of
services and content objects useful for building highly
dynamic, content-oriented portal sites.  As packaged, the
CMF generates a site much like the Zope.org site.  The CMF is
intended to be easily customizable, in terms of both the
types of content used and the policies and services it
provides.

Where do I get it?

Download it from http://zope.org/Products/CMF/CMF-1.5.3-beta

Points of interest include:

- "Windows ZIP file",
  http://zope.org/Products/CMF/CMF-1.5.3-beta/CMF-1.5.3-beta.zip

- "Unix tar/gzip archive",
  http://zope.org/Products/CMF/CMF-1.5.3-beta/CMF-1.5.3- 
beta.tar.gz .


- "Release notes",
  http://zope.org/Products/CMF/CMF-1.5.3-beta/README.txt

- "Change history",
  http://zope.org/Products/CMF/CMF-1.5.3-beta/CHANGES.txt

- "Installation instructions",
  http://zope.org/Products/CMF/CMF-1.5.3-beta/INSTALL.txt

Where do I go to learn more?

The CMF mailing list ([EMAIL PROTECTED]) has many
participants who are active in supporting the CMF.

...to report bugs?

The "CMF Collector":http://zope.org/Collectors/CMF
is the place to report bugs (please search for existing
reports of your issue first!)


-
Jens Vagelpohl
[EMAIL PROTECTED]

 
___

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/mailman/listinfo/zope-dev )


[Zope] CMF 1.5.3 released

2005-08-07 Thread Jens Vagelpohl

The CMF developer community and Zope Corporation are pleased to
announce the release of version 1.5.3 of the Zope Content Management
Framework (CMF). This release marks the latest stable release in the
CMF 1.5 series and should be suitable for production use.

What is the CMF?

The Zope Content Management Framework provides a set of
services and content objects useful for building highly
dynamic, content-oriented portal sites.  As packaged, the
CMF generates a site much like the Zope.org site.  The CMF is
intended to be easily customizable, in terms of both the
types of content used and the policies and services it
provides.

Where do I get it?

Download it from http://zope.org/Products/CMF/CMF-1.5.3

Points of interest include:

- "Windows ZIP file",
  http://zope.org/Products/CMF/CMF-1.5.3/CMF-1.5.3.zip

- "Unix tar/gzip archive",
  http://zope.org/Products/CMF/CMF-1.5.3/CMF-1.5.3.tar.gz

- "Release notes",
  http://zope.org/Products/CMF/CMF-1.5.3/README.txt

- "Change history",
  http://zope.org/Products/CMF/CMF-1.5.3/CHANGES.txt

- "Installation instructions",
  http://zope.org/Products/CMF/CMF-1.5.3/INSTALL.txt

Where do I go to learn more?

The "CMF mailing list":mailto:[EMAIL PROTECTED] has many
participants who are active in supporting the CMF.

...to report bugs?

The "CMF Collector":http://zope.org/Collectors/CMF
is ths place to report bugs (please search for existing
reports of your issue first!)


-
Jens Vagelpohl
[EMAIL PROTECTED]

___
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/mailman/listinfo/zope-dev )


Re: [Zope] How to set an object's last modification time

2005-08-09 Thread Jens Vagelpohl


On 9 Aug 2005, at 04:14, Gabriel Genellina wrote:


Maybe I should not be playing with _p_serial, but how can I set the  
object's last modification time? I want it to be in sync with an  
external representation (stored in CVS).


Set your very own attribute on the object that holds the modification  
time, and modify it at will.


jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] BTree Folders questions

2005-08-10 Thread Jens Vagelpohl


On 10 Aug 2005, at 21:57, David Pratt wrote:

How many objects should one have in a single folder to consider  
using BTree Folder over the regular Folder?  Does it make sense to  
use a BTree folder for 100 - 500 objects or should it be reserved  
for situations where there are say 1000 + objects or more. Are  
there any benefits to be gained at the lower end as well or are  
there drawbacks?


I would use them with 100 and more items.


On another note, why do CMFBTree folders not appear in CMF? Is this  
the way they are supposed to work?  If so, what differentiates them  
from a BTreeFolder2 if they are not a type visible to CMF?


Do you have the BTreeFolder2 product installed? Only then can you  
instantiate and use the CMFBtreeFolder type in the types tool.


jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] BTree Folders questions

2005-08-11 Thread Jens Vagelpohl
I am using CMF 1.5.2 and Zope 2.8.0  - will upgrading again this  
week to 1.5.3 and 2.8.1  I removed my BTreeFolder2 product as it  
was indicating it was duplicated product in my event log after my  
recent upgrade - so it appears to have become part of the  
distribution.


It is part of 2.8, yes, so you will not need to install BTreeFolder2  
separately in that case (you did not mention version numbers in your  
original mailing).



I did not really understand the difference between a BTreeFolder2  
and a CMFBTreeFolder since CMFBTreeFolder did not appear as content  
even though it is displayed as an option in Core Content  in ZMI.


Content type registration for the ZMI and for CMF are two different  
things. An item showing up in the ZMI does not mean it exists in the  
types tool. A CMFBTreeFolder is just a BTreeFolder2 with all the  
necessary trimmings so it plays nice with CMF.


Portal buildout upon instantiation and types creation is handled  
through CMFSetup XML-based profiles. There is no way to express "If  
product A is installed, install type B". So for CMF 1.5, which can be  
run on Zope 2.7 and 2.8, you will have to do this step manually,  
tough luck, nothing you can do about it.


In CMF-HEAD, which depends on Zope 2.8 and thus guarantees the  
availability of BTreeFolder2, it is an oversight that CMFBTreeFolder  
is not one of the automatically installed types upon portal  
instantiation. I filed a collector issue and will look at it over the  
next couple days:


http://www.zope.org/Collectors/CMF/371

jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] Re: ZDatabaseTool - does this still exist?

2005-08-11 Thread Jens Vagelpohl


On 11 Aug 2005, at 10:31, michael nt milne wrote:


I'm looking for a phpmyadmin type tool for managing the ZODB.The
control panel view in zope doesn't let you do anything apart from the
basics. Obviously I could use python to access the db but looking for
something easier.


What exactly do you want to do that "zope doesn't let you do"?

The ZODB is not a relational database, in case that isn't already  
clear. You cannot compare the tasks you can do using tools like  
phpmyadmin with tasks that make sense for the ZODB.


jens

___
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/mailman/listinfo/zope-dev )


[Zope] Re: ZDatabaseTool - does this still exist?

2005-08-11 Thread Jens Vagelpohl

On 11 Aug 2005, at 15:01, michael nt milne wrote:


Hi
I've already made it clear in this thread exactly what I want to do!
It doesn't to be a relational db to be able to easily add fields.The
database browser tools in the ZMI are ok but basic.


No you haven't. First of all, the application you point to at the  
beginning of the thread is a tool for managing a relational database,  
but your wording sounds like you assume it is a tool for managing the  
ZODB. That tool has exactly zilch to do with the ZODB, apart from the  
fact that it runs on Zope.


The ZODB is not a relational database. You don't "add fields". You  
add objects and manipulate them. The ZMI and code you write are all  
you need.


jens

___
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/mailman/listinfo/zope-dev )


[Zope] Re: ZDatabaseTool - does this still exist?

2005-08-11 Thread Jens Vagelpohl


On 11 Aug 2005, at 15:15, michael nt milne wrote:


Whether you call them objects or fields it's still clear what I want
to do and there's no easy way to do it. Surprised someone hasn't
developed a product tn do this. I'm looking at CMFMember and perhaps
it will fit the bill.



Maybe I'm too dense, but "fields" are not "objects". If you expect  
help from a group  you should try to utilize a terminology the group  
shares. And if your description cannot be understood you will get  
blank stares, if anything.


jens


___
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/mailman/listinfo/zope-dev )


Re: [Zope] ZEO troubles on RedHat EL4 Linux

2005-08-16 Thread Jens Vagelpohl
During the Zope 2.7.7 compilation works - however most of the time  
"make

test" returns a random number of errors (somewhere between 20 and 30)
ALL related to ZEO.


Maybe someone can help if you actually *tell us* what these errors  
are. At least my own crystal ball is in the shop for repairs right  
now... :)


jens



smime.p7s
Description: S/MIME cryptographic signature
___
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/mailman/listinfo/zope-dev )


Re: [Zope] ZEO troubles on RedHat EL4 Linux

2005-08-16 Thread Jens Vagelpohl


On 16 Aug 2005, at 17:42, Andreas Krasa // WUW wrote:

Our system is a Intel Xeon 3 GHz Dual-CPU with 2.5 GB RAM running
RedHat Enterprise Linux 4 (SElinux disabled).


I just downloaded and ran all tests for Zope 2.7.7 on one of my  
boxes, a CentOS 4 install (same as RHEL 4) with all the latest fixes,  
and they all ran fine.


This must be something having to do either with your specific  
environment or with the way you ran the unit tests.


jens



smime.p7s
Description: S/MIME cryptographic signature
___
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/mailman/listinfo/zope-dev )


Re: [Zope] ZEO troubles on RedHat EL4 Linux

2005-08-18 Thread Jens Vagelpohl


On 18 Aug 2005, at 07:50, Andreas Krasa // WUW wrote:

Is that worth submitting a bug to RedHat? Or is ist more like a
"feature"? ;)


Why would RedHat care? They will just throw it back at you and say  
"sorry, Zope is not one of our supported packages".


By the way, I hope you are not running Zope on the system-installed  
Python? If you do, then change your setups to build and install your  
own Python just for Zope and test again.


jens




smime.p7s
Description: S/MIME cryptographic signature
___
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/mailman/listinfo/zope-dev )


Re: [Zope] ZEO troubles on RedHat EL4 Linux

2005-08-18 Thread Jens Vagelpohl


On 18 Aug 2005, at 11:00, Andreas Krasa // WUW wrote:

As I understood Dieter's mail, this strange behavior is caused by the
way RedHat Enterprise Linux 4 system libraries handle SIG_IGN/SIGCHLD.


That makes me wonder why it does not happen on my CentOS 4 box.  
CentOS 4 is compiled from RHEL4 SRPMs with only very minor changes,  
mostly to remove copyrighted RedHat logos and names.



Anyway - how severe are those testing failures for actually USING a  
ZEO

client/server on that particular OS as a production system?


I personally would not trust a system for production where the unit  
tests don't run until it's proven that the unit tests themselves are  
dodgy, or whatever else caused it is fixed.


jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] ZEO troubles on RedHat EL4 Linux

2005-08-19 Thread Jens Vagelpohl


On 19 Aug 2005, at 02:22, Willi Langenberger wrote:


According to
Interesstingly, if i run the test with strace, i never see the test
fail (i tried at least 30 times):


This sounds like something Tim had mentioned at one point, where  
tests can fail on a machine that is "too fast"? Both with strace and  
the debugger you "slowed the test down" a bit, and they pass. Maybe  
that's a clue, basically pointing to the fact that the tests are  
dodgy rather than the software?


jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] Re: upgrade 2.5.1 to 2.7.5 causes error in product code

2005-08-28 Thread Jens Vagelpohl


On 27 Aug 2005, at 20:15, John Schinnerer wrote:

python:here.sponsors[0] != ''

if the tuple is empty, whereas 2.5.1/2.1.3 must have been returning
some equivalent of boolean 'false' when the tuple was empty.


No. Python 2.1.3 would have blown up the same way.



Now I do this

python: (here.sponsors) and (here.sponsors[0] != '')

and it works again.
The second condition may be redundant now I suppose...?


No it is not redundant. A value ('',) would still be True as far as  
Python is concerned and would pass the first condition.


jens

___
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/mailman/listinfo/zope-dev )


[Zope] CMF 1.5.4-beta released

2005-08-28 Thread Jens Vagelpohl

The CMF developer community and Zope Corporation are pleased to
announce the release of version 1.5.4-beta of the Zope Content  
Management

Framework (CMF). This release is intended for testing purposes only;
we do not recommend deploying it to production servers.  The final
release of version 1.5.4 is expected to land within the next 10 days.

What is the CMF?

The Zope Content Management Framework provides a set of
services and content objects useful for building highly
dynamic, content-oriented portal sites.  As packaged, the
CMF generates a site much like the Zope.org site.  The CMF is
intended to be easily customizable, in terms of both the
types of content used and the policies and services it
provides.

Where do I get it?

Download it from http://zope.org/Products/CMF/CMF-1.5.4-beta

Points of interest include:

- "Windows ZIP file",
  http://zope.org/Products/CMF/CMF-1.5.4-beta/CMF-1.5.4-beta.zip

- "Unix tar/gzip archive",
  http://zope.org/Products/CMF/CMF-1.5.4-beta/CMF-1.5.4- 
beta.tar.gz .


- "Release notes",
  http://zope.org/Products/CMF/CMF-1.5.4-beta/README.txt

- "Change history",
  http://zope.org/Products/CMF/CMF-1.5.4-beta/CHANGES.txt

- "Installation instructions",
  http://zope.org/Products/CMF/CMF-1.5.4-beta/INSTALL.txt

Where do I go to learn more?

The CMF mailing list ([EMAIL PROTECTED]) has many
participants who are active in supporting the CMF.

...to report bugs?

The "CMF Collector":http://zope.org/Collectors/CMF
is the place to report bugs (please search for existing
reports of your issue first!)


-
Jens Vagelpohl
[EMAIL PROTECTED]


___
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/mailman/listinfo/zope-dev )


Re: [Zope] File objects with illegal characters

2005-08-29 Thread Jens Vagelpohl


On 29 Aug 2005, at 16:13, Peter Bengtsson wrote:

What is the best way to deal with file uploads with illegal  
characters?

I have no problem stripping the filenames such that "_Peter[1].doc"
becomes "Peter1.doc" before it's manage_addFile'ed.
But suppose I want to maintain the exact filename as it was on the
harddrive, how do you deal with that?


What is the use case?

If a filename is illegal as a URL then that's that. All you could  
possibly do would be to stick the illegal name into another attribute  
and show it as additional piece of information for the content. You  
cannot make an illegal filename legal as a URL for download, unless  
you hack the regexes in CMF/Zope and just disregard interoperability.


jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] File objects with illegal characters

2005-08-29 Thread Jens Vagelpohl


On 29 Aug 2005, at 18:39, Dieter Maurer wrote:


Jens Vagelpohl wrote at 2005-8-29 16:17 +0100:


...
If a filename is illegal as a URL then that's that.



In fact, an URL does not disallow any characters.
It only requires that some of them need to be escaped.

Thus, a Zope id could contain any character, would Zope properly
escape all characters not literally allowed in URLs.


Yes, that's always a viable solution. But as you said, it might  
require patching deep in the bowels of Zope to get that right. Or at  
the application level which could escape everything before it even  
hits the Zope level.


jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] zope 2.8 command line tracebacks

2005-08-29 Thread Jens Vagelpohl


On 29 Aug 2005, at 23:38, Ed Colmar wrote:

The 2.8 version of zope no longer displays tracebacks in the  
terminal window (after excecuting ./runzope). It just stops  
execution at any errors.  I am trying to troubleshoot a page that  
is called from another server, so I do not get to view the error  
document.


Zope does not "stop execution at any errors", and it never has. Look  
at the error log object in the ZODB root to find tracebacks. In there  
you can also enable copying error tracebacks to the event log, which  
you can tail.


jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] Sending Fax through MailHost

2005-08-31 Thread Jens Vagelpohl


On 31 Aug 2005, at 22:29, Chris Larsen wrote:

By the way, I did notice that in my address in outlook it’s  
specified as the “email-type” “FAX” and when I put a normal email  
address in it is “email type” “SMTP”.  I guess when you do [fax: ]  
it changes the email-type to FAX and uses the number as the address.



I am thinking there would have to be an additional header line  
similar to content-type but I don’t know where this would go or  
what it would be.  Is this even supported (or supportable??)


What you are trying to do is not supported because your FAX addresses  
are not valid and legal email addresses. MailHost will simply ignore  
them. You would have to write your own implementation that does  
something intelligent with those odd addresses.


jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] HELP!! Data.fs corrupted

2005-08-31 Thread Jens Vagelpohl


On 31 Aug 2005, at 22:36, Paul Sue wrote:
* Module Products.GroupUserFolder.GroupUserFolder, line 980, in  
authenticate


Any ideas??


How about you look at line 980 in the GroupUserFolder module..?

jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] Zope startup error: Archetypes: IndexError: list index out of range

2005-09-02 Thread Jens Vagelpohl


On 2 Sep 2005, at 02:38, Paul Sue wrote:
Why is it so hard to get Zope going under Solaris (is that why  
there were separate downloads

for Solaris until 2.7 ??)


Since this is an Archetypes question you might be better off asking  
on a Plone and/or Archetypes list.


Running Zope on Solaris has one major problem. It will be very slow.  
There is nothing you can do about that, except for using a different  
platform.


The separate download for Solaris was just a compiled binary, nothing  
special.


jens


___
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/mailman/listinfo/zope-dev )


[Zope] CMF 1.5.4 released

2005-09-04 Thread Jens Vagelpohl
(Sorry for the late note, my hosting provider was doing maintenance  
and I could not reach my mail server)


The CMF developer community and Zope Corporation are pleased to
announce the release of version 1.5.4 of the Zope Content Management
Framework (CMF). This release marks the latest stable release in the
CMF 1.5 series and should be suitable for production use.

What is the CMF?

The Zope Content Management Framework provides a set of
services and content objects useful for building highly
dynamic, content-oriented portal sites.  As packaged, the
CMF generates a site much like the Zope.org site.  The CMF is
intended to be easily customizable, in terms of both the
types of content used and the policies and services it
provides.

Where do I get it?

Download it from http://zope.org/Products/CMF/CMF-1.5.4

Points of interest include:

- "Windows ZIP file",
  http://zope.org/Products/CMF/CMF-1.5.4/CMF-1.5.4.zip

- "Unix tar/gzip archive",
  http://zope.org/Products/CMF/CMF-1.5.4/CMF-1.5.4.tar.gz

- "Release notes",
  http://zope.org/Products/CMF/CMF-1.5.4/README.txt

- "Change history",
  http://zope.org/Products/CMF/CMF-1.5.4/CHANGES.txt

- "Installation instructions",
  http://zope.org/Products/CMF/CMF-1.5.4/INSTALL.txt

Where do I go to learn more?

The "CMF mailing list":mailto:[EMAIL PROTECTED] has many
participants who are active in supporting the CMF.

...to report bugs?

The "CMF Collector":http://zope.org/Collectors/CMF
is ths place to report bugs (please search for existing
reports of your issue first!)


-
Jens Vagelpohl
[EMAIL PROTECTED]


___
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/mailman/listinfo/zope-dev )


Re: [Zope] RFC: Requiring Python 2.4 in Zope 2.9

2005-09-08 Thread Jens Vagelpohl


On 8 Sep 2005, at 05:33, Dennis Allison wrote:



I have been running Zope 2.7.6 with Python 2.4.1 without problems for
several months now.


I think you're missing the point here. "I've been doing X and see no  
problems" is what you are doing, but Jim is going to do the security  
audit that is necessary to make Python 2.4 the recommended platform.  
Something "seeming to work OK" doesn't imply production-readiness.


jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] Can't get ZEO running with zeoctl start

2005-09-08 Thread Jens Vagelpohl


On 8 Sep 2005, at 08:39, Mikko Koivunen wrote:

opensocket
sock.bind(tempname)
  File "", line 1, in bind
socket.error: (13, 'Permission denied')
This is annoying because I would want to put zeoctl in init.d and  
use it

with service/chkconfig. Zope 2.7.6, Python 2.3.5, running on RHEL4.


Have you checked all file permissions to ensure that the user running  
Zope can use them? My guess would be that you broke permissions by  
running as root, which simply is not a good thing to do. Run Zope  
under a normal user account, and change file ownership to that user.  
Then don't put zeoctl into init.d, write a small wrapper around it  
that uses zeoctl.


Here is what I use in init.d on my CentOS box, notice how you can  
change the user account used for starting up a service by passing "-- 
user FOO" to the daemon helper:


 
--

#!/bin/sh
# Startup script for Zope client

# chkconfig: 2345 93 03
# description: Start Zope Corp Zope Client
# inspired by chrism 01/10/2001

# Source function library.
. /etc/rc.d/init.d/functions

instance="/path/to/InstanceHome"
zopectl="$instance/bin/zopectl"

[ -f $zopectl ] || exit 0

prog="Zope"

start() {
echo -n $"Starting $prog: "
daemon --user zope $zopectl start
RETVAL=$?
echo
return $RETVAL
}

stop() {
echo -n $"Stopping $prog: "
$zopectl stop
RETVAL=$?
echo
return $RETVAL
}

case "$1" in
start)
start
;;

stop)
stop
;;

restart)
$zopectl restart
;;

logtail)
$zopectl logtail
;;
rotate)
$zopectl logreopen
;;
*)
echo $"Usage: $0 {start|stop|restart|logtail|rotate}"
exit 1

esac

##exit $RETVAL
 
-



jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] Can't get ZEO running with zeoctl start

2005-09-08 Thread Jens Vagelpohl


On 8 Sep 2005, at 09:28, Mikko Koivunen wrote:
Is it still possible it would be a file permission thing, even if  
zeoctl fg

and runzeo work?


Yes. You should run something like "chown -R : / 
path/to/Instance" as root to make absolutely sure everything is  
indeed owned by the user you're running zope as.


jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] RFC: Requiring Python 2.4 in Zope 2.9

2005-09-08 Thread Jens Vagelpohl


On 8 Sep 2005, at 08:48, Chris Withers wrote:



Jim Fulton wrote:



At:
  http://www.zope.org/Wikis/DevSite/Proposals/RequirePython24>
Is a proposal to require Python 2.4 for Zope 2.9 (to be released
this December).
Comments are welcome. :)




Well, it'd be nice if Python 2.4 was at least "acceptable" for  
2.8.x first, so the 3rd part products have some chance of finding  
2.4 bugs...




The work to make it "acceptable" for Zope 2.8 is the very same work  
needed to make it the required version for Zope 2.9. IMHO you don't  
want to do this right in the middle of the 2.8 release cycle.


If people need to test for bugs with their software under 2.4, that's  
what the 2.9 alpha/beta cycle is for.


jens


___
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/mailman/listinfo/zope-dev )


Re: [Zope] Can't get ZEO running with zeoctl start

2005-09-08 Thread Jens Vagelpohl


On 8 Sep 2005, at 09:59, Mikko Koivunen wrote:
Yes. You should run something like "chown -R :user> /

path/to/Instance" as root to make absolutely sure everything is
indeed owned by the user you're running zope as.



Chowning the full zeo/ tree to zope:zope indeed did the trick.
I was hesitant to do that because the tutorials I read suggested to  
only

chown the log/ and var/ dirs to user zope. But it works now. Thanks!


What tutorials are those? I wouldn't mind auditing those.

jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] Can't get ZEO running with zeoctl start

2005-09-08 Thread Jens Vagelpohl


On 8 Sep 2005, at 11:00, Mikko Koivunen wrote:

I get the feeling people do zope installation / configuration stuff
as the zope user and thus don't have this problem. I have the habit of
working as root or my own user account, then setting permissions and
then using user accounts like zope or apache only for starting  
services.

Maybe I just need change my habits.


Working as root is indeed a bad habit in general which is worth  
changing...


jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] Zope 2.8.1 won't "make"

2005-09-09 Thread Jens Vagelpohl


On 9 Sep 2005, at 19:59, Sophia Grimm wrote:


Just downloaded Zope 2.8.1 and I'm trying to install
it on MOSX 10.4, which has XCode 2.1 installed.

I'm following installation instructions on this page:
http://www.plope.com/Books/2_7Edition/InstallingZope.stx#2-6

./configure runs, but when I try to make, I get this
error:

makefile:54: *** target pattern contains no `%'.
Stop.

This happens regardless of the python or prefix I use
as arguments when I configure. I've used Python 2.3.5
which comes with MOXS 10.4, and I've used Python 2.3.5
as installed by Fink.


I have just downloaded and compiled Zope 2.8.1 successfully using  
Python 2.3.5 that I have compiled myself on OS X 10.4. This is either  
a problem with the Python you are using or your setup in general...


jens

___
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/mailman/listinfo/zope-dev )


[Zope] CMFFSContent released

2005-09-10 Thread Jens Vagelpohl

CMFFSContent - Put CMF content onto the file system

If you are looking for a way to manage content on the file system in  
order to take advantage of better editors, source control systems and  
other utilities you might be interested in CMFFSContent.


CMFFSContent represents a content-ish equivalent to the CMF Skins  
mechanism. You can register directories that provide filesystem  
content and file extensions that should be recognized as one of the  
content types available (FSFile, FSImage, FSDocument) from your code.  
You can also derive your own FS-based content types and plug them  
into the machinery.


A specific use case would be a "brochure" site that does not offer  
membership or member-contributed content, but a seldom-changing set  
of pages that need to be tightly controlled. Case in point: My  
company page at http://www.zetwork.com, which serves CMFFSContent  
only. Another suitable candidate would be a site that does have  
members and member-contributed content, but a specific area for  
centrally-maintained information, such as a canonical set of  
documentation pages.


Downloads can be found at...

http://www.dataflake.org/software/cmffscontent/

...and bug reports/suggestions/praise/flames are welcome here:

http://www.dataflake.org/tracker/

jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] Stepper 1.2.0 Released!

2005-09-15 Thread Jens Vagelpohl


On 15 Sep 2005, at 10:28, OGURA Toshiyuki wrote:


Hello.

I'm still a newbie for Zope for about a year.
I'm curious about Stepper because I wonder if it is something like  
Ajax.
If so, I would like to see some example applications made with  
Stepper.

Does anyone know such websites?
Or am I basically wrong?


Sorry, you are basically wrong. Stepper has nothing to do with what  
you do in a browser (which is where Ajax is used).


jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] base tag

2005-09-17 Thread Jens Vagelpohl


On 17 Sep 2005, at 10:50, Niklas Saers wrote:


Hello,
I've been asked to administer a Zope site, and I have a problem. On  
each page, a statement like
http://mysite.dk/dir/"; />shows up. dir/ changes if I  
move to another directory. Yet nowhere in the code can I find such  
a statement. Is this a common thing for Zope to add or is there a  
function or property that usually sets this?


Zope will set if if you do not set your own base tag in your HTML.

jens


___
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/mailman/listinfo/zope-dev )


Re: [Zope] Aquisition, UserFolder and security

2005-09-27 Thread Jens Vagelpohl

Each CPS instance has its own UserFolder. All users exists in the
portal's UserFolder, but only exists in some CPMs UserFolders. Now the
problem is that, due to acquisition, a member existing in the  
Portal but

not in a given CPM can gain access to this CPM by faking the url - ie:
going to mydomain.tld/portal/cpm instead of mydomain.tld/cpm. So we  
have
a potential (err...) security hole here, that I would like to  
address ASAP.


A normal pattern to use here would be to have one central user folder  
(e.g. at the root) and work with local roles in the sub-portals  
instead of having several user folders.


jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] Aquisition, UserFolder and security

2005-09-27 Thread Jens Vagelpohl


On 27 Sep 2005, at 11:17, bruno modulix wrote:

A normal pattern to use here would be to have one central user folder
(e.g. at the root) and work with local roles in the sub-portals   
instead

of having several user folders.



I know, but I don't think it will possible here (this is an  
euphemism).

The UserFolder is a LDAPUserGroupsFolder, users data are stored in a
LDAP directory, with one branch for each CPS instance, and some user
data and schema varying from one branch to another. We don't have the
possibility to change this (it's part of a bigger system), and we  
don't

have the time to rewrite a custom LDAPUserFolder that could accomodate
this LDAP schema (this project was already very late when we took  
on it
and we have a *very* tight deadline - I hate this situation, but I  
have
to deal with it...). Any robust solution, as hackish as it may be,  
will

be just fine, as long as we deliver on time.


No idea what "LDAPUserGroupsFolder" is or what it does, but for the  
standard LDAPUserFolder product you would instantiate a  
LDAPUserSatellite object in the subportals that would be configured  
to look up LDAP groups in specific DIT branches and convert them to  
user roles. The "central" user folder would not hand out any roles  
itself, it's only for authentication purposes in this setup.


And no, this has nothing to do with group memberships as defined by  
whatever group-supporting user folders you use.


jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] including a ZPT inside a repeat loop

2005-09-27 Thread Jens Vagelpohl


On 27 Sep 2005, at 17:02, Matthew White wrote:


Hello,

I've got this following bit of ZPT:





Queue Template Goes Here



you're using a python notation without declaring it as such. Try...




jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] Plone update

2005-09-30 Thread Jens Vagelpohl


On 30 Sep 2005, at 23:49, Michael Kaplan wrote:


I'm running Plone 2.0.5 with Zope 2.7.7-final and tried to
upgrade to Plone 2.1. A dry-run of portal_migration stopped
with errors :


I believe this question will get more answers on a Plone-specific  
mailing list. See plone.org for more information.


jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] Presentations Available

2005-10-04 Thread Jens Vagelpohl


On 4 Oct 2005, at 04:11, Bill Campbell wrote:

Given that I don't run the Microsoft virus, Windows, on anything, have
OpenOffice.org on all our Linux and OS X systems, and that  
OpenOffice.org

software is freely available, I don't see that it's a problem.


Odd reasoning. I hate to inform you, but not everyone is like you. I  
second David's point. Regardless of operating system or office-style  
software in use, I personally refuse to download and install a huge  
office suite just to view some files.


jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] Testing products: Testing all in one batch

2005-10-05 Thread Jens Vagelpohl


On 4 Oct 2005, at 23:21, Paul Winkler wrote:


Has anybody set up a batch job to test all installed Products
in a zope instance?


bin/zopectl test --dir Products/

from the instance home will test all products in that instance home.

jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] Testing products: Testing all in one batch

2005-10-05 Thread Jens Vagelpohl


On 5 Oct 2005, at 14:44, Paul Winkler wrote:


bin/zopectl test --dir Products/

from the instance home will test all products in that instance home.



Well, so will bin/zopectl test without the --dir argument,
but I guess you didn't read the rest of my message ;-)


I answered one of the questions you asked, that's all. The issue you  
are having with tests failing when you run them is separate. It's a  
combination of lack of quality control (products whose tests fail  
"out of the box" when you run them separately) or lack of cleanup in  
testing code.


jens

___
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/mailman/listinfo/zope-dev )


Re: [Zope] Testing products: Testing all in one batch

2005-10-05 Thread Jens Vagelpohl


On 5 Oct 2005, at 14:49, Lennart Regebro wrote:


On 10/5/05, Jens Vagelpohl <[EMAIL PROTECTED]> wrote:


from the instance home will test all products in that instance home.



Often doesn't work, the different products tests will walk all over  
each other.

But setting up a script that walks all the Product directories and
runs the test for the separately shouldn't be a problem.


This is correct, but you're just papering over a deeper problem,  
namely bad cleanup in some unit tests.


jens

___
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/mailman/listinfo/zope-dev )


<    1   2   3   4   5   6   >