Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-06 Thread Sascha Welter
(Tue, Apr 05, 2005 at 06:46:23PM -0400) [EMAIL PROTECTED] wrote/schrieb/egrapse:
> From: Dieter Maurer <[EMAIL PROTECTED]>:
> "ZClasses" feature prominently in the Zope book.
> 
> Seems they are more recommended than the new development paradigm (which
> does not yet feature at all in the Zope book).

I don't know if I'm living under a rock or something, but I'm using Zope
on and off since about 2.5.1, and I've barely heard about archetypes.
So far I did not come across a simple introduction, tutorial,
or even explanation of them. Of course I haven't searched, but I guess
that is the point of Dieters remark. ZClasses, external methods and to 
some extend Python products byte you the moment you get to the Zope
documentation. 

The "new stuff" is that stuff I hear the buzzwords flying around, but
once I touch something of it, I'm lost pretty fast.

If something is the "new and recommended way" of doing things, it should
be first place in the docs. The "Zope Bible" has Python products before
other stuff IIRC, good. If the "new stuff" is so great and easy to use, 
it should also be easy to put some documentation of it in Chapter 2 or
3 of whatever the Zope Docs will be.

As for the question of depreciating ZClasses: 
I had started out with ZClasses once, got to know the limitations and am
now doing Python products. I've learned a lot using ZClasses, as one can
jumble and play around with object orientation much easier. Python
products offer a much steeper wall, there is much more that has to be
just right just to get started. So if the "new stuff" offers that
easy intro playground and has adequate docs, then replace ZClasses.

And btw, keep up the good work, thanks!

Sascha

-- 
http://betabug.ch/blogs/ch-athens

___
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] setPermissionDefault not setting anything

2005-05-17 Thread Sascha Welter
Hi!

In a python product I'm trying to set default permissions. Same as in 
http://www.zope.org/Collectors/Zope/275 nothing is set at all, no error
is raised, no error message is logged.

This is on Zope 2.7.5. I'm basically using this code in my product:

view = "View"
edit = "Change Images and Files"
manage = "View management screens"

class CompanyService( CatalogPathAware, ObjectManager, PropertyManager,
SimpleItem ):
[...snip...]
security=ClassSecurityInfo()
security.setPermissionDefault(view,('Authenticated','Manager',))
security.setPermissionDefault(edit,['Manager'])
security.setPermissionDefault(manage,['Manager'])
def __init__( ...snip...

security.declareProtected( view, 'index_html' )
def index_html( REQUEST ):
"""
test
"""
return "ping"

Globals.InitializeClass( CompanyService )
[...snip...]

I searched for this on the web and found only old references to 2.5.X
and Collector Issue 275. So I tryed out the Test Class from that issue
and I get the same results. 

Am I doing something completely wrong? 

Is something wrong with my setup? I could upgrade to 2.7.6 too, but I 
don't see any changes in the code for SecurityInfo.py from the zope CVS
(unless of course I look in the wrong place:
http://cvs.zope.org/Zope2/lib/python/AccessControl/SecurityInfo.py.diff?r1=1.7.2.1&r2=1.9
)

I would be really happy to learn what I am doing wrong. Please don't
tell me that I discovered a bug, I don't want to.

Regards,

Sascha

___
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] Sharing global data between threads / locking a method

2005-06-29 Thread Sascha Welter
(Mon, Jun 27, 2005 at 12:00:08PM -0400) [EMAIL PROTECTED] wrote/schrieb/egrapse:
> Message: 9
> Date: Mon, 27 Jun 2005 15:53:38 +0200
> From: Max M <[EMAIL PROTECTED]>
> Subject: [Zope] Sharing global data between threads / locking a method
> To: zope@zope.org
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> I have a synkronisation script that I run every 10 minutes via wget from 
> a cron job.
> 
> Sometimes the script runs longer than 10 minutes.
> 
> In that case I would like to return a page to wget, but not run the 
> actual script.
> 
> So in a external method/module I have a function like this:

Excuse me, but I really believe trying to solve this situation within
Zope is getting at it from the wrong side.

It is so much easier to wrap the call to wget in a shell, python, perl, 
whatever script. Then you can use a simple lockfile to see if another
wget is still running in a copy of the script. It will take you 10
minutes and you will have solved the problem (at least for the use case
of wget being run from the same machine).

As for making a lock inside Zope, I have done this with setting a
property:
if treeroot.hasProperty('currently_parsing'):
treeroot.manage_changeProperties( currently_parsing = True )
else:
treeroot.manage_addProperty('currently_parsing', True, 'boolean')
get_transaction().commit()

For me it never worked inside the SESSION object (for my use case it
does not matter that the session will do the locking only per user).
After I'm done, I do:
treeroot.manage_changeProperties( currently_parsing = False )
get_transaction().commit()

I don't know if this is the proper or cleanest way to do it, but 
It Works(TM).

Regards,

Sascha

___
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: paypal IPN. Debug messages missing. Script goes zombie

2005-07-08 Thread Sascha Welter
(Thu, Jul 07, 2005 at 12:00:30PM -0400) [EMAIL PROTECTED] wrote/schrieb/egrapse:
> From: Ed Colmar <[EMAIL PROTECTED]>
> I've been hacking together a few seperate paypal IPN connections, some 
> code from basion, and some from random web scrapings...  Anyway...  
> Things are working for the most part, except that this method for some 
> reason dies when using urllib.urlopen(), and what is really wierd is 
> that I get no error message, it just hangs.
> 
> I am running an older version of zope, but I have never seen this 
> behaviour before.  The debug (-D) flag is set in start.
> 
> here is the code I am using...  As far as I can tell my syntax is 
> proper...  ???
> ... snip ...
> data = 
> urllib.urlopen('https://www.sandbox.paypal.com/cgi-bin/webscr',  
> requestform)

When doing urlopen, you will want to use timeoutsocket.py (included in
newer versions of python (or zope), found as a simple file on the web in
the ol' times of zope 2.5.1. Without this your connectiion will just
hang at the urlopen command, *as there is no timeout*.

Also look out for what others have aid in respect to https, no
expirience with that myself. 

There are some applications for Plone to use PayPal (PloneMall /
PlonePayPal), you might want to look at these for sample code too.

Regards,

Sascha

___
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] Zope Job in Athens, Greece

2005-09-09 Thread Sascha Welter
Hello Zope-World!

We have a job offer for someone with good experience on handcrafted HTML
and CSS, working on Zope projects. Knowledge of Zope can be acquired on
the job, but we want good HTML/CSS that can be mixed in with ZPT. 

This is not a job for someone with years of knowledge of Zope already.
But if you know a bit of Zope or are interested to learn about it and
have the mentioned HTML/CSS background and a rough idea what building a
web application is, then this may be for you.

The job is in Athens, Greece. Yes, that's where the sun is shining and
the sea is only a short ride away. You can take weekend trips to islands
other people see only on postcards. And we get to eat fresh fish on
business lunches :-) Telecommuting to other countries is *not* available
for this position, as you would get cheated out of the fresh fish.

We are a small to medium advertising company, with a robust business 
background. We are developing tools for providing more benefits and
improving communication with our clients. Right now it's me as a Zope
dev, next month we will have another Zope newby starting, and then we
want you.

If you are in Greece, this is obviously for your. If you are outside
Greece (in EU), please note that Greece is not a high salary country,
but a country with high quality of life. It might be interesting for you
if you are the adventurous type. Speaking Greek would be nice, but we
also do business in English.

Please send your CV to me, not to the list! :-)

Regards,

Sascha

___
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: Zope Digest, Vol 16, Issue 17

2005-09-15 Thread Sascha Welter
> Date: Tue, 13 Sep 2005 20:36:22 +0100
> From: Pascal Peregrina <[EMAIL PROTECTED]>
> Subject: Re: [Zope] Re: Zope iso-8859-1 to utf-8
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Cc: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>, "'zope@zope.org'" 
> 
> Message-ID:
>   <[EMAIL PROTECTED]>
>   
> Content-Type: text/plain; charset="utf-8"
> 
> Thanks Dieter, you are right, I was a little confused.
> 
> I think that if my pages did not break so far it's because we use html
> entities for non standard characters...
> 
> I will have to convert everything in a rush now to avoid issues :(

Salut Pascal!

COREBlog has a character code conversion function (so you can change the
charcode of existing content at once), as I just noticed. Maybe it's
worth to have a look at the code. http://coreblog.org.

Regards,

Sascha

___
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] RewriteRule Witch

2005-09-19 Thread Sascha Welter
Hello Zopistas!

Virtual hosting with Zope usually involves setting up Apache "in front"
of Zope, putting a Virtual Host Monster into your Zope Root and
configuring some RewriteRules in your httpd.conf. Since I don't do this
every day (like most zopistas, I guess), every time I have to dig up my
knowledge of rewrite rules again from almost scratch. Now I wrote a
little script to help me with the most frequent cases of those
RewriteRules. You can try out the Rewrite Rule Witch online:
http://betabug.ch/zope/witch

Please note that there might still be bugs and mistakes in there. I'm
happy to receive feedback about this thing. Especially interesting would
be to try out some of the configurations you have and see if the result
is what you actually use. I cover only the most basic variants, but
likely the ones used for 95% of Zope setups. I do not yet cover
rewriting "/manage" URLs to https (next project!)

Regards,

Sascha

___
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: URL Rewriting chaos

2005-11-03 Thread Sascha Welter
Message quote from digest:
> From: [EMAIL PROTECTED]
> Subject: [Zope] Re: URL Rewriting chaos
>   
> i've managed to get it closer to working, when you type in 'example.net'
> into the browser the desired page comes up (yay) but the links are all
> still 'myserver:8080/plone' and of course they don't resolve anyway.
> What's up here?

Your "new" RewriteRule is wrong, it does not have the proper stuff in it
to access the VHM.

> I've been mucking around with this for many days now, perhaps the newer
> releases will make this work 'out of the box' please :-)

How could this ever work 'out of the box', please? It involves not only
your individual setup, but also two distinct pieces of software, namely
Zope and Apache. So until Zope gets mind reading code and full access to
your apache config file (wherever that may live), no such luck.

