Re: [ZWeb] download.zope.org without DNS record?

2016-07-21 Thread Sascha Welter
(Thu, Jul 21, 2016 at 10:02:59AM +0200) Andreas Jung wrote/schrieb/egrapse:
> Working for me.

Hey Andreas,

My mail was from July 18, it took a few days to go out, since dns for
mail.zope.org also wasn't working :-)
A couple of people reported the problem on IRC and I think Jim took up
the issue.

Regards,
Sascha

> On 18 Jul 2016, at 16:57, Sascha Welter wrote:
> 
> > Hi!
> >
> > It seems that download.zope.org is not resolving any more.
> >
> > Regards,
> > Sascha
> >
> > ___
> > Zope-web maillist  -  Zope-web@zope.org
> > https://mail.zope.org/mailman/listinfo/zope-web


___
Zope-web maillist  -  Zope-web@zope.org
https://mail.zope.org/mailman/listinfo/zope-web


[ZWeb] zope.org domain expired

2015-12-02 Thread Sascha Welter
Hi!

No idea if this mail will make it anywhere...

Apparently the domain zope.org expired on 11/27/2015.

Regards,
Sascha

___
Zope-web maillist  -  Zope-web@zope.org
https://mail.zope.org/mailman/listinfo/zope-web


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 xher...@gmail.com
 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 )


[ZWeb] download.zope.org is down since some time

2013-06-11 Thread Sascha Welter
Hi!

It seems that download.zope.org is down for about a week. The IP
176.9.22.59 which is listen in the DNS record does not answer to ping.

Anybody knows what's wrong there?
Thanks!

Regards,
Sascha

___
Zope-web maillist  -  Zope-web@zope.org
https://mail.zope.org/mailman/listinfo/zope-web


[ZWeb] zope.org down again?

2011-12-29 Thread Sascha Welter
Hi!

Looks like www.zope.org is down again. I think it's been either down
for some days now or else it's down intermittently (and always when I
looked at it).
It's giving a 503 Service Temporarily Unavailable.

Regards,

Sascha Welter

___
Zope-web maillist  -  Zope-web@zope.org
https://mail.zope.org/mailman/listinfo/zope-web


[ZWeb] zope.org down?

2011-12-15 Thread Sascha Welter
Hi!

Looks like www.zope.org is down for 20 hours or so.
It's giving a 503 temporarily unable to service your request.

Regards,

Sascha Welter

___
Zope-web maillist  -  Zope-web@zope.org
https://mail.zope.org/mailman/listinfo/zope-web


[ZWeb] buildout link broken

2011-10-12 Thread Sascha Welter
Hi!

Someone on #zope just noted that on http://www.zope.org/community the
link to http://buildout.zope.org/ is dead. buildout.zope.org does not
resolve properly (there is a CNAME record to hetzner03-1.zope.org - but
name resolution stops there).

Regards,

Sascha

___
Zope-web maillist  -  Zope-web@zope.org
https://mail.zope.org/mailman/listinfo/zope-web


Re: [Zope-dev] direction

2011-07-06 Thread Sascha Welter
I'm sorry, I don't really understand the current line of discussion yet.

I see a lot of discussion which part is going to be cut out and dropped,
or replaced. I haven't yet understood what's the end target for the
project.

So, are you guys expecting to get Zope into a shape where it will
attract new users and be a viable player again? Or, isn't the line
currently that nobody uses Zope for new projects anyway?

In case that we believe that no new users are attracted to Zope,
wouldn't that mean that resources should go to make Zope into a shape
that helps existing applications run on Zope and survive? Modernize the
code, but break as little as possible in the process. As someone said,
what's the use for a company that has invested a lot of money in a Zope
Product, if there is something called Zope around, but they can't use
it without a major rewrite?


In case all these changes are made to make Zope again into a shiny new
framework that will attract new users, what's the use? Wouldn't people
go to pyramid anyway? There they have all that stuff already - but right
*now*.

Looking at the descriptions here, in that line of thought and in the
long run we'll end up with something like pyramid in a few years, only
with a lot more disgruntled former users and much more confusion about
the name. When you change the name in the end, you've come full circle
anyway.

Regards,

Sascha

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


Re: [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-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


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] 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-dev] CatalogPathAwareness and zope.lifecycle

2011-04-17 Thread Sascha Welter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

(Sun, Apr 17, 2011 at 07:10:07AM -0400) Tres Seaver wrote/schrieb/egrapse:
 Moving a big old application across multiple major versions at onece
 of any platform is likely to be painful:

Tres,

I know how to move an app to newer zope versions. My apps are enough
well behaved to have survived since 2.7 with few changes and from 2.10
straight to 2.13 needed only very few adjustments so far.

What I want to know:

The term CatalogPathAwareness was not found in the archives of
zope-dev in the last 6 years or so. Can any zope developer deprecate or
remove things on their own without discussion?

Removing CatalogAware/CatalogPathAware from Products.ZCatalog is one
point in question. Removing manage_afterAdd et al is another. This will
break lots of code out there that would happily run on otherwise.

Regards,

Sascha

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFNqvR6pYOq9ODq/IoRAtLlAJ0Qq7lac8cldIn89BkyQx+iXI/V2ACgqkVg
u0tT7DCxBN0sCyLbwffd5Hc=
=G5S7
-END PGP SIGNATURE-
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] CatalogPathAwareness and zope.lifecycle

2011-04-17 Thread Sascha Welter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

(Sun, Apr 17, 2011 at 02:58:12PM +0200) Charlie Clark wrote/schrieb/egrapse:
 As for an explanation of how to use events or simply getting a grasp of  
 using the ZCA in Zope 2 I can highly recommend Philip von Weiterhausen's  
 book on Zope 3. In many ways this is the missing Zope manual.

Charlie,

I really like this quote from the Pyramid documentation:

While the ZCA is an excellent tool with which to build a framework such
as Pyramid, it is not always the best tool with which to build an
application due to the opacity of the zope.component APIs.

- From my point of view, wearing my application developer hat,
event handling is YAGNI. In my estimate
- - 90% of Zope Products/Apps only use manage_afterAdd or use none of
  manage_after*
- - the other 9.9% use manage_afterDelete and/or some combination for
  handling copy+paste.
- - The other 0.1% thought very hard to find something else they
  thought they needed to do with events.

So a full feature, we have it all for you framework like Zope has been
doing fine to offer these few in an easy and simple way. Pyramid gives
me full event handling as an optional extra, because Pyramid is a you
pay only for what you eat framework and I might not even need those few
that Zope offers out of the box - or I might be in the 0.1% and need the
full deal.

Interfaces is even more YAGNI in the role of the application developer.
(Which is what the pyramid doc is saying there IMHO.)
I don't write a framework where you can swap out one templating system
for another, I just write an app that is finished at one point in time.

As for Philip's book, I guess you are aware that lots of it is already
outdated. Something to keep in mind and tell people when one recommends
that book. (Philip is well aware of that and his in hindsight, the book
should have been free/open blog post is quite interesting.)

 @Sascha I'm not sure if this will answer your question but you might want  
 to look at how Products.CMFCore.CatalogAware works.

Thank you.
This would answer my question if someone told me to take over
maintenance of CatalogAware / CatalogPathAware in Products.ZCatalog
and I'd have to rewrite it instead of just writing tests and if I then
asked the question where do I start?.

Regards,

Sascha

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFNqwQhpYOq9ODq/IoRAs9VAKCAFxvCYu6QX2QSSfibt01rFAr2lQCfVezW
NkycMDv2jMUXRLxcgC+GI7k=
=xmWB
-END PGP SIGNATURE-
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] CatalogPathAwareness and zope.lifecycle

2011-04-17 Thread Sascha Welter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tres and all,

so it looks like I came over as a total jerk who rides a personal attack
on Hanno. That is of course not my intention, not at all. I am sorry for
that.

I am grateful for every improvement to the code and it looks like Hanno
did a great job. I have expressed my regret for coming over to him like
that in a personal mail to him too.

What I did raise my voice for is the kind of backwards compatibility and
dependability that keeps an old application in the game even with a new
version of Zope, without having to go in and change everything. I want
developers to keep an eye open for that, even if it's not what they need
in their own work or if they believe that Zope is dead already.

The case that some admin in some random company has this Zope
application running somewhere and wants to move it to a new server and
a new Zope version, I believe that case should not be answered with go
and write that application from scratch on some other framework.

I also would like to insist that manage_afterAdd etc has been
undeprecated in 2.12 both in code and in the documentation
(CHANGES.txt).

I will step down from my soap box in this matter now. Whatever happens,
happens.

Regards,

Sascha

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFNqzaQpYOq9ODq/IoRAnZgAKCe8YPhgKYh7do0faMIPi8+24bWMQCdEYNh
GcPi/1e/cieih4xLoMRQCUg=
=jQ9P
-END PGP SIGNATURE-
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] CatalogPathAwareness and zope.lifecycle

2011-04-16 Thread Sascha Welter
(Fri, Apr 15, 2011 at 02:39:26PM +0200) Hanno Schlichting wrote/schrieb/egrapse:
  I assume this kind of thing has been discussed and the decision has been
  taken on judging backwards compatibility vs. the benefits of doing this?
 
 The particular code was unused for several years,

Sigh. Sorry Hanno, but just *sigh*.