You might try the "RewriteRule witch" (a rewriterule generator) though, 
just to be sure that your RewriteRule contains no typos or mistakes:
http://betabug.ch/zope/witch

The day before yesterday there was someone with a very similar problem
on #zope. His rule looked right but he got 403s always. After many tries
it turns out some other part of the httpd.conf file was b0rken... duh.

Regards,

Sascha

___
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] VHM and SSL protection problem

2005-11-07 Thread Sascha Welter
(Sat, Nov 05, 2005 at 12:00:10PM -0500) [EMAIL PROTECTED] wrote/schrieb/egrapse:
> From: Sophia Grimm <[EMAIL PROTECTED]>
> Subject: [Zope] VHM and SSL protection problem
>
> ...
> Installation #2: Plone 2.1/Zope 2.7.7
> I'm trying to use VHM and an Apache rewrite rule to
> protect this site with SSL. I'm using instructions
> from http://plone.org/documentation/how-to/apache-ssl
> . Step number 7 shows this rewrite rule:
> 
> RewriteRule ^/(.*)
> http://localhost:8080/VirtualHostBase/https/www.yourmachinename.com:443/$1

Looking at what the zope witch  tells me
(and myself guessing at what you really want to do):
RewriteRule ^$ \
http://127.0.0.1:8080/VirtualHostBase/\
https/%{SERVER_NAME}:443/VirtualHostRoot/ [L,P]

RewriteRule ^/(.*) \
http://127.0.0.1:8080/VirtualHostBase/\
https/%{SERVER_NAME}:443/VirtualHostRoot/$1 [L,P]

It seems that you are missing the [L,P] at the end, which tells apache
what to do once a RewriteRule matches.

> So if my original Zope site was 
> http://www.sg.com:8080/
> the above rule should simply rewrite the URL to
> https://www.sg.com:443/
> which would force all requests for the http site to go
> through SSL before being forwarded to Zope. Correct? 

No.

What this does is it enables your site to be served through SSL and
apache. The "force everything to SSL" rewriterule is another, different,
second rule. You likely need both, though I have not used fastcgi in a
while. The witch doesn't cover that rule style yet. 

For redirecting access to the ZMI to SSL, many people use rules like
these:
RewriteRule ^/(.*)/manage(.*) https://%{SERVER_NAME}/$1/manage$2 [R=301,L]
RewriteRule ^/manage(.*) https://%{SERVER_NAME}/manage$1 [R=301,L]
ProxyPassReverse /manage https://%{SERVER_NAME}/manage

You could modify these to redirect everything to SSL. (There should
either be additional tests to check that you are not using SSL already,
or else this should be placed in the non-SSL virtual host setup). See
how these have R=301 in the last part? That's a redirect, not a rewrite.

Regards,

Sascha

___
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 with url rewriting

2005-11-10 Thread Sascha Welter
(Wed, Nov 09, 2005 at 10:41:32AM -0500) [EMAIL PROTECTED] wrote/schrieb/egrapse:
> From: Faheem Mitha <[EMAIL PROTECTED]>
> ...
> I running Apache 2.0 and Zope 2.7 on Debian Sarge. I've configured a zope 
> (Plone) instance located /var/lib/zope2.7/instance/dulci.
> 
> This can be accessed via 
> http://machine_address:9673/dulci. 9673 is the 
 ^^
 http

> point on which Zope runs on Debian.
> 
> I'm trying to configure Apache so that all requests of the form
> 
> http://machine_address/plone are sent to
> 
> https://machine_address:9673/dulci
 ^^
 https

http != https
Zope is unlikely to understand the rewritten URL with that https I would
say. I don't understand why you try to access Zope with SSL/https, plain
Zope does not understand that protocol.

If you try to use apache to do SSL for Zope, you will need it the other
way around. 

And to force connections to go through SSL, you will need a rewriterule
to redirect (either for all URLs or for /manage URLs) or some fancier
Plone setup (which I never figured out).

> and that the urls returned by Plone are consistent.
> 
> I added the following lines to my Apache config, representing my best 
> guess as to how this should work. 

I don't know about the problems that Chris found with your RewriteRule,
but I stopped worrying, since I can always go to the witch and get a
usefull RewriteRule for most setups (if I might say so myself :-)
http://betabug.ch/zope/witch

> The rewriting seems to work, since when 
> I go to
> 
> http://machine_address/plone
> 
> the log says
> 
> [Wed Nov 09 03:30:26 2005] [error] [client ...] client denied by 
> server configuration: 
> proxy:http://127.0.0.1:9673/VirtualHostBase/https/machine_address:443/dulci/VirtualHostRoot/_vh_plone
> 
> However, something must be broken.

> ...

>RewriteRule ^/plone(/.*)?$ 
> http://127.0.0.1:9673/VirtualHostBase/https/%{HTTP_HOST}:443/dulci/VirtualHostRoot/_vh_plone$1
>  [L,P]

As for the question mark, I guess you are trying to get in one rule what
most people (and the witch) do in two rules: Cover the case where
"/plone" ends the URL, as well the case where something comes behind
"/plone". Regular expressions are tricky with that stuff, so it's better
to use 2 rules and be covered.

Googling for [zope apache rewriterule], the ZopeWiki page
(http://zopewiki.org/ZopeAndApache) comes on the first result page,
while the witch is currently on the second page. The help page from the
VHM is also very informative.

Regards,

Sascha

___
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: Zope's Webdav port for RESTful web service

2005-11-28 Thread Sascha Welter
(Sun, Nov 27, 2005 at 12:00:08PM -0500) [EMAIL PROTECTED] wrote/schrieb/egrapse:
> Am Samstag, den 26.11.2005, 21:17 -0400 schrieb David Pratt:
> > Hi. I am looking at how to implement a RESTful web service in Zope2.  
> 
> Could you expand a bit on whatever a RESTful web service is?

Hi Tino,

I looked it up in Google. Too me it just looks like a regular buzzword
accelerator. You do what you have always done, you just put in a megaton
of new acronyms and buzzwords. Instant profit!

To the orginal poster:
I bet the best way to implement this is by making python scripts and 
page templates that return xml. No need to mess with webdav. No big deal
either.

Regards,

Sascha

___
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] why will FastCGI not be supported in the Future.

2005-11-28 Thread Sascha Welter
(Mon, Nov 28, 2005 at 08:28:56AM -0500) [EMAIL PROTECTED] wrote/schrieb/egrapse:
> From: Gerhard Schmidt <[EMAIL PROTECTED]>
> I'm a little bit puzzled why there are growing Number of Mails telling
> that the support for FastCGI will disappear in the future. Why is this.
> 
> I am running multiple sites that are hybrides of apache/php and zope. It's
> very easy to set up such a config with mod fastcgi and Apache. 

Our perception of reality seems to differ a lot.

Setting up hybrid sites with RewriteRules / mod_rewrite and VHM in Zope
is incredible easy, much easier than configuring fastCGI in httpd.conf.
(And I'm not even counting having to compile fastcgi and hooking it into
apache.)

In helping relative newbies (to zope|apache) to configure their "zope
gehind apache" setup on #zope (irc.freenode.net)I found out that life
is much easier with 2 rewriterules. You will need rewriterules anyway
if you want to force /manage access to https. And afer the rewrite rule
"witch" was running, "zope behind apache" support on #zope has dwindled
down a lot.

> It works
> just fine and very stable, even on heavy load.

Here my experience differs a lot from yours it seems.

> The posibility to Easy integrate Zope in existing apache/php server was one
> of our main reasons to use Zope.
> 
> I know there is a way to do just the same with mod_proxy, but mod_proxy does
> open new connection for every request while fastcgi uses the same connection
> for all requests. The is no problem on low load. But with growing load, this
> can become a Problem.

This is the fun part. Only a couple of weeks ago I grew bored having to
restart / reinvestigate / sacrifice dead chicken for our one legacy zope
instance that was run through fastcgi. Not really high load on the
server, but high load on the admin due to apache? zope? getting stuck 
somehow. 

> Date: Mon, 28 Nov 2005 14:05:22 +0100
> In none of the Postings is an reason why FastCGI ist bad and therefore not 
> supported in the future. Just to say "so it is" is not an Answer. 

Experiences may differ, see above. For me it's "fastcgi, never again". 
It likely was great at some point in the past, but there is better stuff
now. I value the undisturbed time that I can advance our company codebase
too high, I don't want to be interrupted all the time with "XY hangs".

As someone else mentioned, it's up to you!

Regards,

Sascha

___
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] major problems placing authentication on an extranet site-security flaw?

2006-02-09 Thread Sascha Welter
(Wed, Feb 08, 2006 at 12:00:07PM -0500) [EMAIL PROTECTED] wrote/schrieb/egrapse:
> From: michael nt milne <[EMAIL PROTECTED]>
> Subject: [Zope] major problems placing authentication on an extranet
>   site-security flaw?
> I have major problems here trying to set-up authentication over a whole
> Plone site using Zope. 

You are aware that there is a Plone mailing list? And that Plone handles
many things in special ways different from "stock", plain Zope (e.g. 
having Groups of users)?

> Using my superuser account I've navigated to the site
> root page in the ZMI where it lists all the site pages and objects etc. I've
> then gone into security, scrolled down to the bottom and for the 'View'
> option I have tried all combinations of 'Manager', 'Authenticated' and
> 'Aquire'. It simply won't work.

plone.org had fine tutorials and howtos for setting up closed plone sites
last time I looked.

> I get a pop-up box but the superuser manager pass doesn't work. Then, even

A pop-up box? Plone doesn't use that. You either have murked up your
setup completely or you have set up stuff that you are not telling us.

> I find the Zope security, permissions set-up hideously complex and unusable
> to be honest and it doesn't even seem to work.

That is the proper attitude to get help. For some people always all the
world is at fault. For other people their own lack of understanding
turns to the revelation that it's *their* lack and they can do something
about it.

Regards,

Sascha

___
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] Using ParsedXML from Python script

2006-02-10 Thread Sascha Welter
(Thu, Feb 09, 2006 at 12:00:08PM -0500) [EMAIL PROTECTED] wrote/schrieb/egrapse:
> From: Brian Sullivan <[EMAIL PROTECTED]>
> Subject: [Zope] Using ParsedXML from Python script
> 
> I am attempting to extract information from a ParsedXML object using
> Python script.
> 
> I can't seem to get my mind around exactly how this works. Can anyone
> point non trivial examples in Python of maniupulating a ParsedXML
> object?

This is from a class that is based on ParsedXML.ParsedXML, caveat: It's
code from an old project that isn't maintained and maybe it was done
suboptimal anyway :-)

def get_Status(self):
doc = self.documentElement
status = doc.getElementsByTagName('Status')[0].getAttribute('Number')
return { 'Status':str(status), 'Schema':'ImageID' }

another one:

def get_photo_count(self):
return self.documentElement.getElementsByTagName('Photo').length

the manage_addXY method of that object has something like this inside:

try:
b = NetSelection(id, file, useNamespaces, contentType)
except expat.error, e:
... do things here

and the class has no explicit __init__ method, so likely we got that
from the ParsedXML.ParsedXML base class.

also there seems to be stuff that adds/changes things in some methods:
if not new_node:
new_node = this_Photo.appendChild(doc.createElement(Network_Description))

or:
def _set_description_on_node ( self, node, Description_Dictionary ):
''' "sets" the contents of a Dictionary into an XML node '''
for fred in Description_Dictionary.keys():
node.setAttribute( fred, Description_Dictionary[ fred ] )

Is that the kind of thing you were looking for?

Regards,

Sascha

___
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] Error Value: 'File' object has no attribute 'manage_fixupOwnershipAfterAdd'

2006-02-20 Thread Sascha Welter
(Thu, Feb 16, 2006 at 12:00:05PM -0500) [EMAIL PROTECTED] wrote/schrieb/egrapse:
> From: Roman Klesel <[EMAIL PROTECTED]>
> Still I can't get what I want.
> 
> when I now do:
> 
> system.manage_addProduct['OFSP'].manage_addFile(fid,
>   title='',
>   file=cpu_load,
>   content_type='text/plain',
>   precondition='')
> 
> I get:
> 
> AttributeError: _getProducts

manage_addFile (and some others like manage_addFolder, ...) work
directly without xy.manage_addProduct[...]. 

That part is in the Zope book.

The syntax with manage_addProduct[... is used for filesystem based
products (like the stuff you have in your instances "Products" folder).

Regards,

Sascha

___
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] Error Value: 'File' object has no attribute 'manage_fixupOwnershipAfterAdd'

2006-02-20 Thread Sascha Welter
(Mon, Feb 20, 2006 at 03:45:31PM +0100) Roman Klesel wrote/schrieb/egrapse:
> Sascha Welter schrieb:
>  >
> > manage_addFile (and some others like manage_addFolder, ...) work
> > directly without xy.manage_addProduct[...]. 
> > 
> > That part is in the Zope book.
> > 
> > The syntax with manage_addProduct[... is used for filesystem based
> > products (like the stuff you have in your instances "Products" folder).
>
> well, thanks for your consideration, but I'm actually concerned about.
> fs based products 

Why be concerned? Don't worry, be happy!
- You can use manage_addFile *from* your own fs based product. 
- You can use manage_addProduct['something']... *from* your own product.
- You can use manage_addProduct['something']... to add instances of your
  own product to folderish objects (and you can do this from TTW code or
  from fs based code)

But you don't use manage_addProduct[... to do manage_addFile, no matter
if your code runs in a TTW script or in a fs based product.

Regards,

Sascha

___
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] TAL tutorial

2006-03-08 Thread Sascha Welter
(Tue, Mar 07, 2006 at 12:00:05PM -0500) [EMAIL PROTECTED] wrote/schrieb/egrapse:
> From: John Poltorak <[EMAIL PROTECTED]>
> Subject: [Zope] TAL tutorial
> 
> Can anyone point me to a good TAL tutorial for people who have difficulty 
> getting to grips with it?

Assuming you have read and practiced the 2 chapters on ZPT in the Zope
book I would also recommend peterbe's "DTML2ZPT Conversion examples",
even if you have never done DTML, these are a collection of common code
snippets:
http://www.zope.org/Members/peterbe/DTML2ZPT

After that keep in mind that anything complicated enough to need 
"python:" in a TAL statement should likely be moved out to a python
method. (That could be either a python script through the ZMI, or even
better a method of your filesystem based python product.) The results of
the python method can then be placed in the option space and accessed
very easily from the ZPT. A common usage scheme is to always call the
python method through the web, which assembles all needed data and then
returns the ZPT with the data as parameters.

Have fun!

Regards,

Sascha

___
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] TAL page whitespace removal

2006-04-14 Thread Sascha Welter
(Thu, Apr 13, 2006 at 12:00:08PM -0400) [EMAIL PROTECTED] wrote/schrieb/egrapse:
> Date: Wed, 12 Apr 2006 19:03:29 +0100
> From: "Robert (Jamie) Munro" <[EMAIL PROTECTED]>
...
> gzip will add enormous processing overhead to the server. 

Your server must be a C=64 or something. I'm running Zope on an Apple
Powermac G3 B&W at 350Mhz -- not really an up-to-date powerhouse.
Gzipping most of my COREBlog pages shows no noticeable difference in
processor load - even on such a lame machine. I'm not even using apaches
gzip-encoding module, but the Zope builtin stuff.

Being able to get things faster to the clients frees load off the
server, the payoff for gzipping content is mucho worth it in my
experience.

The next thing that paid off huge was implementing handling of
If-Modified-Since headers. Bandwidth use for the Googlebot went down
from from about 50MB per month to around 1MB. That helps getting
processor load and disk load down too. Other search engines and even
some "real" clients get 304's too.

Regards,

Sascha

-- 
http://betabug.ch/blogs/ch-athens

___
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] Permissions, files and folders

2006-04-19 Thread Sascha Welter
(Tue, Apr 18, 2006 at 12:00:12PM -0400) [EMAIL PROTECTED] wrote/schrieb/egrapse:
> From: "Erik Billing" <[EMAIL PROTECTED]>
> Thank you, that worked nicely. But I was unable to call the LazyFilter from
> the DTML document, I figure I have to import the ZTUtils module first. Is
> there a special DTML-tag to do import?
> 
> By the way? Is there some obvious documentation about the different modules
> that I have missed? As I mentioned in an earlier letter I'm new to Zope and
> I find it very hard to get an overview of all the different modules

If you are new to Zope you should drop DTML like a hot potatoe and start
doing your logic in python and your presentation in ZPT -- strictly
parted. 

Also don't bother too much with implementing stuff with TTW means
("through the web" - the stuff you do from the ZMI). Better start doing
filesystem python products. Read for example
http://zopewiki.org/ZopeStarter - including the link to the "new"
tutorial from upfrontsystems. 

The ZopeStarter page is a 5 minute read, but has good pointers to stuff
that will get you started in the right directioin.

Regards,

Sascha

___
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: apache rewrite rules brake plone/zope

2006-05-03 Thread Sascha Welter
(Wed, May 03, 2006 at 09:21:47AM -0400) [EMAIL PROTECTED] wrote/schrieb/egrapse:
> From: "David Bear" <[EMAIL PROTECTED]>
> Subject: [Zope] apache rewrite rules brake plone/zope

> I have the following rewrite rules for apache. The intent is all urls that
> have http://myhost/z2 in them will be redirected/rewritten by apache to the
> zope instance running on local host.
> 
> RewriteRule ^/z2/(.*)
> http://127.0.0.1:9080/VirtualHostBase/http/%{HTTP_HOST}:80
> /VirtualHostRoot/$1 [L,P]

Please just go to http://betabug.ch/zope/witch and get a set of proper
rewrite rules for this simple case of "inside out hosting". Or read the
VHM documentation and learn the inside outs yourself :-)
To me it looks like you forgot the _vh_z2 part, but I stopped bothering
to debug rewrite rules, since the witch spits them out just fine.

> RewriteRule ^/z2dav/(.*)
> http://127.0.0.1:9081/VirtualHostBase/https/%{HTTP_HOST
> }:443/VirtualHostRoot/$1 [L,P]

Likely the same here.

> RewriteRule ^/login_form(.*) https://%{HTTP_HOST}/login_form$1 [NE,L]

This one has no connection, as it is a redirect.

> There is something that I've left out becuase any attempts to view the plone
> site through apache are 'messed up', ie the graphics, fonts, style sheets,
> etc, are not included in the web page. Only some of the content in rendered
> in the browser. However, when I open the url http://127.0.0.1:9080/ the zope
> and plone site all works.
> 
> any hints on a rule I've left out?

Links "back" to images and CSS failing are a common symptom of a
RewriteRule now being correct in respect to the work the VHM does.

Regards,

Sascha

___
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 rewrite rules redux

2006-05-25 Thread Sascha Welter
(Wed, May 24, 2006 at 12:00:09PM -0400) [EMAIL PROTECTED] wrote/schrieb/egrapse:
> From: "David Bear" <[EMAIL PROTECTED]>

> # see http://betabug.ch/zope/witch
> RewriteRule ^/z2$ http://127.0.0.1:9080/VirtualHostBase/\
> https/%SERVER_NAME}:80/VirtualHostRoot/_vh_z2/ [L,P]
> 
> RewriteRule ^/z2/(.*) http://127.0.0.1:9080/VirtualHostBase/\
> https/%{SERVER_NAME}:80/VirtualHostRoot/_vh_z2/$1 [L,P]
   ^^
Just telling the witch to use "https" isn't enough, you have to tell it
the port too (usually 443). 

This isn't the most obvious thing from th form, but it should be a cluee
that the port doesn't change when you select https.

> I also found the following rule from scanning through zope-list postings, to
> force any logon authentication requests to go over https. However, since the
> above rules fail, the following does nothing.
> 
> RewriteRule ^/login_form(.*) https://%{SERVER_NAME}/login_form$1 [NE,L]