Unused? Unused by whom? There is code out there that uses stuff
without you or anybody else typing in the code on a keyboard. How can
you claim it's unused? Do you make audits on what pieces of code people
use in their Zope projects?

People want to be able to move an existing Zope app to a new server and
a new Zope install there without having to sell the customer onto 15
hours of maintenance coding to fix 100 things that break. Not every
project is a new project.

 using manage_*
 methods is deprecated since Zope 2.8 or 2.9.

You are wrong.

CHANGES.txt in Zope 2.11 does not know anything about manage_*
being deprecated. Instead it says:

- Turned deprecation warnings for manage_afterAdd, manage_beforeDelete
  and manage_afterClone methods into discouraged warnings. These
  methods will not be removed in Zope 2.11, but stay for the
  foreseeable future. Using events is still highly encouraged.

The CHANGES.txt from 2.12 says:
Downgrade the ``manage_* is discouraged. You should use event
subscribers instead`` warnings to debug level logging. This particular
warning hasn’t motivated anyone to actually change any code.
And it will damn sure not motivate anybody, because code that uses that
runs just fine (thank you) and nobody sees any need to fix it to use
something that is undocumented and not tested in that particular setup.
That's not how maintenance on a working system works.

CHANGES.txt in 2.13 doesn't know anything about manage_* being
deprecated or removed any further.

If it doesn't break anything, if it doesn't break new code, why
depreciate and why remove it? We've had this same game with zLOG and
manage_afterAdd before. They're both still here, for good reason.

 If you really need this code, just copy it from an old release into
 your own codebase.

How about you don't delete it and I don't have to add it back?
Less work for you, less work for me, less work for everybody.

 Developing with Zope 2 is probably a frustrating experience, but that
 shouldn't come as a surprise to anyone.

It comes as a surprise to me. In fact, I find developing with Zope 2
quite an amusing and entertaining experience. And easy. You must be
doing something wrong.

I can understand though that Zope is not a system for newbies to start
*right now*, OK.

 The project is dead for
 several years now and is only kept left alive while Plone is migrating
 away from it or some long time developers are still using it. It's a
 large piece of legacy code that has no future - certainly not for new
 users or developers not already familiar with it.

Well, I don't know anything about what Plone is or isn't doing. No Plone
was ever able to move to a different Zope version without rewriting
basically everything, so maybe you think that's normal. It isn't like
that for most everybody else though.

IMHO the way to treat a large piece of legacy code is *not* to break
various things inside it because some other idea to do things seemed so
much cooler a while back (but which we also abandoned, because we'll get
rid of it all anyway).

The way to do that properly is to make it as stable an lasting as you
can and let it stay alive till it falls over by itself. So if you think
it's dead, OK, but there is no reason to actively kill it piece by piece.

Regards,

Sascha

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


[Zope-dev] CatalogPathAwareness and zope.lifecycle

2011-04-15 Thread Sascha Welter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello Zope Developers,

I've asked about this on the zope@ list, without getting any replies.
Talking about it in #zope, I decided that maybe I will have to ask here
from another point of view.


As I was 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. I since noticed that apart from the depreciation, also the
emtpy class CatalogPathAware(CatalogAware) has been removed from
CatalogPathAwareness.py.

The depreciation message points to zope.lifecycleevent.

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, please?

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.

I assume this kind of thing has been discussed and the decision has been
taken on judging backwards compatibility vs. the benefits of doing this?
(Personally I don't know those benefits, but I'm open to learn. I'm also
open to help if there is any work involved, I'm planning to give back
more to the zope community in the near future.)

Thank you very much,

Regards,

Sascha

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (Darwin)

iD8DBQFNqBeEpYOq9ODq/IoRAr8UAKCmziFbjoJ/rD+jOqycMnzyCjrPngCfQFoP
UOqcNboJ0XMuX3z9sBM6z2o=
=3aWj
-END PGP SIGNATURE-

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


[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] 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] 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 )


[ZWeb] download.zope.org

2010-10-11 Thread Sascha Welter
Hi!

I don't know if anybody already noticed... download.zope.org seems to be
down since yesterday (Sunday 2010-10-10).

Regards,

Sascha

___
Zope-web maillist  -  Zope-web@zope.org
https://mail.zope.org/mailman/listinfo/zope-web


Re: [ZWeb] download.zope.org

2010-10-11 Thread Sascha Welter
(Mon, Oct 11, 2010 at 09:49:48AM -0400) Jim Fulton wrote/schrieb/egrapse:
 AFAICT, it isn't being maintained.
 
 I stopped using it a while ago. :(

Well, it stopped a lot of people who use buildout, so I guess it must be
used in some way :-)

The problem is solved though, thanks to Jens having called the hosting
company. I had contacted him and two other people directly, because I
soon noticed that this list was offline too, due to running on
mail.zope.org, which was down too.

Regards,