This is a redirect and once your https-rewriterule works, it should too.

> From: Chris Withers <[EMAIL PROTECTED]>
> In both cases, I see no need for two rules, just the one should suffice:
> 
> RewriteRule ^/z2(.*) http://127.0.0.1:9080/VirtualHostBase/\
> http/%{SERVER_NAME}:80/VirtualHostRoot/_vh_z2$1 [L,P]

Yes, that will work too, unless of course you happen to have a URL that
goes something like http://www.host.tld/z2thisisnotzope/index.html and apache
will happily rewrite it for you, resulting in a 404.

The two rules of the witch could likely be rewritten to one, but two
rules cover the two possibilities easy in a form that humans can grasp:
Either the URL ends there, or else it has a slash and then as much as
there is.

Regards,

Sascha

___
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 rewrite rules redux

2006-05-26 Thread Sascha Welter
(Thu, May 25, 2006 at 06:35:59PM -0700) David Bear wrote/schrieb/egrapse:
> humans can grasp?  beginning to wonder about that.

Please keep replies on the list, thanks.

> Okay. I have reran the witch and have the following rules:
> 
> # see http://betabug.ch/zope/witch
> RewriteRule ^/z2$ \
...snip...
> 
> All is well with standard http connections. I still get a 404 when attempt
> https connections.
> 
> There is NO name based virtual hosting here. There is a single host in the
> apache config file. And there is only 1 ip address that apache listens on.
> 
> Are there any other keys to the rewrite world that I should look at?

These rules look reasonable, I don't see why they shouldn't work. I
believe your httpd.conf has some problem. Specifically (and as I think
suggested by others) I believe that rule is somewhere where it doesn't
get executed. I suggest to comment out the "http" rules for a moment,
turn on RewriteLog (e.g. pointing it to /tmp/rewritelog or something for
the moment) and then look what's happening. I expect that you don't see
any output... but of course I might be wrong.

Please note that in my oppinion this is a problem of apache
configuration, not of Zope.

Regards,

Sascha

___
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] creating a new permission

2006-06-07 Thread Sascha Welter
(Wed, Jun 07, 2006 at 12:00:10PM -0400) [EMAIL PROTECTED] wrote/schrieb/egrapse:
> From: "thomas desvenain" <[EMAIL PROTECTED]>
> 
> i am searching for hours, and i don't find how to define a new
> permission, in python code, for my product

Something I wrote a while ago, "Introduction to some Zope security 
settings":
http://betabug.ch/blogs/ch-athens/196

Regards,

Sascha

-- 
About the record changer:
"Those with an all-LP collection will not want it (the man who is too
lazy to change records every 25 minutes is too lazy to live)..."
   Excerpt from the book "Hi-Fi All-New" 1958 Edition
___
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 installation woes

2006-07-06 Thread Sascha Welter
(Wed, Jul 05, 2006 at 12:00:08PM -0400) [EMAIL PROTECTED] wrote/schrieb/egrapse:
> From: "russ" <[EMAIL PROTECTED]>
> Subject: RE: [Zope] Zope installation woes

> Firstly I'll just mention a little bit more about the server.  We have
> cPanel and Apache running.  There's a number of accounts setup in cPanel and

It appears that this is a production server.

...

Jonathan wrote:
> If zope is not running try starting zope with the command: ./zopectl fg
> this should allow you to see any errors that are generated while zope
> tries to start up.

good advice

...

russ wrote:
> I can't see anything relating to zope specifically & running the zopect1
> command results in this:
> 
> [EMAIL PROTECTED] [/usr/local/zope/instance3/bin]#
> /usr/local/zope/instance3/bin/zopect1 fg
> -bash: /usr/local/zope/instance3/bin/zopect1: No such file or directory

...

later Jonathan replied:

> Don't give up!

And now my point: Jonathan, I disagree here. Russ, you are running a
command you don't know about (and you don't even care enough to check
the spelling) as *root* on a *production* server. 

Please notify the servers administrator and/or owner about this. You
shouldn't be allowed near a root prompt. At least till you've done your
homework to the extend that you pay attention before doing anything as
root. Besides, nobody told you to do this as root. When giving commands
as root, you can destroy everything that is on that server. For starters
try it with `rm -rf /`.

Why don't you try the installation first on a test machine or personal
workstation? We all have to learn stuff first, but a production server
isn't a learning environment. Nowadays it is *very* easy to get a Unix
clone system to play around with. There is also documentation to be
found about Zope and System Administration in general, for free on the
Internet.

[Stepping down from Soap Box]

Have a nice day + Regards,

Sascha

___
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] Catalog aware

2006-07-20 Thread Sascha Welter
(Wed, Jul 19, 2006 at 12:00:09PM -0400) [EMAIL PROTECTED] wrote/schrieb/egrapse:
> Subject: Re: [Zope] Catalog aware

Andreas Jung wrote:
> > It makes little sense to index the contents of PTs. PTs are used to 
> > present a view on a particular instance of your class but not for 
> > providing content
> > itself.

Garito wrote:
> I think it's a question of preferences
> 
> Then can I "inject" Catalog awarness to an object?

... more on subclassing and monkeypatching in further mails.

Garito, please reread Andreas words. They are wisdom of the masters and
not to be ignored.

What would you want to catalog from the Page Template? The ,
 and  tags? The tal:content attributes?

Not these? 
But there is nothing else in there. There should be *no* content in
the page template. If there is then *you are doing something wrong* and
you will pay a heavy price down the road. Stop what you are doing and
think about doing it in a better way.

Regards,

Sascha

___
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 3 invisibility

2006-09-07 Thread Sascha Welter
(Wed, Sep 06, 2006 at 04:31:51AM -0400) [EMAIL PROTECTED] wrote/schrieb/egrapse:
> From: "Carlos de la Guardia" <[EMAIL PROTECTED]>

> ...One of the things that I talk about in that
> post is that the Zope community tends to interact more through its mailing
> lists than its blogs, as opposed to other so-called modern frameworks, like
> Django and Turbogears.

This list is here to help with technical problems. In general I would
say it's very good at it. It doesn't really seem to exist for community
building. If it was here for that, I wouldn't be here and I believe many
others the same.

...

> That's why I decided to see
> if anyone on this list feels like commenting about this, 

Thank $DEITY people don't just express how they feel when someone comes
here with a problem.

From: Ben <[EMAIL PROTECTED]>
Subject: [Zope] Re: Problems starting ZEO with zeoctl
> This fixed it.

See? This is the kind of response this list solitices as an end result.
Blogs are fine (I'm blogging myself), but they do an entirely different
job than a mailing list. If you haven't understood that, you have a
problem with blogging and/or mailing lists. People write on their blogs
when they want to express their oppinion or when they want to drop a
technical article. They write on the mailing list when their blog
software breaks down.

So I "feel" your weighting up of mailing lists and blogs is invalid :-)

Regards,

Sascha

___
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 and sakai comparison

2006-09-09 Thread Sascha Welter
(Sat, Sep 09, 2006 at 12:00:08PM -0400) [EMAIL PROTECTED] wrote/schrieb/egrapse:
> From: David Bear <[EMAIL PROTECTED]>
> Our university has dump a lot of money into sakai. I don't know
> anything about it but I wonder if someone has compared sakai with
> zope?

I don't know Sakai either, but a 30 seconds look at http://sakaiproject.org
makes me belive that you are compaing apples and oranges. Nowhere does
that website say that Sakai is an application server - which is what
Zope is. It seems to be a "collaboration tool", so maybe you could
compare it to SchoolTool on Zope (3, I believe)?

Regards,

Sascha

___
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] Checking in pages, scripts, and sql methods to SVN

2006-11-17 Thread Sascha Welter
(Fri, Nov 17, 2006 at 08:33:15AM +0800) Sinang, Danny wrote/schrieb/egrapse:
> Is there a Zope product out there that would allow me to check into SVN
> my Zope objects (i.e. TAL pages, Python scripts, and ZSQLMethods) ?

Build a filesystem python product out of it. Look at
http://zopewiki.org/ZopeStarter for some pointers.

Being able to do proper version control is one of the major advantages
of that approach. There are so many other advantages that I won't start
to list them here.

Regards,

Sascha

___
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] Building a Zope based site

2006-12-16 Thread Sascha Welter
(Fri, Dec 15, 2006 at 12:23:09PM +) John Poltorak wrote/schrieb/egrapse:
> How much do people charge for building a Zope based site?

That of course depends on what exactly you need :-)

> I've given up on trying to understand Zope myself as it's just too 
> difficult, but suspect it can provide more functionality than other CMS 
> systems.

Of course you are aware that Zope is *not* a CMS system. It's an
application server. You can install a ready-made CMS on Zope or you can
build your own with it. IMHO the easiest CMS on Zope is a ZWiki, see for
some examples:
http://nautica.demo.zwiki.org
http://papakiteliatziar.gr
http://thinkubator.ccsp.sfu.ca

Regards,

Sascha

___
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] invalid property value: wrapped object

2007-02-24 Thread Sascha Welter
(Fri, Feb 23, 2007 at 09:39:16AM -0800) Anthony Monta wrote/schrieb/egrapse:
> Running Zope 2.6.1/Python 2.1.3, I get the following error when I try
> to pass form values to a custom ZClass instance-creating method:

2003 called, they want their auctioned off aeron chairs back!

Regards,

Sascha

___
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] Resizing Images In Page Templates

2007-03-04 Thread Sascha Welter
(Sun, Mar 04, 2007 at 09:20:06AM -0500) [EMAIL PROTECTED] wrote/schrieb/egrapse:
> Hmm. I have it working on the server from which I am moving to another
> server. I didn't build the code. But it sure does work just fine.
> Sorry. Not nonsense. Anyone else have any ideas? 

There is a photo resizing product that IIRC works like that. It lets
you specify sizes and even some simple image manipulations in the image
path. It's a bit older and I think it worked with PIL.

It's in the products list on zope.org. You might want to look through
those products. 

Regards,

Sascha

___
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] External Methods and Authentication error

2007-03-08 Thread Sascha Welter
(Thu, Mar 08, 2007 at 09:27:50AM -0500) Jonathan wrote/schrieb/egrapse:
> I have an external method that contains:
> 
> threadFolder = self.unrestrictedTraverse(topFolder + forumId + '/' + 
> threadId, None)
> threadFolder.manage_changeProperties({'viewCount': 
> threadFolder.viewCount+1})

Jonathan,

regardless of your error, I hope you understand that it looks like
you are trying to do something slightly foolish here. Incrementing a
property counter with every page view on an object in the ZODB will
get the size of your Data.fs file up much, much faster than normally
expected. Also you might get a lot of conflict errors.

There is a "counter" product somewhere to be found (on zope.org IIRC)
that does this stuff in a much better way. The proper way is of course
to use the information in apache log files.

Regards,

Sascha

___
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] External Methods and Authentication error

2007-03-08 Thread Sascha Welter
(Thu, Mar 08, 2007 at 02:11:07PM -0500) Jonathan wrote/schrieb/egrapse:
> If there is an alternative approach I would really like to know about it!

I already mentioned that there is an alternative approach. There is a
Zope product ready to download and install. Just search for it, I don't
remember the name offhand, though it might be something as simple as
"zopecounter".

Regards,

Sascha

___
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: Hit counter (was: External Methods and Authentication error)

2007-03-08 Thread Sascha Welter
(Thu, Mar 08, 2007 at 02:46:14PM -0500) Jonathan wrote/schrieb/egrapse:
> I found hit counter concept on zopelabs 
> (http://www.zopelabs.com/cookbook/991116439 for anyone who is interested) 
> that uses an sql db to store/retrieve frequently updated information.
> 
> I am going to modify the application to use an external mysql db instead of 
> constantly updating objects in the zodb.
> 
> Thanks for the catch!

Using SQL for a hit counter? Talk about overkill. This one is what I was
talking about:

http://www.mxm.dk/products/public/mxmCounter/

Regards,

Sascha

___
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: catalog aware not working.. help

2007-03-21 Thread Sascha Welter
(Tue, Mar 20, 2007 at 08:51:24AM +0100) Josef Meile wrote/schrieb/egrapse:
> You may also try to change the way you are sub classing. In my case, I 
> put CatalogAware as the first sub class (left-most).

Keep in mind that you really should be using CatalogPathAware not
CatalogAware, or you will run into trouble with absolute_url() and
virtual hosting.

Regards,

Sascha

___
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: catalog aware not working.. help

2007-03-21 Thread Sascha Welter
(Wed, Mar 21, 2007 at 03:23:13PM +0100) Josef Meile
wrote/schrieb/egrapse:
> > Keep in mind that you really should be using CatalogPathAware not
> > CatalogAware, or you will run into trouble with absolute_url() and
> > virtual hosting.
> Does it make a difference? If you go to
> /lib/python/Products/ZCatalog/CatalogPathAwareness.py
> 
> You will see that CatalogPathAwareness.CatalogPathAware is a subclass of 
> CatalogPathAwareness.CatalogAware with no code at all. I'm in deed using 
> CatalogAware as base class of a python product in a virtual hosting 
> environment and haven't noticed any problem.

I would assume that CatalogPathAwareness.CatalogAware and 
CatalogAwareness.CatalogAware aren't the same thing.

Also there is a note at the start of 
lib/python/Products/ZCatalog/CatalogAwareness.py :
"**NOTE**: This module is deprecated, and should only be used for
  backward-compatibility.  All new code should use CatalogPathAwareness."

Yes, I've experienced problems when basing objects only on
"CatalogAware": When http://localhost:8080/example_site and
http://www.example.org are really the same thing (one through virtual
hosting and rewriting) and when you reindex objects while being at
http://localhost:8080/example_site, then you will get surprising object
URLs in your catalog - pointing back to the site URL you used while
indexing.

Usually it's not much of a problem to change existing objects over to
CatalogPathAware.

It might work to use 
from Products.ZCatalog.CatalogPathAwareness import CatalogAware
- I don't know. But it's not the same as using "CatalogAware", which
usually stems from people following really old documentation and using
"CatalogPathAware would make it clear what's intended.

All this is probably documented somewhere.

Regards,

Sascha

___
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 can I reset zope time???

2007-03-23 Thread Sascha Welter
(Fri, Mar 23, 2007 at 09:03:55AM +0100) Jens Vagelpohl wrote/schrieb/egrapse:
> This issue appears when product authors naively use the database  
> modification time instead of defining their own field in which to  
> store modification time data. They would have full control if they  
> used their own time stamps. Most product authors simply don't know  
> what the possible consequences are, or when/how the database  
> modification timestamps are changing.

Zwiki of course uses its own timestamp attribute: last_edit_time

The original poster likely got in this mess by not using the Zwiki
methods to mass-revert the stuff.

Regards,

Sascha

___
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-Rewrite - Firewall - Problem

2007-03-23 Thread Sascha Welter
(Fri, Mar 23, 2007 at 03:51:36PM +0100) Andreas Tille wrote/schrieb/egrapse:
> I'm using an often recommended Apache-Zope rewrite setup to
> mask the internal folder structure in Zope.  The cruxial line
> in my apache (Debian Etch packaged version 2.2.3) is
> 
> 
> RewriteRule ^(.*) 
> http://a.b.c.d:9673/VirtualHostBase/http/a.b.c.d:80/myfolder/VirtualHostRoot$1
>  [P,L]
> 
> 
> where a.b.c.d is the visible address of the machine from
> outisde the firewall, myfolder the folder of my Zope
> application I want to provide under  a.b.c.d:80
> and as Debian users might are comfortable with 9673 the
> Zope port (default for Debian).

Before trying to debug a rewriterule issue, have you tried a rule you 
got from the witch?

http://betabug.ch/zope/witch

You will notice that the rule uses 127.0.0.1 - likely your address
a.b.c.d is considered to live on an external interface by your firewall.
In fact you don't need your FQDN at all in the rewriterule.

On a site note: If your system considers "localhost" to be a different
machine, then you have a problem anyway, but not necessarily related to
this. In such a case you would have to check your resolver setup.

Regards,

Sascha

___
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] 2.10.3: "default" keyword with tal:replace problems?

2007-03-27 Thread Sascha Welter
Hi Zopistas!

Yesterday evening I installed 2.10.3 for some tests with Zwiki (haven't
tried any of the other 2.10s). I noticed that the wiki logo wasn't
displayed. I think I narrowed it down to the "default" keyword in
tal:replace being treated like "nothing".


 My testcase (in a blank ZPT):

[http://127.0.0.1:8080/misc_/PageTemplates/zpt.gif"; 
tal:replace="structure here/notexists|default" />]

[http://127.0.0.1:8080/misc_/PageTemplates/zpt.gif"; 
tal:replace="structure default" />]

[http://127.0.0.1:8080/misc_/PageTemplates/zpt.gif"; 
tal:replace="default" />]


 Expected behaviour:
In 2.9 these render to 3 little zpt.gif icons in []. Rendered source:
[http://127.0.0.1:8080/misc_/PageTemplates/zpt.gif"; />]

[http://127.0.0.1:8080/misc_/PageTemplates/zpt.gif"; />]

[http://127.0.0.1:8080/misc_/PageTemplates/zpt.gif"; />]

 What I got:
In 2.10.3 this renders to the html source:
[]

[]

[]


I tested on two machines, but both Mac OS X 10.4 (one PPC, one Intel),
so I'd be glad if someone could try and reproduce it, to see if it's
just on "my" OS / machine combination. If it is, I will of course submit
it to the Collector. Of course if the expected behaviour has changed,
then I must have missed that information.

Regards,

Sascha

___
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] Simple ZODB Search and Edit

2007-04-11 Thread Sascha Welter
(Tue, Apr 10, 2007 at 11:01:39AM +0200) Peppe Top wrote/schrieb/egrapse:
> I'm new to Zope and I'm reading through a few tutorials
> and the Zope book. I need to do a text string search on
> a ZODB and I need to know which objects contain the string.
> 
> Example: I have a site running up, and I need to know
> where my mail is mentioned, so I can edit each object
> and update the mail. (I think using ZMI)

Go to the Root Folder in the ZMI, click on the "Find" tab. Enter
whatever data you have and click on "Find".

> >From the documentation I think that ZCatalog might do
> the trick, but I'm not sure it's the easier solution.
> 
> Am I on the right path?

I don't think so, but it largely depends on what you are really trying
to do.

> Can you get me started?

To get started please read:
http://wiki.zope.org/zope2/ZopeStarter

If you want to build your own application with Zope, you should build
your own products that will hold the presentation and "business logic".
The instances of those products will be stored in the ZODB and those
will contain the content of your application. As someone else already
mentioned you can make your content searchable with very little work, by
using a ZCatalog and a minimal amount of extra code in your products.

> I just need a fixed string search, returning the name
> (maybe the path too) of the object inside the ZODB, so
> I can later edit.
> 
> Is ZMI the right tool to do simple editing?

No. The ZMI is an administrative interface. It's not meant to build end
user interfaces upon it.

> Also is ZCatalog already included in Zope, or do I need
> to install it?

Sure it's in there. You can see it as "ZCatalog" from the ZMI "Add" menu
in the upper right corner.

Another thought: *If* you are trying to build a content management
system, maybe you should consider starting out with one of the existing
ones that run on Zope? Configuring / extending that to your needs? They
usually come with full text search out of the box - and they already
know how to handle all those little pitfalls you will encounter.

Regards,

Sascha

___
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: VirtualHostBase VHM keyword doesn't work.

2007-04-12 Thread Sascha Welter
(Tue, Apr 10, 2007 at 09:34:02PM -0700) Dilley, Hara
wrote/schrieb/egrapse:
>
> are you loading the proxy modules?
>
> here is part of the http.config file that is working for me, however
> with that configuration all request are going to zope. Is there a way
> to have part of the requests going to zope and others being served by
> apache?

Please read http://wiki.zope.org/zope2/ZopeAndApache and then **do not
bother to make up your own rewrite rule** but instead go to
http://betabug.ch/zope/witch to get your rewriterule.

Maybe (only maybe) this applies to you too:
http://betabug.ch/blogs/ch-athens/437
(depending on what you mean by "others going to apache").

If anything goes wrong, pay special attention to the section "Debugging,
Common Pitfalls, Problems" in the ZopeAndApache page.

Regards,

Sascha

___
Zope maillist  -  [EMAIL PROTECTED]
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: MemoryError exception when importing a zexp file

2007-05-31 Thread Sascha Welter
(Wed, May 30, 2007 at 10:31:31AM +0100) Ben Lobo wrote/schrieb/egrapse:
> Thanks for the tip. I tried increasing the swap file to 10GB but still got
> the same memory error.

Some operating systems limit the amount of RAM a single process can
consume. Sometimes that amount can be adjusted. Also 32bit systems can
only use a limited amount of RAM per process due to the limit of what
you can address with 32bits -- over that amount you can give the system
100GB or 1000GB of swap, it won't change a thing. Even if those do not
apply, I guess it's very much possible for a process to eat up all the
RAM, no matter how much that is, all it would need is a little bit of
recursion.

> I'm now considering exporting the Plone site (cos that's what it is) one
> piece at a time and reimporting it into a clean Plone site. Any thoughts on
> whether or not this is a good idea?

Not mentioning Plone in the first place is problematic. In fact *plone*
is problematic. Did you verify with plohn people (e.g. on a Plone
mailing list) that current plone versions can be imported/exported?
(Because the last time I made the mistake to do a project with
plone you couldn't import/export a plone site -- or rename it, move it
to another instance or anything similar for that matter -- without major
pain. It's been a while though, so things could have changed.)
Summary: Go and ask the plone people, if you can't import anyway, the
whole exercise is in vain.

Good luck!

Regards,

Sascha

___
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] Creating a ZCatalog to catalog the newly created objects using ZClasses

2007-06-11 Thread Sascha Welter
(Sun, Jun 10, 2007 at 01:21:34PM +0100) kamal hamzat wrote/schrieb/egrapse:
> Please can somebody point me to "How to" for any of these new
> recommended ways.

http://papakiteliatziar.gr/BetaBoring is the newest one out there, most
of the others are listed at:
http://wiki.zope.org/zope2/DiskBasedProduct

Also you should likely read http://wiki.zope.org/zope2/ZopeStarter which
points to the very nice tutorial at
http://www.upfrontsystems.co.za/courses/zope

Regards,

Sascha

___
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] New class, no access to manage_propertiesForm etc.