Sascha

___
Zope-web maillist  -  Zope-web@zope.org
https://mail.zope.org/mailman/listinfo/zope-web


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: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN 
 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 )


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] 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] 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] [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 AB.  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] 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 )


[ZWeb] Reverse DNS record for cvs.zope.org

2008-08-29 Thread Sascha Welter
Hi!

The DNS for cvs.zope.org (used to send out password mails from zope.org)
points to 74.84.203.155. The reverse lookup of 74.84.203.155 points to
203-155.baymountain.com and 203-155.baymountain.com does not resolve to
any IP address. This results in some people being unable to receive
password confirmation mails etc. Maybe an A record for
203-155.baymountain.com could be set up or the PTR record for
74.84.203.155 configured to something valid?

Thanks for taking the time!

Regards,

Sascha

___
Zope-web maillist  -  Zope-web@zope.org
http://mail.zope.org/mailman/listinfo/zope-web


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] 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] 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] 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] 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: [ZWeb] Re: [Zope] Zope lists in google

2008-02-07 Thread Sascha Welter
(Thu, Feb 07, 2008 at 09:42:20PM +0100) Michael Haubenwallner 
wrote/schrieb/egrapse:
 Chris Withers schrieb:
  Josef Meile wrote:
  Today I noticed that google doesn't find anything when giving
  site:mail.zope.org anymore. It worked before :-(
  
  Yeah, I noticed this too. It's a real shame.
  
  I wonder who did that and why?
  (file objects have no history tab and the database has been packed to 
  the point where there's no Undo data)
  
 
 I can't think that mail.zope.org has anything to do with a ZODB or is 
 configured from zope.org

(Removed the cross posting, dunno what this has to do with zope@)

http://mail.zope.org/robots.txt has:

User-agent: *
Disallow: /

Somebody didn't like the bots to roam the archives? I think Chris wanted
to see the undo history to find out who made that change.

Regards,

Sascha

___
Zope-web maillist  -  Zope-web@zope.org
http://mail.zope.org/mailman/listinfo/zope-web


[ZWeb] wiki.zope.org not responding

2008-02-03 Thread Sascha Welter
Hello there!

Could someone look into wiki.zope.org not responding?
I get connection refused on port 80, has been like this since yesterday
I think.

Thank you very much!

Regards,

Sascha
(betabug)

___
Zope-web maillist  -  Zope-web@zope.org
http://mail.zope.org/mailman/listinfo/zope-web


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: [ZWeb] template error...

2008-01-21 Thread Sascha Welter
(Mon, Jan 21, 2008 at 11:27:39AM -0500) Chris McDonough wrote/schrieb/egrapse:
 Can anyone retrieve the content of 
 http://wiki.zope.org/CoreSessionTracking/CoreSessionTrackingDiscussion 
   ?  It doesn't render but I'm sure the content is under there  
 somewhere...

As Damien noted, add /text (or /src) to the URL to view the text source.
I've switched the page to reST, now it renders.

Regards,

Sascha

___
Zope-web maillist  -  Zope-web@zope.org
http://mail.zope.org/mailman/listinfo/zope-web


Re: [ZWeb] Would someone publish my ZSP document please

2008-01-15 Thread Sascha Welter
(Tue, Jan 15, 2008 at 10:57:00AM +0100) Michael Haubenwallner 
wrote/schrieb/egrapse:
  [1] http://www.zope.org/Resources/ZSP/
  
 
 We have hit a hardcoded limit again, collection size is at 300 atm.
 I'll check with one of the powers.

Looking through the list I notice that we can throw out Network AG
(Location Schlieren, Switzerland), Website: http://www.network-ag.com/
Profile: http://www.zope.org/Resources/ZSP/NetworkAG
- I used to work there, until the company went bancrupt a few years ago
(in 2004 IIRC).

Regards,

Sascha

___
Zope-web maillist  -  Zope-web@zope.org
http://mail.zope.org/mailman/listinfo/zope-web


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] 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] 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] 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] 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] 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] 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] 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] 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 / copiedpasted /
importedexported / 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] 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] 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] 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] 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 )


[Zope] 2.10.3: default keyword with tal:replace problems?

2007-03-28 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):

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

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

[img src=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:
[img src=http://127.0.0.1:8080/misc_/PageTemplates/zpt.gif; /]

[img src=http://127.0.0.1:8080/misc_/PageTemplates/zpt.gif; /]

[img src=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] 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
 Zope_home/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] 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] 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] 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] 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] 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] 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] 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] 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 html,
body and div 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 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] 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] 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] 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] 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 )


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 BW 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] 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] 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] 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] 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 )


[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] 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 )


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 http://betabug.ch/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 )


[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 )


[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' 
 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] 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: 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 )


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] 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.1r2=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] 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 )