2007-06-27 Thread Sascha Welter
(Tue, Jun 26, 2007 at 03:37:28PM +0200) Winterflood, Jonathan 
wrote/schrieb/egrapse:
> I have created a new class in my product, but I can't access the
> PropertyManager pages for it:
> 
> import Persistence
> from OFS.PropertyManager import PropertyManager
> # Zope security infrastructure
> from Globals import InitializeClass
> from AccessControl import ClassSecurityInfo
> class MyClass(Persistence.Persistent,PropertyManager):

Please don't bother mixing together your own object classes from
scratch. The smart move is to build up your own objects either from
Folder, OrderedFolder, BTreeFolder2, or -- if it really should be
something simple that doesn't do much -- SimpleItem.

I would recommend having a look at
http://wiki.zope.org/zope2/DiskBasedProduct and (if I might say so) at
http://papakiteliatziar.gr/BetaBoring

Regards,

Sascha

-- 
  "We were up to our knees in snow, clambering with our hands. 
   Except for a fight with an ex-girlfriend, I have never 
   wanted an ice axe more."
- Michael Ybarra
___
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 restore a copied instance.

2007-06-27 Thread Sascha Welter
(Tue, Jun 26, 2007 at 01:41:51AM +0300) Tudor Gabriel wrote/schrieb/egrapse:
> (in debian) plone-site using aptitude ... it automatically makes a new
  ^ 
   note this

> after that i
> stopped the server ... and copied my site (instance folder) from the
> other computer over this one.

... snip some more stuff that didn't work ...

> do you know how can i achieve that?

Plone is special in respect to being moved around / copied&pasted /
imported&exported / renamed. It often does not stomach such basic
things.

You should ask on a *plone* mailing list for the proper course of
action.

Regards,

Sascha

-- 
http://papakiteliatziar.gr/PloneQuotes
___
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] handling exceptions for external methods

2007-07-09 Thread Sascha Welter
(Fri, Jul 06, 2007 at 02:55:47PM -0700) David Bear
wrote/schrieb/egrapse:
> I've begun using external methods and am trying to better understand the
> context they run and and how to handle exceptions. I have concluded
> the following (and I don't recall reading some of these in any documentation)
> (please correct me if I'm wrong)
> 
> 1 external methods run in the same interpreter as zope
> 
> 2 external methods have access to a larger namespace and therefor more

... snip ...


You forgot this one:

0 external methods are just a hack, they are to be used only in
  exceptional cases. Learn how to make a filesystem based python product
  instead and waste as little time as possible on external methods.

Hope this helps!

Regards,

Sascha


___
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 import a basic class in Script (Python)

2007-07-19 Thread Sascha Welter
(Wed, Jul 18, 2007 at 12:26:06PM +0300) Tudor Gabriel wrote/schrieb/egrapse:
> To learn zope I am trying to write a basic library page.
> I wrote a book_py class ... and from search_books_py try to return a
> list of books to show in a ZPT.
> 
> now let's suppose all the files (all the py and zpt files) are in the
> same directory:Library

Please save yourself some time and read 
http://wiki.zope.org/zope2/ZopeStarter
for pointers to valuable information as you start out.


> If there isn't, and i have to make a custom Product for my Book class...
> please give me a basic example of how can i make that.

http://papakiteliatziar.gr/BetaBoring
also the stuff linked from the ZopeStarter page.

Hope this helps!

Regards,

Sascha

___
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] utf-8 problem in Zope when using Localizer

2007-08-25 Thread Sascha Welter
(Fri, Aug 24, 2007 at 10:26:42AM +0200) Patrick Ulmer wrote/schrieb/egrapse:
> Now I only must find the right place for setdefaultencoding() so
> it only affect my zope-instance.

Install a separate python that is used only by your zope instance. Use
setdefaultencoding only there.

Regards,

Sascha

___
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] WYSIWYG editors? (was: SOAPMethod)

2007-09-04 Thread Sascha Welter
(Mon, Sep 03, 2007 at 12:10:13PM -0400) Tom Von Lahndorff wrote/schrieb/egrapse:
> ...People on this list though will always recommend  
> TAL because they are mostly developers who use WYSIWYG html editors.  

Tom,

whatever you might say about DTML vs. Page Templates, *this* sentence of
yours is just bullsh... Do you think any of the Zope devs sit around and
design their stuff in DreamReaper or GoDeath? You must be joking.

People on this list recommend TAL for various reasons, but none of them
have anything to do with them using point-and-click "webdesign"
programs.

Regards,

Sascha

___
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] Bare except clause in respect to self.DestinationURL()

2007-10-13 Thread Sascha Welter
Hello Zopistas!

This pattern here is very common in many people's Zope products:

try: u=self.DestinationURL()
except: u=REQUEST['URL1']

It's usually in the manage_addXY() method, when all the work is done, we
test for REQUEST!=None and we want to know where to redirect to.

Is there a reason for that bare except here? Wouldn't 
except AttributeError: ... do the job just as well?

Currently I'm in the process of smoking out bare except clauses in the
Zwiki code. I've learned that bare except clauses are bad (amongst other
reasons mainly because they can swallow ConflictErrors), so I try to be
a good kid and get rid of them. This spot seems to be somewhere where a
ConflictError could happen (we're creating something), but OTOH it gets
run when creating from the ZMI, so...

It might be that in this spot it's just irrelevant and I've turned
pedantic in my hunt - or there might be a reason for this.
What do you think?

Regards,

Sascha

PS. I hope this doesn't kick off a bike shed discussion... :-)
___
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] backup full instances

2007-10-26 Thread Sascha Welter
(Fri, Oct 26, 2007 at 04:57:02PM +0200) Jonas Meurer wrote/schrieb/egrapse:
> And which other ways to you know to backup an entire instance? Maybe
> sync it with ZEO to another server in realtime? Or use some export
> method?

repozo.py

Also don't forget to backup all the products and zope.conf once in a
while.

Regards,

Sascha

___
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] dtml-tree - change icons

2007-11-23 Thread Sascha Welter
(Wed, Nov 21, 2007 at 07:10:32PM +0100) Dieter Maurer wrote/schrieb/egrapse:
>  However, I was told that there is a better tree package (forgot
>  its name).

We're using ExpansionTree, which is ages-old, but it works. Maybe that
was the name you were looking for.

Regards,

Sascha

___
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: Frustrated with Python and Frameworks. Zope, Grok, , Django, CherryPy

2007-12-01 Thread Sascha Welter
(Fri, Nov 30, 2007 at 09:24:25PM +0100) Martijn Faassen wrote/schrieb/egrapse:
> I don't think the technology is the most work here. We need someone to
> go through and create
> the content. Even a simple web-page listing interesting products and
> where to find them would already
> be tremendous progress.  Content will be our challenge, let's not
> worry about technology too much, which
> should be in good hands.

How about http://www.contentmanagementsoftware.info/

It doesn't have everything, but I found it to be useful some times.

Regards,

Sascha

___
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] temporary exclude page from ram-cache

2007-12-06 Thread Sascha Welter
(Wed, Dec 05, 2007 at 04:33:33PM +0100) Jaroslav Lukesh
wrote/schrieb/egrapse:
> I have RAM-cached page that looks for data from SQLdb. For error
> suppression (yea, I use MSSQL which make sometime unbelievable SQL
> error with the same errorless query) I use try-except wrapper, but in
> some cases page is cached without db results for a long time.
>
> I know how to invalidate already rendered page from a ram cache, but
> I does not know how to temporal disable RAM-cache during rendering of
> that page.

If with the ramcached "page" you mean a ZPT, the answer is "don't do
this". Please refer to the RAM Cache documentation why not to cache
complete ZPTs.

The proper setup is to cache only the method that returns the data, if
you do that you can look at the result and/or check if any exceptions
were raised and decide if you update the cache or not.
When you look at the example code on http://betabug.ch/blogs/ch-athens/635
you see immediately where you can decide to do self.ZCacheable_set or
not.

Regards,

Sascha


___
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] Accessing Zope REQUEST data from a Python module

2007-12-06 Thread Sascha Welter
(Wed, Dec 05, 2007 at 07:35:22PM -0500) Ken Winter
wrote/schrieb/egrapse:
> I'm customizing a product.  To do what I'm trying to do, I need to be able
> to access REQUEST data from within a Python module (not a script; a .py file
> containing class and method definitions).

Usually REQUEST is handed down to your method, as in:

def mymethod(self, someparameter, REQUEST=None):

and you then test for REQUEST not being None to determine if your method
was called through a web browser or from another method.

But... why don't you just follow one of the tutorials or sample products
for making Zope Products?
http://wiki.zope.org/zope2/DiskBasedProduct
If I may say so myself, I'd recommend the newest one:
http://papakiteliatziar.gr/BetaBoring

Also very nice is the tutorial linked from the ZopeStarter page
http://wiki.zope.org/zope2/ZopeStarter
which is at
http://www.upfrontsystems.co.za/courses/zope

Regards,

Sascha


___
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] Intercept request

2008-01-08 Thread Sascha Welter
(Mon, Jan 07, 2008 at 08:18:14AM -0600) David Chelimsky wrote/schrieb/egrapse:
> The use case is that my client wants to block a range of IP addresses
> from being able to view their site. So I need to access the
> originating IP address and filter appropriately.

You might also want to look at http://betabug.ch/wiki/HoneyPotBL
which is a module that accesses the projecthoneypot.org HTTP blacklist
database. The actual code to block access is not in this module (as I
believe it's application specific), but anyway it might be interesting.

Regards,

Sascha

___
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] Cant access 'real' root folder in ZMI

2008-01-31 Thread Sascha Welter
(Wed, Jan 30, 2008 at 02:07:47PM +1100) [EMAIL PROTECTED] wrote/schrieb/egrapse:
> I recently installed plone 3 on a RHEL 5 server and did some
> mucking around to get apache working with it. I mostly followed the
> 'apache-with-plone' tutotial on plone.org to do this. The way it is
> currently set is as follows:

Please follow the information on
http://wiki.zope.org/zope2/ZopeAndApache
and then get your rewrite rule from http://betabug.ch/zope/witch

> - Apache set to ProxyPass requests from "me.com:80" to "localhost:8080" (I 
> followed the turtorial mentioned above)

Nobody really uses ProxyPass any more nowadays. apache's RewriteRules
are just more flexible. That tutorial is outdated in this respect.

> However, both these methods lead me straight to the plone website, not
> to the "Zope Quick Start" page and while i can access the ZMI from
> plone, serverA:8080/manage or www.me.com/managae, the root folder
> shown there is the plone site's root folder.
>
> Even when i stop apache and access through servera:8080 i still get
> the plone site.

My guess: You probably mucked around with the "Mappings" tab in the
Virtual Host Monster. Bad idea. The VHM is to be left alone, any
Mappings should be set up using RewriteRule in the apache config.

I don't know how you can un-muck this situation in the VHM. Deleting the
VHM (e.g. through ftp or webdav) will likely not change anything, but
maybe give it a try after a good backup of the Data.fs. Maybe there is a
secret request variable to suppress the VHM mapping? But I don't know
it.

> I need access to the 'real' root folder, ie the one with
> "Control_panel", to set some user roles and permissions, but i cant
> find a way.
>
> I think i must have changed a setting while trying to get apache
> going, but cant remember what I did and I cant seem to find anything
> solving this problem on the internet. Can anyone point me in the right
> direction to solve this problem.

If accessing Zope through port 8080 shows the same problem, it's
unlikely a problem in the apache config.

Regards,

Sascha

___
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] define a class in a python script

2008-03-05 Thread Sascha Welter
(Wed, Mar 05, 2008 at 10:43:33AM +0100) Yuri wrote/schrieb/egrapse:
> An external method can load only a function, not a class, so really I 
> need to write a product just only for a class?

A simple product can be had with as little as 80 lines of code:
http://papakiteliatziar.gr/BetaBoring

Since doing anything properly in Zope leads to writing filesystem based
products anyway, why bother with ZMI python scripts for anything but the
most basic "script" use?

Regards,

Sascha

___
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 dot in method name

2008-03-26 Thread Sascha Welter
(Tue, Mar 25, 2008 at 09:36:49PM +0100) bard st?phane wrote/schrieb/egrapse:
> hi every body i'm changing a very old zclass product.
> In this zclass i declare a python script with this name "mydoc.xls"
> this script return an xls file with an argument
> 
> now i'm writing a zope2 product. How can I explain to zope
> that he should publish a certain method with a different name
> so when people type 
> http://myIntranet/folder/mydoc.xls?fileName=hello.xls it point
> to a real python method (dot caracter are forbiden in python class method)

http://betabug.ch/blogs/ch-athens/144
"Zope Methods with a Dot in the name"

HTH!

Regards,

Sascha

___
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] Authentication after proxy

2008-04-07 Thread Sascha Welter
(Mon, Apr 07, 2008 at 06:11:33AM +0200) Andreas Jung wrote/schrieb/egrapse:
> 
> --On 6. April 2008 20:46:57 -0400 "Maslak, Michael" 
> <[EMAIL PROTECTED]> wrote:
> 
> > I have put the Zope server behind a reverse proxy using ssl. I think I
> > have some of the Apache certificate problems solved. Zope asks me to
> > authenticate once after accepting the ssl cert. But then it asks me to
> > authenticate again and there are more certs to be accepted. I'm sure
> > this is a common enough situation: Zope behind Apache rewrite rules on
> > the target server that all lives behind a proxy server, all using ssl.
> 
> Please provide your configuration with the rewrite rules.
> The rules for putting  Zope behind Apache doing SSL are basically the same
> compared to a standard setup without SSL.

... and then, problems with Apache, Zope, and RewriteRules are
almost totally in the realm of FAQs and "resolved problems", please
consult the relevant docs at:
http://wiki.zope.org/zope2/ZopeAndApache
(if you still have problems, see especially the section "Debugging, 
Common Pitfalls, Problems") and then get your rewrite rules from the witch:
http://betabug.ch/zope/witch

The browser presenting multiple certs IMHO points to the rewriterule not
being right and subsequent page elements being requested with different
subdomains due to that.

Regards,

Sascha

___
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] Making Zope stop storing old object versions

2008-05-09 Thread Sascha Welter
(Thu, May 08, 2008 at 08:08:28AM +0800) Sinang, Danny
wrote/schrieb/egrapse:
> We've got lots of Catalog reads and writes and our Data.fs is growing
> at an immense rate.

Sometimes you have to look at your product code and figure out what it's
exactly doing. For example many times not very optimal products will
change all the instance when only a small attribute changes, resulting
in a zodb write that is much larger then really needed.

I documented an example of a hunt for a case like that in
"Quasi-Normal in Numbers": http://betabug.ch/blogs/ch-athens/708

Regards,

Sascha

___
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] Best policy to assign policy to assign ids to objects inside BTreeFolder2

2008-07-09 Thread Sascha Welter
(Mon, Jul 07, 2008 at 02:52:57PM +0200) Marco Bizzarri wrote/schrieb/egrapse:
> I need to create a number of objects inside a BTreeFolder2 container.
> 
> I would like to minimize the chances of conflicts, so I'm exploring
> possibilities to assign ids; up to now I've found the following:
> 
> - timestamps
> - random numbers
> 
> What is the best choice to reduce the chances of conflicts?

How about the API that BTreeFolder2 provides?

Look for generateId(). In my experience it works quite well. It just
counts integers up, but resolves conflicts. It gives you the ability to
assign prefixes and suffixes.

Regards,

Sascha

___
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] change password through script messes up session

2008-10-06 Thread Sascha Welter
(Sun, Oct 05, 2008 at 09:48:20PM -0400) Thibaud Morel l'Horset 
wrote/schrieb/egrapse:
>   I'm trying to write a piece of code that just changes the password of a
> user as they are logged in. This is in a Script(Python). I'm using PAS and
> CookieCrumbler and the code is as follows:
> container.acl_users.users.manage_updateUserPassword(user['id'],password,password)
> 
>   This does work and change the password, however what happens then is
> anytime I try to access a resource that I could view prior to changing the
> password, I get a basic pop-up auth login prompt (even though I'm using
> CookieCrumbler), and entering the new creds doesn't work. If I logout
> through the login/logout link and log back in with the web form, everything
> is fine (and the new creds do work then).

AFAIK this case is documented in the CC docs, also it's quite obvious
from the CookieCrumbler API: You need to call its credentialsChanged
method.

Regards,

Sascha

___
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-dev] Zope 4.0, maybe not such a bad idea...

2009-04-03 Thread Sascha Welter
(Thu, Apr 02, 2009 at 04:11:00PM -0400) Jim Fulton wrote/schrieb/egrapse:
> I don't think we need A&B.  Maybe just "Zope" and "Zope Framework".

As long as both use the word "Zope", the confusion will continue.

Why don't the Zope 3 people find a different name now, something that
relates but is not the same?

What good is there in confusing people? On the #zope irc channel we
have to beg/force/constantly remind people to state the version they're
using, because practically that channel supports two totally different
pieces of software.

I understand that the developers would like everybody to move to shiny
new Zope 3 and maybe think if they stick to the known name that will
help this transition. But Zope 2 still works for some people (and will
for a long time), those Zope 2 people won't move over by mistake. Even
new people (who Chris so much despises landing on Zope 2) are not helped
if they *accidentally* land in Zope 3 land. Does anybody honestly think
"I started to use Zope 3 because I confused these projects which use the
same name" is a convincing argument? Let Zope 3 get adopted because it's
better, not because it's confusing people by using the same name.

Regards,

Sascha

___
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] Mod_Rewrite port 8080

2009-04-07 Thread Sascha Welter
(Mon, Apr 06, 2009 at 10:01:52AM -0700) Bobby wrote/schrieb/egrapse:
> I want to use mod_rewrite on Apache to redirect
> http://internal:80/internal to http://internal:8080/internal so
> that when the user request http://internal:80/internal, the Zope
> folder foo will be served up. I still want http://internal:80/ to
> stay intact so that the contents from port 80 will still be served;
> just the http://internal:80/internal to point to the Zope folder
> http://internal:8080/internal. Hope that makes sense. Could someone
> help me out with the syntax? Tried the syntax below but not getting

http://wiki.zope.org/zope2/ZopeAndApache for the theory
http://betabug.ch/zope/witch for the rewrite rule

Regards,

Sascha

___
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] Executing a text file as a ZPT from a product

2009-05-04 Thread Sascha Welter
(Sun, May 03, 2009 at 09:26:57AM +0200) Jakob Schou Jensen 
wrote/schrieb/egrapse:
> Im am writing a product and would like to include ZPT's as part of the
> product. Is there a way that I can evaluate a piece of text (preferrably
> stored as a text file in the product folder) as a ZPT?

Yes of course you can - and about every guide on writing your own product
shows you how to do it.

For example just look at my BetaBoring sample product:
http://papakiteliatziar.gr/BetaBoring

What you do is use PageTemplateFile:
from Products.PageTemplates.PageTemplateFile import PageTemplateFile
...
_www= os.path.join(os.path.dirname(__file__), 'www')
...
index_zpt = PageTemplateFile(_www+'/index.zpt', globals())

Regards,

Sascha

___
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] ZopeProfiler uninstall

2009-12-01 Thread Sascha Welter
(Tue, Dec 01, 2009 at 02:33:04PM +0100) Gaute Amundsen wrote/schrieb/egrapse:
> We have ZopeProfiler 1.72 installed on a site (Zope 2.7.5-1.fc3) that
> don't need it anymore.
> I've removed the folder and deleted the product, but I cant' find a way
> to remove it form the controlpanel.
> I notice it's been asked once before, but I cant find any replies.
> 
> Any hints?

http://www.peterbe.com/uninstall-LeakFinder
https://mail.zope.org/pipermail/zope-dev/2001-August/012742.html

Same procedure applies to ZopeProfiler too, IIRC.

Regards,

Sascha

___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] SQL Method running twice

2009-12-17 Thread Sascha Welter
(Tue, Dec 15, 2009 at 02:10:17PM -0600) Justin Dunsworth wrote/schrieb/egrapse:
> I simplified a page and all it's dependencies and added code back one by
> one. It eventually ended up coming down to one tag that was switching
> browser modes and POSTed twice. Switched compatability mode to on with IE8
> and did it with the same tag and it worked fine.
> 
> I removed the tag:  http://www.w3.org/TR/html4/strict.dtd";>

Your document did not comply to what IE8 expects in a HTML 4.01 strict
document. So it goes to "quirks mode" and in its glorious stupidity
reloads the page to do so.

Two things come to mind:

- don't remove the docstring, switch to the correct one - search the
  Intarweb thing for the correct one for IE8 "compatibility mode" and of
  course for your html

- I guess if the request leading to the zsql method that changed things
  in the database was called through a form (and not as a plain link)
  then maybe IE8 wouldn't try to reload

Good luck in any case!

Regards,

Sascha

___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Order of Indexes when reindexing

2010-11-09 Thread Sascha Welter
Hi Zopistas!

I have a funny situation here, where aparently the order in which
indexes are rebuilt during an object reindex introduces some random
error.

There are 2 kinds of objects: jobs and documents. Documents are for
this example invoices that invoice one or multiple jobs. Each job can be
invoiced in zero, one or multiple invoices. Due to modelling the way
people work, the link is done from the document to the job, i.e. in the
document we store the IDs of jobs that are invoiced. The job can find
the documents that it's invoiced in via a Catalog search.

Each job needs a "most relevant invoice" date, if the job has 2
invoices, the date of the invoice with the highest amount is the "most
relevant" date. That's childs play. It gets put into a DateIndex.

The problem appears when reindexing either a job (on editing the job)
or when reindexing all the catalog: Apparently sometimes, the "most
relevant date" index gets calculated when the "job-to-document" index is
still empty. Result is that about 5-10% of "jobs" have an empty value in
the "most relevant date" index.

What strategies are you following for avoiding one index to depend on
another? Or am I doing something wrong and I'm the only one who got a
problem which seems to be angled on the order with which indexes are
emptied and reindexed?

Thanks for any hints!

Regards,

Sascha

___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Trouble getting Zope 2.8/Python 2.3 to work in OS X 10.6

2010-12-23 Thread Sascha Welter
(Thu, Dec 23, 2010 at 10:10:37AM -0500) Dan Gaibel wrote/schrieb/egrapse:
> I am having a heck of a time getting Python 2.3.5 installed in OS X  
> 10.6 (Snow Leopard server.) I need it for a Zope 2.8.6 installation.  
> OS X comes with Python 2.6.1 and I guess my plan is to have 2.3  
> installed alongside it.

This is what I had to do for getting python 2.4 to compile:
http://betabug.ch/blogs/ch-athens/1019

It involved some patches too. Maybe it will help you a little bit along
with python 2.3.

Regards,

Sascha

___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] CatalogPathAwareness and zope.lifecycle

2011-04-14 Thread Sascha Welter
Hello Zopistas,

as I was just testing moving a big, old application to Zope 2.13, I was
greeted with the following error:

(...)
from Products.ZCatalog.CatalogPathAwareness import CatalogPathAware
ImportError: cannot import name CatalogPathAware

Looking at the code informs me that CatalogPathAwareness is deprecated,
but wouldn't that mean that it should still be there?


Next part of the question:
Looking at http://pypi.python.org/pypi/zope.lifecycleevent
I see some examples about calling those notify() events, but nothing
that would tell me how to replace CatalogPathAware with this stuff.
Googling for [CatalogPathAware zope.lifecycleevent] does not give me
anything besides some SVN commit messages.

So, anybody have some examples of doing this?

Specifically an example for replacing CatalogPathAware with
zope.lifecycleevent. Since this is what the depreciation message talks
about, it's been done many times over and should be well documented,
right?

I also hope that developers are aware that this change involves changing the
base classes that classes in production systems out there are based on.

Thank you very much,

Regards,

Sascha

___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Running Tests on my Zope Product in Zope 2.13

2011-04-14 Thread Sascha Welter
Hello again Zopistas!

While I am on the topic of Zope 2.13, could someone please tell me how I
can run my tests on my (old style, not egg) Zope Products in Zope 2.13?

It seems that `zopectl test` went away without leaving more than a note
on the tab^W^W^Win the CHANGES.txt log:
"Removed the test command from zopectl. The test.py script it was
relying on does no longer exist."

So, how do I run my tests now?

Thanks for any hints!

Regards,

Sascha

___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Running Tests on my Zope Product in Zope 2.13

2011-04-19 Thread Sascha Welter
(Tue, Apr 19, 2011 at 03:52:04PM +0200) kiorky wrote/schrieb/egrapse:
> Le 14/04/2011 15:49, Sascha Welter a ?crit :
> > While I am on the topic of Zope 2.13, could someone please tell me how I
> > can run my tests on my (old style, not egg) Zope Products in Zope 2.13?
> 
> Eggify your product and use zc.recipe.testrunner [1]
> 
> [1] - http://pypi.python.org/pypi/zc.recipe.testrunner

Thank you, over the last few days I came to the conclusion that this
would probably be the answer. Lot's of work to do then.

Regards,

Sascha

___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] [Zope-dev] Security announcement update

2011-06-28 Thread Sascha Welter
(Tue, Jun 28, 2011 at 12:57:02PM +0100) Laurence Rowe wrote/schrieb/egrapse:
> This is an update on today's security hotfix release.

Thank you for the update, most helpful!

> The fix will be released at 15:00 UTC today, Tuesday 28th June, 2011
> (11:00am US EDT.) Updated versions of Zope 2 containing the security
> fix will be released at the same time.
> 
> For details on which versions of Zope and Plone are affected, please
> see: http://plone.org/products/plone/security/advisories/20110622

It says "Zope 2.10 and 2.11 users who have not installed
PloneHotfix20110720 are not affected" - can I conclude from that,
that Zope 2.9 would not be affected either?

Regards,

Sascha

___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Troubles with a Zope-2.7.7-final instance

2014-03-17 Thread Sascha Welter
(Mon, Mar 17, 2014 at 12:00:01PM +0100) zope-requ...@zope.org 
wrote/schrieb/egrapse:
> Date: Mon, 17 Mar 2014 09:05:00 +0100
> From: Herbert Liechti 
> I have some troubles with a customers system whos maintainer is no longer
> available. There was a zope 2.7.7 instance running there until last week.
> The system was rebooted after a long time an the instance did not come back
> online.
> 
> I tried different things and after all I compiled python2.4 and all
> dependend stuff (I found all sources on the system). Now the instance is
> starting up with zopectl start. Unfortunately after a few minutes the
> instance dies without any messages in the log files. I tried to increase
> the log level but it has no effect.
> 
> The instance should listen on port 8080. But I never encountered a listen
> on that port when I start up zope. I have no idea where to search now.

First step, start it with `zopectl fg` in the foreground to be able to
see any error messages popping up. If it takes a few minutes, it might
be reindexing the db on startup and then running into a problem.
Whatever it is, "fg" gives you a chance to see more.

> I'm not very familiar with zope. Any help is much appreciated.

Here are some hints that I wrote down a while ago:
http://betabug.ch/blogs/ch-athens/1217

Regards,
Sascha

___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )