Re: [Zope] Zopache = ZTK + Grok + ZMI

2014-10-22 Thread Lennart Regebro
Wops. I have no idea why this thread popped up in my inbox today. Sorry.

On Wed, Oct 22, 2014 at 8:51 AM, Lennart Regebro  wrote:

> On Wed, Jul 30, 2014 at 7:22 PM, Christopher Lozinski <
> lozin...@freerecruiting.com> wrote:
>
>> I would think that the world has to move to massive class libraries of
>> reusable software components, maybe not on the client side, because it
>> takes time to download, but certainly on the server side.  Not in
>> statically bound languages like Java or C++, but in dynamically bound
>> languages, like like python or C#.  The only significant python
>> component architecture I know of is ZCA.  Maybe there is one in C#  So I
>> would expect lots of people to be using
>> ZCA, most easily in Grok.And Grok is quite easy to use.   And yet
>> that is not happening.
>>
>> Why not i wonder?
>>
>>
> That certainly is a very interesting question.
>
> And the answer is that components generally aren't particularly reusable,
> as they tend to be too tightly integrated with each other. Components are
> for making plugins to frameworks, and hence you can use a component
> architecture when you build a framework. (Zope3 tried building the
> framework OF components, but that IMO proved to be too complex).
>
> Reusability comes in the forms of libraries, services and frameworks.
> Hence, in your case, as you are building a new web site, you need a good
> website framework. There are many good Python web framework to choose
> between to get things done quickly. ZTK is not one of those. Neither in my
> opinion is Grok, which was a valiable attempt to make Zope 3 development
> less complex.
>
> //Lennart
>
>
___
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] Zopache = ZTK + Grok + ZMI

2014-10-21 Thread Lennart Regebro
On Wed, Jul 30, 2014 at 7:22 PM, Christopher Lozinski <
lozin...@freerecruiting.com> wrote:

> I would think that the world has to move to massive class libraries of
> reusable software components, maybe not on the client side, because it
> takes time to download, but certainly on the server side.  Not in
> statically bound languages like Java or C++, but in dynamically bound
> languages, like like python or C#.  The only significant python
> component architecture I know of is ZCA.  Maybe there is one in C#  So I
> would expect lots of people to be using
> ZCA, most easily in Grok.And Grok is quite easy to use.   And yet
> that is not happening.
>
> Why not i wonder?
>
>
That certainly is a very interesting question.

And the answer is that components generally aren't particularly reusable,
as they tend to be too tightly integrated with each other. Components are
for making plugins to frameworks, and hence you can use a component
architecture when you build a framework. (Zope3 tried building the
framework OF components, but that IMO proved to be too complex).

Reusability comes in the forms of libraries, services and frameworks.
Hence, in your case, as you are building a new web site, you need a good
website framework. There are many good Python web framework to choose
between to get things done quickly. ZTK is not one of those. Neither in my
opinion is Grok, which was a valiable attempt to make Zope 3 development
less complex.

//Lennart
___
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] Catalog a dictionary

2012-08-06 Thread Lennart Regebro
On Mon, Aug 6, 2012 at 2:53 PM, Giampiero Benvenuti
 wrote:
> Hi,
>
> I just would like to index a string property of the Folder object in a proper 
> "searchebale" DateTime format.
> Right now I have just a string property like 12:30:30 and I would like to 
> index it as DateTime(DateTime().Date()+' '+mystring)

Then make sure that the folder have an attribute that returns what you
want, and add an index that indexes that attribute.

The folder attribute can be acquired, which means if for example can
be a script in a skin folder, or it can be something you monkey-patch
to the folder. Or it can be calculated, or it can be a view (I think)
etc, etc.

//Lennart
___
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] Catalog a dictionary

2012-08-06 Thread Lennart Regebro
On Mon, Aug 6, 2012 at 9:37 AM, Giampiero Benvenuti
 wrote:
> P.S. I know i can assign multiple attributes to an index in the catalog,
> still I wonder why the above code doesn't work.

I don't know, but first I'd like to know why you are doing this? The
objects in the folder are already indexed, aren't they?

//Lennart
___
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] changing permissions on classes/methods at runtime?

2012-03-06 Thread Lennart Regebro
On Mon, Mar 5, 2012 at 19:22, Sean Upton  wrote:
> On Wed, Feb 29, 2012 at 7:12 AM, Jürgen Herrmann
>  wrote:
>> hi all!
>>
>> is it possible to change permissions and roles on classes/methods
>> at runtime? normally you'd attach security declarations inline in
>> your class definition code:
>
> I don't off-hand know why just monkey-patching the security attribute
> of your class and then calling InitializeClass() again would not work,
> but the idea of changing these at runtime after initial zope startup
> sounds a bit odd, possibly dangerous.  What is it that you are trying
> to do?

When I needed this to be dynamic I simply did not have any security
declaration and instead tested the permissions the first thing I did
in the method. That worked fine. It is however probably ten years ago,
and I don't remember or have the code. But it was quite simple, I
think.

//Lennart
___
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] Help in deciding approach to Web App

2011-12-06 Thread Lennart Regebro
On Sun, Dec 4, 2011 at 06:12, Sareesh Sudhakaran  wrote:
> I have a personal project - a web application I wanted to develop - but I'm
> confused on which route to take. I am not under any time constraint.

Your case is complex and the answer is non-obvious. I think you will
have to try to see.

> The best I can describe it is as a kind of expert system (but not AI) that
> needs to find the best workflow for a process, given a set of initial and
> final parameters. E.g. a 'capsule' of data must pass through many 'tools' or
> 'environments' to reach a desired output - something like a very complicated
> car wash.
>
> Let's say there are many tools that can be used at various stages in the
> process. I have estimated there are at least 500 tools as of now, and it is
> bound to grow in the future as newer tools are introduced. Existing tools
> will also have version updates.
>
> Each tool, on average, has at least 100 properties that define the tool.

This kind of complexity and flexibility that your case has does lend
itself well to the ZODB. But it is by no means impossible to do in a
relational database. What you would need to do here if you did this in
SQL is to have one table for the tools, and one table for the
properties, and one table that for each tool and property has a value.
This might be a bit complex to use of you use an ORM, but it should be doable.

> problem of 'matching' the tools for analysis. E.g. Tool A might have only
> three fixed rpms - 100, 200 and 500, but Tool B might have rpms from 20 to
> 2000. I'm not sure how I can construct a database without spelling out each
> number, as in the example above.

Well, if you want to search for a specific RPM range it does get
complicated, because then you probably want to store the RPM values as
integers. And that means that you in the property table needs to have
several columns depending on the value type. If the property needs
text, you need to fetch it from the text column. If the property is an
integer you need to fetch it from the integer column. If the property
is a reference to another table, because it is a multi-select property
with a limited set, you need to fetch it from a column for that, which
in turn refers to another table with the actual values.

This *does* get very complex very quickly. Of course, the ZODB has few
such problems.

> Will the app be better served with a relational DB like mySQL or an Object
> database? After a lot of research I've guessed that my particular case might
> be better served with Python and Zope/ZODB. But I might be wrong? Maybe
> PHP+mySQL or Django is a better fit?

First of all, find yourself a web-framework you like. Then use that.
Most likely, that framework is going to limit you to using SQL. There
are frameworks that don't specifically Pyramid integrates nicely with
ZODB and hence gives you a choice. Then I would simply try to see if
you are able to model the data in SQL at all, or if you dig yourself
into unholy complexity. That should not take more than a couple of
days of work to figure that out, if you concentrate on building a
database and filling it with real or realistic data. If you don't dig
yourself into a hole, the go with SQL, since that's what you know. If
you do, try to build the model with ZODB and see of that works better
for you.

The ZODB might very well be the right choice here. But note that Zope
is not. Zope was a trailblazer in the web framework world that's been
around for 15 years now, and has as a result made some choices which
turned out to not be the best ones in the long run, and accumulated a
lot of cruft. There is work on fixing this, but that will take time,
and the framework will be in a great flux during that time. As a
result, Zope is not currently a good choice if you start a project. As
languages go, Python rules. As web frameworks go, there are more
Python frameworks than you can shake a stick at. I'd recommend either
Django (because there are so many people using it, you will be able to
find help ) or Pyramid (because it's really cool and supports ZODB
well).

//Lennart
___
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] Migrating a legacy Zope2 app to use buildout.

2011-06-18 Thread Lennart Regebro
On Fri, Jun 17, 2011 at 23:57, Jason J. W. Williams
 wrote:
> Hello,
>
> Currently, we have a Portal that was built starting in 2004 before
> buildout was available, so our development method has been to export
> and import from the Zope2 WebUI for deployment. That's been a real
> pain and since we've automated the rest of our infrastructure with
> Chef we'd like to be able to do that with Zope. So my question is does
> anyone have pointers for migrating an app that mostly lives in the
> ZODB to a build-out style architecture that we could control with
> Chef? I see tutorials on starting a new Zope 2 app from scratch with
> buildout but nothing on migrating an older one to build out. For
> example, how would we create objects like MySQLUserFolders etc from
> buildout? Thank you in advance.

Buildout is about setting up an application environment and getting
all the parts and dependencies installed so it's orthogonal to setting
up the objects you need in the ZODB.

Importing is one way of setting up the objects in the ZODB. Another
one is writing python scripts that does it for you. A third one is
using genericsetup. http://pypi.python.org/pypi/Products.GenericSetup

--
Lennart Regebro, Colliberty: http://www.colliberty.com/
Telephone: +48 691 268 328
___
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] Openflow_ZPygresqlDA_products_broken_on_ZMI

2010-12-15 Thread Lennart Regebro
On Tue, Dec 14, 2010 at 14:32, Smita Kamdar  wrote:
>
> Hi,
>
> As suggested by you I have downloaded all the zope products of the same 
> version as they are on live to remove the mismatch of versions. But before I 
> install those products on dev environment, I will have to uninstall all the 
> products that I had installed earlier (i.e. on dev env). Earlier, I had 
> installed all the products from the source tar balls. So can u please suggest 
> how do I uninstall these products on dev env?

I'd recommend you that you make an exact replica of the production
environment, from scratch. Anything else will just give you error you
do not have in production, or hide errors you *do* have in production.

//Lennart
___
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] Question about Upgrading Zope and OS X Server

2010-12-09 Thread Lennart Regebro
On Thu, Dec 9, 2010 at 07:52, Dan Gaibel  wrote:
> So OS X Server Snow Leopard comes with Python 2.6.1. Is there any
> reason to think that this Python version would cause problems with
> Zope 2.8.6?

Yes, that would cause problems.

> We have had nice stability with Python 2.3.5. Either way,
> is Zope 2.8.7 a significantly better choice than 2.8.6?

No, but then it's unlikely to cause you any upgrade worries as it
should be pretty much only bugfixes.

//Lennart
___
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] Openflow product is broken on ZMI

2010-12-06 Thread Lennart Regebro
Do you really have to write your emails in large fonts and shocking pink? :-)

Anyway, it seems to me that the OpenFlow product has a rather special
way to be installed in Zope, with zexp imports and all. Maybe there is
an OpenFlow mailing list where people who are more used to the product
hangs out? I think very few people here are OpenFlow experts.

On Mon, Dec 6, 2010 at 10:57, Smita Kamdar  wrote:
>
>
>
> Hi,
>
>
>
> I am not aware of how to import the zexp in another folder? For now, whenever 
> I export the code from live server, it is saved in /opt/zope/var directory on 
> live server. (Pls note zope is installed at /opt/zope & the INSTANCE_HOME of 
> zope is also /opt/zope) How do I tell it to import in some other dir?
>
>
>
> About the Openflow installation on dev server, exclusively I haven't executed 
> any steps to install it. I just downloaded the source tar ball & extracted it 
> on development server. After extracting itself, it automatically created 
> (.pyc) files & so I thought that it is installed. Also it is given proper 
> permissions.Also OpenFlow product appears in ZMI’s Product list & add list.
>
>
>
> But 1 thing that I was surprised is I was not able to find Openflow -1.1.0 
> source tar ball on zope site i.e. on zope.org & also not on (www.openflow.it) 
> & so I downloaded it from sourceforge.net  .
>
>
>
> & the same problem is occurring for ZPsycopgDA also.
>
> At live server, ZPygresqlDA is installed & at dev server ZPsycopgDA is 
> installed. Both of them are installed successfully & appears in add list. But 
> when I import my project code from live to dev server, on dev server it is 
> giving error as 'Pygresql_Database_Connection (This product from ZPYgresqlDA 
> product is broken).
>
>
>
> Any idea, how do I solve this?
>
> Also, Can u please suggest the steps to install OpenFlow-1.1.0??
>
>
>
> Regards,
>
> Smita Kamdar
>
>
>
>
>
>
>
> Disclaimer:
>   This message and the information contained herein is proprietary and 
> confidential and subject to the Tech Mahindra policy statement, you may 
> review the policy at http://www.techmahindra.com/Disclaimer.html externally 
> and http://tim.techmahindra.com/Disclaimer.html internally within Tech 
> Mahindra.
>
> ___
> Zope maillist  -  z...@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 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] Date utility for Zope (V2)

2010-11-10 Thread Lennart Regebro
On Wed, Nov 10, 2010 at 15:25, Brian Sullivan  wrote:
> I have recurring events that I want to schedule (the events are
> sending email, Twitter DMs and Facebook messages -- at least those are
> the possible ones that I have identified so far).

Right, so you need to make these events as you normally write your applications.

> I need some flexible
> way to both specify the intervals and interpret the intervals so that
> the next event in a sequence can be specified in real time terms and
> scheduled.

And that's what dateutil.rrule is for.

--
Lennart Regebro, Colliberty: http://www.colliberty.com/
Telephone: +48 691 268 328
___
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] Date utility for Zope (V2)

2010-11-10 Thread Lennart Regebro
On Wed, Nov 10, 2010 at 02:00, Brian Sullivan  wrote:
> I guess I having a mental block then. To use it from what I know I
> would have create a Zope 2 product from it somehow or create callable
> scripts in the ZMI from the provided code. Neither seems reasonable.
>
> Is there other way to use the code that I am not understanding?

Well, you need to do something with the rrules, yes. And that
obviously needs to be done in some sort of Zope product. And you will
need to write that, so it does what you want it to do.

But the dtutil module itself you simply use from Python like this:

from dtutil import rrule
rrule.whatevereblahlahlah()


I have the feeling (but I could be wrong) that there is a very long
distance from what you want to what you say you want. Maybe you can
explain what you actually want to do, your usecases etc.

--
Lennart Regebro, Colliberty: http://www.colliberty.com/
Telephone: +48 691 268 328
___
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] Date utility for Zope (V2)

2010-11-09 Thread Lennart Regebro
On Tue, Nov 9, 2010 at 22:12, Brian Sullivan  wrote:
> On another forum this http://labix.org/python-dateutil was suggested
> -- it looks to be close to what I was thinking --

I second that.

> but I am not totally
> sure how I can use it in Zope (a level of incompetence issue no
> doubt).

You would use it as you would use it outside Zope. No difference, it's
just all Python.

//Lennart
___
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] Older Zope w/newer CA packages

2010-04-28 Thread Lennart Regebro
On Wed, Apr 28, 2010 at 17:00, Jim Pharis  wrote:
> We are currently on Zope 2.9.6 and we are working on upgrading but it isn't
> going to happen anytime soon. I'm trying to use a package that is depending
> on a few newer component architecture packages; zope.component,
> zope.interface... Even though zope.component and zope.interface hadn't been
> egged in 2.9.6, Zope Products seem to import from zope.component in Python
> lib instead of zope/component in the Zope.

Yes, you can not easily have different packages in different parts of
the same process. It's theoretically possible, but difficult and will
likely break in unexpected ways. In general, once you have imported a
package subsequent packages will use the same one.

> Is there any clean way to isolate the newer packages?

Run different python interpreters.

-- 
Lennart Regebro: http://regebro.wordpress.com/
Python 3 Porting: http://python-incompatibility.googlecode.com/
+33 661 58 14 64
___
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] Installation help

2010-04-16 Thread Lennart Regebro
On Wed, Apr 14, 2010 at 16:57, Dhilip S  wrote:
> Hi.
> I'm beginner to zope.

Which Zope? And if you don't know, explain to us what you want to do,
and we'll tell you. :)
-- 
Lennart Regebro: http://regebro.wordpress.com/
Python 3 Porting: http://python-incompatibility.googlecode.com/
+33 661 58 14 64
___
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] Change admin's password

2009-12-30 Thread Lennart Regebro
On Wed, Dec 30, 2009 at 19:45, iarly selbir | ski0s  wrote:
> A bit I forgot mentions, my Zope is using relstorage to store all data on
> MySQL

Good. Then the answer I gave you from the start still is the correct one.

-- 
Lennart Regebro: Python, Zope, Plone, Grok
http://regebro.wordpress.com/
+33 661 58 14 64
___
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] Change admin's password

2009-12-30 Thread Lennart Regebro
On Wed, Dec 30, 2009 at 18:29, iarly selbir | ski0s  wrote:
> sorry, if I don't explained right
>
> through /manager/acl_users I can change users passwords, right?

Yes.

> I'm trying to find out how to do it by command line

You can't, unless you write a custom command for it, which is likely
to be more complicated that you'd like.

-- 
Lennart Regebro: Python, Zope, Plone, Grok
http://regebro.wordpress.com/
+33 661 58 14 64
___
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] Change admin's password

2009-12-30 Thread Lennart Regebro
On Wed, Dec 30, 2009 at 17:14, iarly selbir | ski0s  wrote:
> I guess when Zope store data at mysql, isn't a simple UPDATE TABLE set
> Password...

Well why not?

> heh did you already take a look on tables created by zope on
> MySQL

Zope itself doesn't create *any* tables in MySQL. As mentioned, it
uses the ZODB. If you store users and paswords in MySQL, that's
something custom for your sites, and how it's stored there is
completely up to whoever did that integration. You need to ask them.

-- 
Lennart Regebro: Python, Zope, Plone, Grok
http://regebro.wordpress.com/
+33 661 58 14 64
___
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] Change admin's password

2009-12-30 Thread Lennart Regebro
On Wed, Dec 30, 2009 at 14:27, iarly selbir | ski0s  wrote:
> No, I'm using MySQL as database..

Well if you are storing your users in MySQL, then change the password
in that table. Done!

> I have to browse to http://hostname:port/manager and change them ( for each
> instance )

If the instances use different databases, then you need to change it
for each database, yes.

-- 
Lennart Regebro: Python, Zope, Plone, Grok
http://regebro.wordpress.com/
+33 661 58 14 64
___
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] Change admin's password

2009-12-30 Thread Lennart Regebro
On Wed, Dec 30, 2009 at 13:13, iarly selbir | ski0s  wrote:
> There are some command to change admin's password, in my env I have a server
> with many instances and I need change it for all
> Thanks in advance for some tip.

You can add new admin users with "{instance} adduser username
password". where {instance} is the command you use to start your
instance. Often bin/instance or bin/zopectl.

It works for all instances at once, since it's stored in the ZODB.

-- 
Lennart Regebro: Python, Zope, Plone, Grok
http://regebro.wordpress.com/
+33 661 58 14 64
___
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] Zope2.12

2009-12-25 Thread Lennart Regebro
On Fri, Dec 25, 2009 at 11:53, Jim Pharis  wrote:
> So the line you reference in site.zcml is the same for me, and it says look
> in package-includes/*-configure.zcml. That child dir wasn't actually created
> though so theres nothing in it.

That's correct. But your question was where that directory had gone.
Well, nowehere.

>>> But what is missing is the package-includes directory that
>> > provides the wiring to zcml directives in the varies packages.

Yup, it's missing. But all you need to do is create it.

>>> Why are those configurations missing from Zope2.12.2 etc/?

They aren't. Only the directory is. If you are asking where all the
default bindings are, they are on Zope2 itself, to a large extent in
Products/Five.

> So developing in Z3 had several perceived benefits no? The problem is that
> in many cases existing projects couldn't just move to Z3 and start using the
> CA. From Z3 development was born ZTK, a modular CA implementation

Zope 3 was always modular. It was released as one package up until
3.4, where is was released as separate packages. ZTK is *not* those
separate packages, but a subset of them, created only this year. More
specifically, the ZTK is *not* a compatibility layer between Zope 2
and Zope 3.

> that Z2 could now leverage, and I thought in theory all the Z3 CA goodness 
> was now
> brought to us in Z2 development.

That has been available since Zope 2.8.

> I have several existing Z2 Products that aren't going anywhere. Now I want
> to start developing new stuff using CA paradigms in Z2.

Excellent!

> This seems like it should now be possible because Z2.12 itself is now built 
> on ZTK.

It's possibly with older Zopes too. Although I would avoid 2.8 and 2.9
if I where you. Five was still in heavy development then, it has
cooled down quite a bit since. :-)

> However,
> I'm running into problems. For example, zcml directives such as the one in
> zope.app.container-3.8.0-py2.6.egg/zope/app/container/browser/meta.zcml:
> name="containerViews" aren't wired into Z2.12 it seems. Trying to use
>  example. Well I could start wiring all this stuff myself, it seems like that
> should be done already.

Yeah, generally it's tricky to use zope.app.anything in Zope 2.

> I still can't easily develop using those methods.

Yes, you can. But many of the Zope 3 eggs are built for Zope 3 and
Zope 3 only. Those can't be used outside Zope 3. The ZTK doesn't
change that. zope.app.container is one of those. It's currently a
dependency for ZTK, but as I understand it, that is to be changed. The
reuseable parts of zope.app.container are to be moved out to
zope.container.

-- 
Lennart Regebro: Python, Zope, Plone, Grok
http://regebro.wordpress.com/
+33 661 58 14 64
___
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] Zope2.12

2009-12-25 Thread Lennart Regebro
On Fri, Dec 25, 2009 at 11:47, Jim Pharis  wrote:
> What's my use case for developing Zope3ish/ZTKish in Zope2 instead of just
> using Zope3? All the preceived benefits of Zope3 now available in Zope2 well
> still being able to use all our Zope 2 Products. I thought basing Zope2.12
> on ZTK bridged the 2 worlds.

Nah, it was bridged before, by Five. Now it's easier to update just
one package and it's dependencies to later versions, and easier to
install and use in buildouts and stuff.  A great leap forward. But
using Zope3 stuff in Zope 2 has been possible since Zope 2.8. It's not
completely compatible, but that's not what you are asking for eiher,
if I understand you.

-- 
Lennart Regebro: Python, Zope, Plone, Grok
http://regebro.wordpress.com/
+33 661 58 14 64
___
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] Zope2.12

2009-12-25 Thread Lennart Regebro
On Fri, Dec 25, 2009 at 01:28, Jim Pharis  wrote:
> I'm trying to wrap my head around what the changes in Zope2.12 can mean for
> how I develop in Zope2 now. I've developed things in Zope3 and am getting
> stuck attempting the same methods in Zope2.12. So I see now that etc/ now
> has a site.zcml. But what is missing is the package-includes directory that
> provides the wiring to zcml directives in the varies packages. Why are those
> configurations missing from Zope2.12.2 etc/?

They are?

$ /opt/python26/bin/virtualenv z12
$ cd z12
$ bin/easy_install Zope2
$ bin/mkzopeinstance -d testinst
$ cd testinst
$ more etc/site.zcml

...

  
...

Looks like it's there. OK, so the directory doesn't exist, but you can
create it.

Most people today develop using buildout, where the zope instance
recipe will create the snippets for you. But that's a different topic,
really.

-- 
Lennart Regebro: Python, Zope, Plone, Grok
http://regebro.wordpress.com/
+33 661 58 14 64
___
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] DateTime Issues

2009-12-23 Thread Lennart Regebro
On Wed, Dec 23, 2009 at 18:24, Justin Dunsworth
 wrote:
> I am having difficulties with time zones and rendering proper times/dates.
> My time zone is GMT-6 (CST)... mysql reports the proper time/date, running
>  shows Zope has the right date, running a
> query straight from the SQLMethod shows the proper time in relation to the
> field in mysql. However, when I try and run the variable in the dtml
> document it gives the time in GMT+0.
>
> For example... in mysql I have "2009-12-23 10:41:06" as the date of
> the record. Running the SQL Method returns it as '2009/12/23 10:41:06 GMT+0'
> -- So far so good but when I run  in my document it gives: 12-23-09 04:41.

What would you expect it to be? It seems correct to me.

-- 
Lennart Regebro: Python, Zope, Plone, Grok
http://regebro.wordpress.com/
+33 661 58 14 64
___
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] Cheap Zope hosting

2009-08-04 Thread Lennart Regebro
2009/7/31 Allen Schmidt Sr. :
> Now that HighSpeedRails is closing down at midnight tonight, does anyone
> have any low-cost suggestions for hosting a handful of low-traffic
> domains in a single Zope??

I use a virtual server on Linode. No idea what you mean with "cheap",
or if the support is good, as I haven't needed it. :-) Works for me.
-- 
Lennart Regebro: Python, Zope, Plone, Grok
http://regebro.wordpress.com/
+33 661 58 14 64
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Is there a Zope migration tool?

2009-06-11 Thread Lennart Regebro
2009/6/11 Aleksey Tsalolikhin :
> I am trying to figure out how move this beastie over with all its data and
> all its users.

Zope typically stores all it's data in a database called ZODB. It
stores everything in a file called Data.fs.
Copy it over from the old server to the new server.

Done!

-- 
Lennart Regebro: Python, Zope, Plone, Grok
http://regebro.wordpress.com/
+33 661 58 14 64
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Is there a Zope migration tool?

2009-06-09 Thread Lennart Regebro
2009/6/7 Aleksey Tsalolikhin :
> My Zope 2.10 server tells me:
>
>    Note: Zope can export/import objects in two dfferent formats:
>    a binary format (called ZEXP) and as XML. The ZEXP format
>    is the officially supported export/import format for moving data
>    between identicial Zope installations (it is not a migration tool).
>    The XML export/import is unsupported (and possibly broken
>    under certain circumstances) - use it at your own risk.
>
> I am moving a Web app from Zope 2.7 to 2.10.   I exported it
> from 2.7 and imported to 2.10 and this worked.  But then I saw
> the above note.  Is there a migration tool?  Where is it, please?

What is it you need to migrate? Zope itself needs no migration from 2.7 to 2.10.

-- 
Lennart Regebro: Python, Zope, Plone, Grok
http://regebro.wordpress.com/
+33 661 58 14 64
___
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] Non-management actions recorded in Undo Log

2009-05-06 Thread Lennart Regebro
On Wed, May 6, 2009 at 12:36, John Snowdon  wrote:
> Systems are all 2.11.0 Zope clients with Data.fs served by matching
> versions of Zeo. Not all of our 2.11.0 apps that are showing this
> behaviour, only a couple, so I doubt it's something wrong with Zope or
> ZEO.

Yeah, that happens easily. Someone has, probably by mistake, been
setting an attribute on objects in methods that should be read-only,
or by mistake called a method that modifies something from a page
template or similar. You need to get the developers to dig into what
those accidental changes are.

-- 
Lennart Regebro: Python, Zope, Plone, Grok
http://regebro.wordpress.com/
+33 661 58 14 64
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] can zope and grok be a solution for a desktop like interractive web app

2009-05-05 Thread Lennart Regebro
On Tue, May 5, 2009 at 23:22, Krishnakant  wrote:
> Now my question is while I was reading grok tutorials, I realise that I
> could not quite find some widgets which can do dynamic self updating or
> database based validations.

Eeee, no, they are HTML widgets. You might as well ask for
SQL-statements that generate HTML widgets. It just doesn't make any
sense.

> For example if a user is making an invoice, the field holding entered
> quantity must quickly query the db for the available current stock and
> there has to be an error message which says "you don't have sufficient
> stock for the given item ".

Yes, you want to make a Javascript app. That's fine and good. For that
you would likely want some sort of Ajax library. Grok isn't an Ajax
library, but you can use Ajax libraries with Grok if you wish.

> I believe some ajax like functionality is needed here.

Exactly.

-- 
Lennart Regebro: Python, Zope, Plone, Grok
http://regebro.wordpress.com/
+33 661 58 14 64
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] can I use my existing twisted rpc app in zope.

2009-05-03 Thread Lennart Regebro
On Sat, May 2, 2009 at 13:04, Krishnakant  wrote:
>
>> It's really up to you. Personally, I would recommend looking into
>> either Grok, which is based on Zope 3, or BFG, which is a minimalistic
>> framework using Zope 3 technologies.
>>
>> http://grok.zope.org/
>> http://bfg.repoze.org/
>>
> I see, By the way will 5 help me solve this confusion?

No.

> Now if I want to take the entire rpc server based application and put it
> into zope in such a way that my rpc application is not disturbed but the
> features like PAS get integrated, will this be possible?
>
> More presisely, I want to use zope for this same application server and
> have it do the same work on xml rpc.

That surely is possible. How much you need to rewrite it impossible to
answer without knowing your code. You don't "talk" to Zope the same
way you "talk" to Twisted, for example.

> My question was will I be able to re-use my published objects and their
> functionality by coding it in such a way that zope hosts the twisted
> based rpc server application I already have?

No, you will have to take your objects out of twisted and put them in Zope.

If your objects are tightly integrated with Twisted, you are likely
better off keeping the servers separate applications, but make them
talk to each other. Chris recommendation of WSGI makes sense.

-- 
Lennart Regebro: Python, Zope, Plone, Grok
http://regebro.wordpress.com/
+33 661 58 14 64
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] can I use my existing twisted rpc app in zope.

2009-05-02 Thread Lennart Regebro
On Sat, May 2, 2009 at 10:45, Krishnakant  wrote:
> My first question is, should I use zope 2 or zope3 for a financial/
> accounting software?  I am not intending to develop just a web site but
> a complete web application which will be used in fields like Point of
> Sales and micro finance.  I feel I must go for zope 3 because the wiki
> says that zope3 is targeted at application developers for the web.

It's really up to you. Personally, I would recommend looking into
either Grok, which is based on Zope 3, or BFG, which is a minimalistic
framework using Zope 3 technologies.

http://grok.zope.org/
http://bfg.repoze.org/

> But at the same time I am unsure whether zope3 has products for tasks
> such as open office integration and call to a database.

You can use ny Python library both from Zope 2 and Zope 3. Often
easier from Zope 3 in fact.

> Right now we use a gtk based thin client to make calls to the rpc server
> based API.
> I would be interested to know if I can directly take this twisted based
> rpc server application and put it inside zope.

That depends on what you mean with "inside".

> What I mean is that I would like to directly integrate my already
> developed rpc server application inside zope in such a way that it sits
> in the server

I don't understand what you mean with having a twisted server inside a
zope server. It doesn't make any sense to me. Zope talks either HTTP
or WSGI (which in turn talks HTTP). The RCP server doesn't. I don't
see how "inside" makes sense there. Can the two servers talk to each
other and share data? Sure, there are many solutions for that. Can you
have the same application talk both HTTP and RPC? Sure. But in either
case neither is "inside" the other.

> So is this possible and should zope3 be the right choice for this?

Zope 3, or rather Grok or BFG, is the right answer to everything. ;)

-- 
Lennart Regebro: Python, Zope, Plone, Grok
http://regebro.wordpress.com/
+33 661 58 14 64
___
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 prevent URL access to an external method?

2009-04-28 Thread Lennart Regebro
On Tue, Apr 28, 2009 at 18:25, Pedro LaWrench  wrote:
>
> What would you change on the security tab?  I still want my authenticated 
> users to have access to the method as a call to it is made from unrestricted 
> space (such as a page template)

A page template is restricted. If it really was unrestricted it would
be called from Python code on the hard disk, and then you wouldn't
need the external method.

> I just don't want them to call the method directly.

So Tres method is the simplest one that does just this.

-- 
Lennart Regebro: Python, Zope, Plone, Grok
http://regebro.wordpress.com/
+33 661 58 14 64
___
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 fast, scalable yet small Zope application

2009-04-27 Thread Lennart Regebro
On Mon, Apr 27, 2009 at 17:57, Morten W. Petersen  wrote:
> OK.  Well, I'm concerned about how much a database would grow.  I'm thinking
> if
> I use one BTree for all the entries, would the database grow just a little
> or a lot when
> you start getting into the millions of entries when inserting one small
> item?

Growth is a problem only if you are going to modify these entries a lot.

> Mm.  Yes, Plone is a bit sluggish, that's why I want to write a purely
> Zope-based app.

Absolutely.

> Mm.  I guess I could be OK with one "index", it being the id/path of the
> object.  However,
> it would be nice to build for the future and include the ability to search
> all objects.  Maybe
> a combination of the two could work.

Yeah, for full text search you would definietly benefit from the full
text indexes that the catalog has.

-- 
Lennart Regebro: Python, Zope, Plone, Grok
http://regebro.wordpress.com/
+33 661 58 14 64
___
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 fast, scalable yet small Zope application

2009-04-26 Thread Lennart Regebro
On Sat, Apr 25, 2009 at 13:24, Morten W. Petersen  wrote:
> So far, I've been contemplating disabling undo (if that's possible),

I doubt that it would make a difference. The Undo functionality comes
out of the database being logging, and changing that would mean pretty
much a complete rewrite.

> and using BTree structures, maybe segmenting objects into different groups
> (folders) to further speed up lookups.

Yes, in my experience putting small objects in to BTree structures is
quite fast. You may be talking about BTreeFolders, and in that case I
don't know, I haven't done any sort of performance testing on those, I
have used BTrees directly though, and that was fast. I haven't
compared to SQL, but others have, and ZODB itself seems according to
those tests quite fast. We know Plone slows everything down immensly
in any case.

I don't know if BTrees get slow when they get very big, so you would
need to test that.

> Should I consider using the ZCatalog for faster lookups?

Maybe. You probably need to not only store the objects in BTrees, but
also somehow have indexes. These you do by storing the values you want
to search on in BTrees as well. The ZCatalog does this in a
configurable way for you, so if you need configurability, yes. If not,
it's probably faster to make your own indexes with your own BTrees.

-- 
Lennart Regebro: Python, Zope, Plone, Grok
http://regebro.wordpress.com/
+33 661 58 14 64
___
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] RIP Zope 2!

2009-04-10 Thread Lennart Regebro
On Fri, Apr 10, 2009 at 08:55, Dieter Maurer  wrote:
> With my current experience, the Zope 3 way to handle skins is considerably 
> more
> work then the previous CMF skinning. True, you have a separate namespace
> for views and thus avoid name clashes in edge cases -- but is this
> really worth the extra effort?

Yes, without any doubt whatsoever.

And when it comes to effort, you have a point. Zope 3 in itself is too
fragmented, too low level and too XML-y. Grok solves that. Zope 3 was
also too big and monolithic. The eggification process solved that (and
made Zope3 pointless as an application server, and it became a
toolkit/framework). And some central parts of Zope 3, in particular
the publisher, are too complex. Repoze and Repoze.bfg solved that.

That means that for most cases, except when you need Zope 2
compatibility, The Thing That Once Was Known as Zope 3 are now finally
ready. Obviously there is not much point in porting projects, but if
you start a new project, the extra work of learning Grok or repoze.BFG
could very well be worth the effort.

I love Zope 2 as well, although I forget sometimes, since I never work
with Zope 2, I work with Plone. Which I don't love (but Plone 4 looks
like I will love it again). But with the Zope Toolkit I can do
everything I want to do with Zope 2, with less code and less magic
handwaving, and less (un)expected problems.

We who know Zope 2 can develop in it easily and without problems. But
it WAS a pain to get to that point. Zope 3 had a completely different
set of pains. IMO, Grok has a much lesser pain level.

Yes, Zope 3 did kill off a lot of interest in Zope 2, and was a
contributing factor to the fact that Zope 2 doesn't attract new
developers.  But it wasn't the only one. It was already losing
mindshare because it was too painful to use, and Python people didn't
like it. People went from Zope to Python, not the other way around.

With a time machine, much could have been done differently. But it's
too late now. Time has ran away from Zope 2, Zope 3 never took off.
It's time to take the experiences and the vast codebase, and move
forward. And I guess Zope Toolkit, Grok and BFG is that way forward.

-- 
Lennart Regebro: Python, Zope, Plone, Grok
http://regebro.wordpress.com/
+33 661 58 14 64
___
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-06 Thread Lennart Regebro
On Mon, Apr 6, 2009 at 10:34, Chris Withers  wrote:
> Lennart Regebro wrote:
>> Grok and Repoze is not mutually exclusive.
>
> For end users who pick one or the other, they are *are* mutually exclusive
> in that the users won't necessarily know (or care) that the other exists...

I think you confuse Repoze and repoze.bfg. Grok can, and IMO should,
run on top of Repoze.

-- 
Lennart Regebro: Pythonista, Barista, Notsotrista.
http://regebro.wordpress.com/
+33 661 58 14 64
___
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-05 Thread Lennart Regebro
On Sun, Apr 5, 2009 at 08:32, Dieter Maurer  wrote:
> Because members put there content (product implementations) still usable?

Absolutely right. In the long run that should probably be moved over
to PyPI though.

-- 
Lennart Regebro: Pythonista, Barista, Notsotrista.
http://regebro.wordpress.com/
+33 661 58 14 64
___
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 Lennart Regebro
2009/4/3 Chris Withers :
> Lennart Regebro wrote:
>>
>> 1. The Zope Framework dependency cleanup project continues. When
>> cleanup is deemed reasonably finished, we rename the framework Zope 4.
>
> Oh, so Zope 4 is a run on from Zope 2?

Eh... no.

> How do I upgrade from Zope 2 to Zope 3?

Eh... what's your point?

> How about from 3.5 to 4?

Should be reasonably easy.

> Bream 4.0 would be fine with me for that, I don't think there seems to be 
> anyone who really cares about it anymore though...

Possible.

>> 3. Grok moves over either to Zope.pipeline or repose.bfg as publisher in 
>> Grok 2.
>
> Grok is Grok, Repoze is Repoze, lets leave them be and let them choose their 
> own names...

Grok and Repoze is not mutually exclusive.

> It cannot be called Zope int(x) for any value of x for the reasons that cause 
> the current confusion. I think Zope Legacy 4 is a bit mean, I think there's 
> plenty more life in the project if people want there to be. That was why I 
> suggested Zope Classic (hey, it worked for Coke when they had to bring back 
> their original product because of a snafu on the supposed replacement!)

Sure, Zope Classic works too. I don't like "Standard" because it makes
it sound like it's preferred.

> Bream 4 on top of Framework 4
> Standard 4(which would include Framework 4)
> Plone 4 on top of Standard 4
> Repoze and Grok on top of Framework 4

Yup. Sounds good to me.

As usual, I don't think any decisions should be taken. This is just
what I would like to see. People either do it or do not.

-- 
Lennart Regebro: Pythonista, Barista, Notsotrista.
http://regebro.wordpress.com/
+33 661 58 14 64
___
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] RIP Zope 2!

2009-04-03 Thread Lennart Regebro
2009/4/2 Tim Nash :
> If you really think zope 3 (or 4) can stand on it's own, just rename
> zope 2 to 'plone base'. That will cut down on the confusion.

There are many more that uses Zope 2 besides Plone. But it is true,
and also likely A Good Thing that Zope 2 doesn't get many new users
nowadays except via Plone. The effort of slowly moving Plone more and
more onto Zope 3 is therefore very important.

-- 
Lennart Regebro: Pythonista, Barista, Notsotrista.
http://regebro.wordpress.com/
+33 661 58 14 64
___
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 Lennart Regebro
My preferred Zope-future would be:

1. The Zope Framework dependency cleanup project continues. When
cleanup is deemed reasonably finished, we rename the framework Zope 4.

2. Zope 3 The Application server moves over to zope.pipeline or
similar, and gets a new name, and becomes one of the application
servers that run on the Zope Framework. I propose the name "Blue
Bream" (another name for the fish Zope). Version can be 1.0 or 4.0, no
matter.

3. Grok moves over either to Zope.pipeline or repose.bfg as publisher in Grok 2.

4. Zope 2 moves permanently over to a better publisher, possibly
repoze,Zope2, or something based on zope.pipeline. We stick our heads
into actually redoing the security with proxies, in a not necessarily
completely backwards compatible way. This would be Zope 5, but the
name is better as Zope Legacy Server. 5 or 4.


That would leave us with Zope Framework v 4.0 or something, and four
servers running on Zope Framework. Zope Legacy Server 4/5 (with Plone
5 on top), Blue Bream, BFG and Grok.


-- 
Lennart Regebro: Pythonista, Barista, Notsotrista.
http://regebro.wordpress.com/
+33 661 58 14 64
___
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] Order of method calls of ZopePageTemplate

2009-03-12 Thread Lennart Regebro
On Wed, Mar 11, 2009 at 09:36, Analog Kid  wrote:
> the reason i need to do it this way is that no page template must be
> modified ... so i cant call a py script from the template.

Sure you can.

You are somehow barking up the wrong tree here. Back down and explain
what you are trying to do.

-- 
Lennart Regebro: Pythonista, Barista, Notsotrista.
http://regebro.wordpress.com/
+33 661 58 14 64
___
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] Order of method calls of ZopePageTemplate

2009-03-12 Thread Lennart Regebro
On Wed, Mar 11, 2009 at 09:18, Analog Kid  wrote:
> i want to make sure that a certain method gets called before anything else
> when the template gets rendered.

Sooo...stick it first in the template!

Strange question...

-- 
Lennart Regebro: Pythonista, Barista, Notsotrista.
http://regebro.wordpress.com/
+33 661 58 14 64
___
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] redirect timeout doesn't work

2009-03-12 Thread Lennart Regebro
On Wed, Mar 11, 2009 at 15:18, Dvir Bar-lev  wrote:
> Hi just wanted to add something that I forgot to meantion.
> The problem I described only happenes on  IE, on firefox it does the redirect 
> even after I refresh the page manually

So yet another IE bug then.


You want a lot of timeouts and redirections and stuff in your
application. Are you sure old-school HTML is the right way to do this?
Sounds like an AJAX app could be more suitable.

-- 
Lennart Regebro: Pythonista, Barista, Notsotrista.
http://regebro.wordpress.com/
+33 661 58 14 64
___
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] session data object question

2009-03-11 Thread Lennart Regebro
On Wed, Mar 11, 2009 at 09:32, Dvir Bar-lev  wrote:
> What I need is a way to know if we loaded the page as a result of
> pressing the button or as a result of refreshing the page, as I need to
> do different things in each case.

There is no difference between a refresh and a normal page load.

-- 
Lennart Regebro: Pythonista, Barista, Notsotrista.
http://regebro.wordpress.com/
+33 661 58 14 64
___
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] timeout on a page

2009-03-09 Thread Lennart Regebro
On Mon, Mar 9, 2009 at 15:36, Dvir Bar-lev  wrote:
> Any ideas how I can do this 2 things?

Set and check access times in the session.

-- 
Lennart Regebro: Pythonista, Barista, Notsotrista.
http://regebro.wordpress.com/
+33 661 58 14 64
___
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-PAS] user login and roles

2009-03-08 Thread Lennart Regebro
On Sun, Mar 8, 2009 at 10:35, Dvir Bar-lev  wrote:
> A user goes to the site, he see the log in screen that has 2 entry fields - 
> user name and password.
> The user enteres the data and presses the submit button.
> Now I want to take what the user entered and see if I have the same user and 
> password defined in acl_users folder, if so I want to give him the role that 
> that user in the acl_users folder have.

Yup, this is all automatic.

> And than based on that role direct him to the appropriate page

Aha. So your questions are two: How can I have a HTML login page, and
how can I redirect the user to different pages after login, based on
the roles.

PAS certainly helps you with this, as it has support for having HTML
forms for login. Also, as Andreas mentioned, there is a product called
CookieCrumbler that can help you with this without using PAS.


So how do you use PAS? You start using PAS by replacing your current
acl_user folder with the Pluggable Auth Service. In this you add
plugins. The plugins do different things. The User Manager will  store
users and passwords. The ZODB Role Manager will store role assigments
to users. The Cookie Auth Helper will enable you to have a login form.

Create all these, enable them, fiddle around a bit. Then you probably
need to ask more questions, and I won't know enough about PAS to
answer, but somebody else probably will.

-- 
Lennart Regebro: Pythonista, Barista, Notsotrista.
http://regebro.wordpress.com/
+33 661 58 14 64
___
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 check a user role with data entred by user?

2009-03-08 Thread Lennart Regebro
On Sun, Mar 8, 2009 at 08:07, Dvir Bar-lev  wrote:
> K, ill try to explain in more detail. :)
> What I want to do is this:
>
> I create 2 roles in zope - manager and client for example.
> I than create 2 users - zoe and don.
> Zoe has password A and role manager and don has password B and role client.
> Now I go to the log in page of my site, it has 2 fields - username and 
> password.
> What I want to do is this:
> If the user puts in the fileds zoe and A I want to be able to identify the 
> user zoe with the role manager

You already have. You gave Zoe the role "Manager", you say. OK. Done.
You don't need to do anything more.


I suspect you still need to explain, not what you are trying to do,
but what you are trying to achieve. Explain the usecase.

-- 
Lennart Regebro: Pythonista, Barista, Notsotrista.
http://regebro.wordpress.com/
+33 661 58 14 64
___
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] trivial: hello world with filesystem based egg sources

2009-03-08 Thread Lennart Regebro
On Sat, Mar 7, 2009 at 23:21, David Zejda  wrote:
> And now, please, what to do now, to have a few python lines somewhere in
> the egg dir, which the zope would know how to deal with?

The "egg dir" as you call it is a Python module, and you put Python
code there. Zope knows how to deal with it, that is not the problem.
What you need to do is get the Python code to deal with Zope. :)

> And on what url will be the "hello world" available then?

That is completely up to you. :)


The question now, is this Zope 3 or Zope 2?

For Zope 3, you should probably get a book. http://worldcookery.com/
There was another book to in the beginning of Zope 3, but I don't know
it has been updated.
You could also, for Zope 3, opt to use Grok, which is a framework
built on Zope 3 that makes Zope 3 easier: http://grok.zope.org/

For Zope 2, you can start here: http://docs.zope.org/zope2/zdgbook/source/
Then, you should probably buy the above book too. Zope 3 technologies
are getting very common in Zope 2.

-- 
Lennart Regebro: Pythonista, Barista, Notsotrista.
http://regebro.wordpress.com/
+33 661 58 14 64
___
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] Zope2 + Twisted

2009-03-06 Thread Lennart Regebro
On Thu, Mar 5, 2009 at 23:51, Peter Sabaini  wrote:
> Hm, the default zope.conf says twisted should be supported as an HTTP server
> replacement -- is that a bug?

If it uses the word "supported" that is a bug, yes.

In any case, as mentioned, it does not solve your problem. But setting
zserver-threads to 1 does.

-- 
Lennart Regebro: Pythonista, Barista, Notsotrista.
http://regebro.wordpress.com/
+33 661 58 14 64
___
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] Zope2 + Twisted

2009-03-05 Thread Lennart Regebro
On Thu, Mar 5, 2009 at 18:59, Peter Sabaini  wrote:
> So, I'd need the twisted reactor and libraries running in the Python
> VM that runs Zope. Which should be no problem except I suspect that I
> shouldn't be using the (threaded) ZServer then, because I think that would
> mess with twisted (which is not threadsafe for the most part).

Well, then you could probably set the ZServer to only use one thread.
That means you need many ZServers with a load balancer in front
instead.

> I thought if I'd switch to the twisted http server implementation that would
> take care of that -- no threaded ZServer, no problem. Except that doesn't seem
> to work as advertised, since the zope.app.twisted package is not present, and
> the one on PyPI seems to be geared towards Zope3, AFAICT.

I'm pretty sure the Zope2 implementation doesn't use zope.app.twisted.
However, the Zope 2 implementation is again not thread safe, and will
only work with one thread per server, so you don't actually gain
anything in using it. Besides, I don't think anyone actually used it
after I implemented it. Which is why it's still marked as
experimental, and would probably best be removed again.

-- 
Lennart Regebro: Pythonista, Barista, Notsotrista.
http://regebro.wordpress.com/
+33 661 58 14 64
___
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 check a user role with data entred by user?

2009-03-05 Thread Lennart Regebro
On Thu, Mar 5, 2009 at 09:21, Dvir Bar-lev  wrote:
> What I did was this, I created a folder in the ZMI and there I created a
> user folder(acl_users), in the user folder I defined  2 new roles.
>
> Now, I have a log in form where the user fills out user name and password, I
> want to check if the data he entered matches 1  of the roles I defined in
> the ZMI . I can’t find any info or example how to do it, not on the web nor
> in the documentation.

This is a classic case of you not telling is what you want to do.
Why do you want to check if the data he enters matches on of the roles?

You do that with

 if entered_data in (role1, role2):

which I suspect isn't what you are asking at all. :) Tell us what you
are trying to achieve.

-- 
Lennart Regebro: Pythonista, Barista, Notsotrista.
http://regebro.wordpress.com/
+33 661 58 14 64
___
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] Traversal and five

2009-03-03 Thread Lennart Regebro
On Tue, Mar 3, 2009 at 15:50, Miles  wrote:
> In Zope 2.9.9, is there a way to register a traversal adapter and if so
> how?  I've googled for examples, but haven't found anything pertinent.
> I'm not clear where to find the API for the adapter, and also if this is
> used in as old a zope as 2.9.9.

Well, there was a five:traversable statement in Zope 2.9, but I don't
exactly remember what it did, anyone else remember?

But Zope 2.10 contained the refactoring to have a more Zope3-style
traversal, so it may very well be that it isn't possible in 2.9, I
don't remember the details.

-- 
Lennart Regebro: Pythonista, Barista, Notsotrista.
http://regebro.wordpress.com/
+33 661 58 14 64
___
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] Come to the Zope Sprint @ PyCon 2009

2009-02-19 Thread Lennart Regebro
There will be a Zope + Friends sprint @ PyCon 2009, to work on Zope
and Zope-related technologies like Grok, Repoze, Deliverence etc.

  http://us.pycon.org/2009/sprints/projects/zope/

Because of the Repoze overlap with WSGI based frameworks we plan to
work closely together with the WSGI/Pylons/TurboGears/Repoze sprint
happening at the same time, so this will be a supercool webframwork
sprint!

Everyone is welcome! It is not necessary to sign up beforehand, but it
is recommended for planning purposes.  Either put your name on the
wiki-page yourself, or mail me and I will add you.

  http://us.pycon.org/2009/sprints/projects/zope/

For general information on the sprints, see:

  http://us.pycon.org/2009/sprints/

or ask me.

Help out / Learn / Have fun!

-- 
Lennart Regebro
http://regebro.wordpress.com/
+33 661 58 14 64
___
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] Surprising load test results? (more results)

2006-10-09 Thread Lennart Regebro

On 10/9/06, Pascal Peregrina <[EMAIL PROTECTED]> wrote:

Hi all,

I have added "ab" tests at the end of the page.
(http://talk.lastminute.com/wiki/index.php/Loadtest)

These extra results confirm everything we had found so far, except for 2.10
with use-wsgi "on"... We could see what others reported: in 2.10, WSGI adds
a similar overhead to all type of requests (html, gif, swf, ...). So there
must have been something wrong in our initial test.

Again, Zope 2.8.8 remains the fastest version...

Something new that we could not see in the previous test is the evolution of
the results with the number of concurrent threads, as we have done the same
test with 1,2,5,10,20,50 and 100 threads.


Well, as seen here the number of requests peak at around five threads,
which is expected with Zopes default setting of four threads.


Please have a look, and let me know what you think about these additional
results.


They seem to largely contractictyour earlier results, where the
avergare response time for WSGI was similar for all document types.
Now they are not. Also, this time, 2.10 without WSGI ends up somewhere
between 2.9 and 2.10 with WSGI, while before 2.10 without WSGI was
slightly slower (but not that much) than 2.9.

So, basically, these tests are perhaps slightly less non-sensical than
your earlier tests, but still surprising. I don't see why Zope 2.10
would be so much slower than 2.9 in serving static content. There has
been no change there. Your first test was much more reasonable in that
area. This test is on the otehr hand much more reasonable for the WSGI
results.

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.nuxeo.org/
___
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] Surprising load test results?

2006-10-06 Thread Lennart Regebro

On 10/6/06, Pascal Peregrina <[EMAIL PROTECTED]> wrote:

+ 100 concurrent threads looks a little heavy


Or more to the point, you need to test with 1, 5, 10, 20 and 50 as
well and look at performance effects of that. Just hitting it with a
100 and assuming that's useful and valid data doesn't work.
___
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] Surprising load test results?

2006-10-06 Thread Lennart Regebro

Surprising indeed.


Why then the static content is so much slower is again weird. It almost
looks like there's a fixed speed for WSGI. Someone who knows more about
how the WSGI support may be able to say more...


WSGI in itself should not make a difference there. However, if the
WSGI server used is Twisted, then Twisted has a higher overhead per
request than ZServer. However, these results seem to indicate that
this overhead suddenly becomes the major factor, which clearly is
impossible.


the number of concurrent requests were 100


It's usually a good idea to test this with smaller numbers of
concurrent requests as well, to see how speed reacts to increasing
loads.

Those WSGI tests make no sense, I think they are somehow faulty.
___
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] Legacy Perl code and Zope. A pipe dream?

2006-10-05 Thread Lennart Regebro

On 10/4/06, Derek Basch <[EMAIL PROTECTED]> wrote:

Thanks for all the replies everyone! This all certainly helped me in deciding 
which direction to
go.


Well, that's all we can hope for at this point! :)

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.nuxeo.org/
___
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] TimerService/ZopeScheduler runs but doesn't run scripts......

2006-10-04 Thread Lennart Regebro

On 10/4/06, michaelntmilne <[EMAIL PROTECTED]> wrote:

Simply good advice. I'm not asking for people to do my work for me! I'm
perfectly capable of doing it myself thanks very much. I've got everything
running using VisualCron for Windows. There is a general disdain of Windows
which does have a basis but which I find slightly short sighted at times.


Windows is a pain in the ass as a server platform. That said it's OK
for Python development, as long as you don't need a c-compiler, it's a
good desktop, and it is absolutely necessary to support for demos.

So I agree, the disdain for Windows is short-sighted. An unix sucks as
desktop. (Although it seems to me though that Windows suck more and
more and Unix less and less, so in a couple of years...) ;)

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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: Re: [Zope] external method: importing and updating method

2006-10-04 Thread Lennart Regebro

On 10/4/06, Alan <[EMAIL PROTECTED]> wrote:

Thanks for help. I did what suggested below. We also set a crontab to
restart the zope server every night, but them I was wondering if it is
a good idea.


Isn't it better to just restart the server when you have updated the software?
Modules loaded from External methods are not different from any other
Zope software in that sense.
--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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] Legacy Perl code and Zope. A pipe dream?

2006-10-03 Thread Lennart Regebro

On 10/3/06, Derek Basch <[EMAIL PROTECTED]> wrote:

Perhaps refactor wasn't the best choice of words. The site is a very large 
online gaming website
(not gambling). The legacy perl code does many, many things (administration, 
game play,
accounting, message boards, publishing, mail, etc...) and really is around a 
million lines.
Rewriting the current perl code in python/zope would take a small eternity even 
with the rapid
development that zope permits.


Well, you don't need to rewrite most of it, as Zope handles some of
this already, and there are products for some of the rest.

But yes. It would be a lerge project, of course.


I saw that the zope-perl project is virtually dead and was hoping that some 
magical zope to perl
bridge existed. Something that would allow me to use our existing perl code as 
an external method
or someting similar.


Well, that wouldn't help you. You would then still have one million
lines of perl code/crap, just wrapped in a Zope layer.


Which way should I go?


Hard to say. If the Perl code was NOT spaghetti-code (is there Perl
code that is not) then a perl framework would probably have been the
natural way to go. Now I don't even know if that would help you,
because that assumes you can extract relevant parts from you current
app and reuse them. And if you can, well, then it's not spaghetti. :)

If it really is spaghetti, you'll end up rewriting everything anyway.
Install something like CPS and Plone and look at Plones third-party
products, and you'll get a feeling for how much you really need to
write from scratch. There's a lot out there.

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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] TimerService/ZopeScheduler runs but doesn't run scripts......

2006-10-03 Thread Lennart Regebro

On 10/3/06, Andreas Jung <[EMAIL PROTECTED]> wrote:

Nonsense. There are always reasons why a software might only certain
operating systems - either because on some limitations of the operating
systems itself or because of software constraints.


Well, sure. But if this doesn't work on windows, this should be
clearly stated and documented. If not, it's a bug. :-)

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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] Legacy Perl code and Zope. A pipe dream?

2006-10-03 Thread Lennart Regebro

On 10/3/06, Derek Basch <[EMAIL PROTECTED]> wrote:

I have about a million lines of Perl code/crap that I would like to refactor to 
Zope.
Is this even possible?


Refactor? No. But it's quite likely that you can redo it quite quickly
with Zope thanks to all the third-party products.

What does you perl code/crap do? What type of site is it?

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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] PageTemplate i18n migration from Zope2 to Zope2+Five / Zope3...

2006-09-19 Thread Lennart Regebro

On 9/14/06, Pascal Peregrina <[EMAIL PROTECTED]> wrote:

 I would like to know the right way to manage messages and store them in
ZODB with Zope2+Five or Zope3.
 Currently, in Zope2, I use Localizer MessageCatalog objects.
 Is there a new way already available through Five?
 (note that I don't want to use flat files for translations, they must be
ZODB stored for my use case)


The only implementations that exist for Five at the moment is
Localizer, PTS and Zope3 i18n. Only Localizer supports storing the
message catalogs in ZODB.
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] How can I get a listing of all objects in the Zope 2.62 ZODB?

2006-09-12 Thread Lennart Regebro

On 9/12/06, Mark, Jonathan (Integic) <[EMAIL PROTECTED]> wrote:

In Oracle it is easy to get a listing of everything
that is in the Oracle database. One simply queries the
system view dba_objects.

Is there anything similar for the Zope 2.62 ZODB?


ZODB is an hierarchical object database. So, yes, there is and no there isn't.
You can't just make a query and get all the data, the data is stored as objects.

On the other hand, getting tha data is dead easy, although you don't
make a query. You just write python. For example, to get all the
subobjects for a particular object, you write

subobjects = the_object.objectValues()

Tada!

Do that recursively, and you pretty much get all the objects you would
be interested in. Then you need to understand each object type, but
that's another thing. ;-)
___
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 best to copy and paste in pythonscript?

2006-08-29 Thread Lennart Regebro

On 8/28/06, Gaute Amundsen <[EMAIL PROTECTED]> wrote:

But knowing you a bit by now, me thinks you are infact referring to the
source..
Some API doc that!


Correct. That is some API doc. In fact, you can't get any better than
that, as it is always up to date, and to the point. :-)

Yeah, I know, when you come from the land of compilers, it takes a bit
of getting used to. But the fact is that it works very well.


Actually, I am starting to think there should be a big notice on the frontpage
of the http://www.zope.org/Documentation/ section saying:

"don't bother with this, just read the source"


Mmm. Yes. Sarcasm. That makes you look serious.
___
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] asp in zope

2006-08-25 Thread Lennart Regebro

On 8/23/06, Siddharth Sethi <[EMAIL PROTECTED]> wrote:

Hi, hopefully someone can help me out, I have a html form that calls an asp
file stored in the root of my plone site. When i click on the submit button
which calls this asp file, it returns back the asp file in text format on my
ie. Is there a plugin that i need to get in order to have asp run in zope?


Why on earth would you wnat to do that? ASP is a nightmare of suckyness!
--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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: Announcing the release of Zope version 2.8.8

2006-08-17 Thread Lennart Regebro

On 8/17/06, Chris Withers <[EMAIL PROTECTED]> wrote:

Sidnei da Silva wrote:
> I am going to give a try to the Visual C Express 2005 one of these
> days. Heard reports of people that managed to build extensions for
> Python 2.4 with it.

Be careful - I've heard rumours that the "Express" editions use a
non-optimising compiler, which would be bad for the official Windows
distros...


But good for people developing Zope that has windows machines. I
wouldn't have to sit unconfortably with my portable unix in the sofa,
for example. ;)

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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 user, teething problems

2006-08-12 Thread Lennart Regebro

On 8/11/06, John P. Looney <[EMAIL PROTECTED]> wrote:

> Zope 3 has very flexible skinning support, which allows you to alter the
look and, to some extend, the feel of the ZMI. You can reach other skins by
using the ++skin++ URL namespace. One nice skin is ZopeTop, which is
excluded from the Zope X3 3.0.0 release but available in the repository. To
see the initial contents screen of the ZopeTop skin, as shown in Figure 2,
you use http://localhost:8080/++skin++ZopeTop/manage.

 So, I tried to go to that page, and I got the following in my logs...


Well, did you install the ZopeTop skin? The error message says that it
can't find any skin named ZopeTop.


  I've a feeling it's the same misconfiguration that happened when I tried
to go ahead and create an index_html object, which was what I thought I had
done when I'd played with Zope 2.3 or whatever, a few years back.


Yeah, you can do that in Zope 2. In Zope3 it's not very useful.

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Zope 2.9 Product Refreshing

2006-08-08 Thread Lennart Regebro

On 8/8/06, James Davies <[EMAIL PROTECTED]> wrote:

People pay large sums of money for us to host there critical business
infrastructure. If we have to restart zope for any reason, people get apache
proxy errors and lose session data.


Well, right the session data would be annoying.
But still, most companies do accept that you schedule upgrades, and I
still would like to know what kind of business can't accept a
one-minute scheduled outage from time to time. I sure never have met
one.

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Zope 2.9 Product Refreshing

2006-08-08 Thread Lennart Regebro

On 8/7/06, Dieter Maurer <[EMAIL PROTECTED]> wrote:

For this to work, we almost sure need to tell Five that the product
was refreshed such that Five can reprocess the "*.zcml" files for the
product.


Yeah, and we don't, and ZCML isn't designed for reprocessing, so I'm
not at all sure it's easy (but it may be).

I haven't looked deeply into this, I try to be testdriven, and then
refresh is not a problem. :)

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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] EMERGENCY!

2006-08-08 Thread Lennart Regebro

On 8/7/06, beno <[EMAIL PROTECTED]> wrote:

How do I undo the last change I made in Zope from the server itself? I
send Zope into an infinite loop when I call Web sites!


What is "the server itself"? The ZMI or a shell?

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Zope 2.9 Product Refreshing

2006-08-07 Thread Lennart Regebro

On 8/7/06, James Davies <[EMAIL PROTECTED]> wrote:


Hi. I've been attempting to develop products with Zope 2.9, and am finding
it increasingly difficult and slow to do so as Product refreshing no longer
works.

 Google shows up a few results from mailing lists with somewhat negative
responses (The gist I'm getting is that no-one 'in the know' wants to worry
about fixing it, as they don't see a real need for it).


Yeah, too bad, but making it better is complicated, and it can never
be perfect anyway.


 Another major issue I've discovered is Zope hosting. We reguarly deploy
custom sites on shared zope environments, and having to restart an entire
server just to update one product severely breaks our uptime guarentee.


You mean you can't allow the server even to be down for the less than
a minute it takes to restart it? I would honestly be very interested
in knowing what kind of systems you run that has that sort of
requirements.

But in any case, as mentioned by others here, multiple ZEO-clients and
load balancing fixes this for most cases.


I'm hoping I can garner some support to get the zope developers to fix the
problem.


Well, I'm sure it can be improved by throwing money on the right people... ;)

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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 user, teething problems

2006-08-03 Thread Lennart Regebro

The Python distros are generally quite OK and stable now, and useful
even for production systems, even though I fully understand that
people prefer to compile their own, if for no other reason to have one
specific for Zope, so that no package version suddenly gets upgraded
to something incompatible.

But the Zope RPMs have bever been particularily stable, supported or
released in a timely manner.

Use Python RPMs if you want. I do. But don't use the Zope RPMs. It's
more trouble than using the source version.

Sure, it would be nice if it wasn't so, but that's how it is. :)
___
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: [***SPAM*** Score/Req: 04.00/04.00] Re: [Zope] Catalog aware

2006-07-21 Thread Lennart Regebro

On 7/20/06, Garito <[EMAIL PROTECTED]> wrote:

Ok, a real case:

I'm working on a data system (I like the concept data system) for a friend
He is Dj for that I want to create a concept like

Session
Form -> A formulator
See -> Used to view the session on its default view
Ask -> Used to view the session to change it data (to modify the object)
Edit -> Used to change the properties (via Ask view)
...

Ask will be something like


  
  


As you can see a lot of entities will use the same Ask


Sure.


I will create a container to store all these kind of functionality to
use is as a generic Ask
In a normal way I can use adquisition to make these way but I want to
store things with some kind of order then I define something like

MyFriendsWeb (this is an entity)
Forms (is not an entity but I use the same product to create it)
   Session -> Formulator
   Production -> Formulator
Functionality (is not an entity but I use the same product to create it)
   Ask
   See
   Edit
Session (this is an entity)
   Form -> points to MyFriendsWeb/Forms/Session
   See -> Will use the generic one
   Ask -> this one too (the generic one)
   ...
Production (this is an entity)
   Form -> points to MyFriendsWeb/Forms/Production
   See -> Will use the generic one
   Ask -> this one too (the generic one)

MyFriendsWeb is an entity for that reason catalog everything that not in
another entity like Session

Session is another entity for that catalog See (the pointer one not the
real See), Ask (like See is a pointer) and so on

What I want is semantic structure not only usefull structure that makes
that every entity will know everything it can do or be


I think I see.


With my model I use my product for every container, formulators/page
templates/script pythons like functionality an so on


Sure, just like portal_skins does.


My model works but I would like if its possible to use something like



or



instead of





It works, its only a question of use it as simple as I can


Well, this seems complex. Can't you just have
context/Session/Form/header instead of just Session/Form/header?


For that my product is a ZCatalog with a property Entity (boolean)
If you mark Entity as true for an object every objects below these one
are catalogued by my product


Uhhh. That doesn't help.


What do you think?


Sound fine. I notice that in all of your description above there is a
complete lack of indexed page templates. ;)

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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-21 Thread Lennart Regebro

On 7/19/06, Garito <[EMAIL PROTECTED]> wrote:

> Look at the CatalogAware mixin class.
But with this class I could create a new class of PT Catalog aware,
isn't it?


Yup.


I would like to convert a normal PT is this possible?'


Yes, with monkeypatches, but really, you don't want to go that way.
This feels to me as a case of you asking the question you THINK is the
problem, because thats the problem you have right now. But often when
that happens you have been running in the wrong direction for a while.

It's like somebody asking how to break down a wall to get to the mall
on the other side, when the best way to get to the wall is to get out
of the dead-end street and then take left. :)

So in short: Why on earth would you want page templates to be catalogaware? :)


Sure but Is the cost so big?


Yes.

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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] absolute_url is empty in __getattribute__?

2006-07-11 Thread Lennart Regebro

On 7/11/06, Garito <[EMAIL PROTECTED]> wrote:

Hi
In the line to test __getattribute__ to override some properties I try
to access to the object's absolute_url but it's empty


__getattr__ is always called on the non-acquicision wrapped object.
Hence, __getattr__ doesn't know anything about it's surroundings.


How can I have the absolute_url at object's __getattribute__?


You can't, unless you bend over backwards, and there are surely easier
ways to do whatever you are trying to do.

What are you trying to achieve?

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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] windows2003/asp404/ plone

2006-07-10 Thread Lennart Regebro

On 7/10/06, shahrzad khorrami <[EMAIL PROTECTED]> wrote:

but this is a problem in windows2003 with Forms
e.g login form ,I try to replace zopeserver.open with:


What is zopeserver.open ? I can't find any reference to it. Is it a
part of the ASP404 product? In that case, have you tried contacting
the maker of that product?


but perhaps with some ctrl+F5  works but in first time that I click on login
button  give me Error500 . is there anyone who knows what I say?and I know
that YOU change something in your default.asp , what do YOU change there?


People here usually avoid IIS and ASP. ;-)

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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] page templates and "python:"

2006-07-03 Thread Lennart Regebro

On 7/3/06, Claudio Battaglino <[EMAIL PROTECTED]> wrote:

Is it a  significant test?


Yes, for the use case of in-memory objects and methods.
You might want to do the same with a traversal path
nocall:context/folder1/folder2/folder3, or something, and then
python:context.folder1.folder2.folder3

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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] page templates and "python:"

2006-07-03 Thread Lennart Regebro

On 7/3/06, Chris McDonough <[EMAIL PROTECTED]> wrote:

Actually, I think python: expressions perform slightly better than
their path: counterparts because their evaluation step needs to do
less work (no guessing about getitem vs. getattr).  Geoff Davis
taught me that.  But in the end it's all dwarfed by the penalty
imposed by security, so it really doesn't much matter.


Right. So the best and quickest is to prepare all the data in pure
disk-based python.
It's easy to do if you use the view methodology you get with Five, but
there are other ways to do it if you don't want to use views.
___
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] Improved Zope Org Proposal

2006-06-28 Thread Lennart Regebro

On 6/28/06, Chris McDonough <[EMAIL PROTECTED]> wrote:

He meant "use an Apache rewrite rule", I think.


Oh. My excuses in that case.

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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] Improved Zope Org Proposal

2006-06-27 Thread Lennart Regebro

On 6/28/06, Andrew Sawyers <[EMAIL PROTECTED]> wrote:

point.  Write the 'Zope product' management software and expose it as a
service - put it on the site.

[...]

No one said bag the collectors.  Rewrite http://www.zope.org/Collectors/
to collectors.zope.org and that's done.


No "writing" is gonna happen, and should not happen, becuse the
writing takes time and the resulting software needs to be updated,
bugfixes enhanced and managed, and that aint gonna happen. Your
comments ignore the previous experiences with www.zope.org.


Are you volunteering to do those two things in the next week?


No, because I have a job during weeks. However, say next month or two
instead, then, if somebody gives me the computer and internet
connection to host it on, yes I can do this.
--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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] Improved Zope Org Proposal

2006-06-27 Thread Lennart Regebro

On 6/27/06, John Schinnerer <[EMAIL PROTECTED]> wrote:

This is a basic principle of design that works (as opposed to design
that fails to work).
Start small and work the edges outwards.
The "work edges outwards" that works is often modular in nature (perhaps
a.k.a. 'micro-sites').
That doesn't mean it can't look-and-feel like "one big site as access
point."

Biting off more than one (person, organization, whatever) can chew
usually results in choking...


Exactly my points.


So I actually see a lot of agreement in what may appear to be argument.


Well, the proposal is to start only with the accesspoint (and the
origonal proposal did not contain anything else than the access point,
and also proposed it to be interim, for some reason). We can't start
with only the accesspoint, as we would have no product listing and no
collector other than at old.zope.org, which would be completely
bizarre. We have to start, as a minimum, with creating a
products.zope.org and a collector.zope.org (or maybe rather
bugs.zope.org) before we can replace www.zope.org. None of this is
hard to do. It should be doable in a couple of days worth of work, in
any case less than a week.


I agree that despite the wonders of zope, the zope.org site is not as
stunning a place to refer people to as it could be. For the most general
public face of the site, I support the idea of a clear and simple
"brochure-like" approach.


Exactly.

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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] Improved Zope Org Proposal

2006-06-26 Thread Lennart Regebro

On 6/26/06, Dieter Maurer <[EMAIL PROTECTED]> wrote:

I would prefer a single big site as an access point to the most
relevant information. But, if this is not possible...


Single big site is probably not possible. We have tried and failed.
But having a small focused site that works as the nave and center of
several small focused site, that should be possible.

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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] Improved Zope Org Proposal

2006-06-26 Thread Lennart Regebro

On 6/26/06, Chris Withers <[EMAIL PROTECTED]> wrote:

Ah well, this meta-ranting is much quicker and easier...


Hehe. :)

I would like to point out a minor conflict between two of your meta-rants:


I'd add the caveat that it needs to be stable maintainable software that
isn't going to cause the problems the current zope.org software has,
even though it was the "latest and greatest" when it was introduced.


Righto!


*insert plohn rant here*


Well, kinda righto again. But... the products part of plone org seems
to work and seems to be reasonably stable and maintainable. I think we
should set up a products.zope.org with that software, and let people
move the products pages over from www.zope.org and the retire the
products part of www.zope.org.

We could do this pretty much now, and it would enhance *.zope.org
quite a lot. Not much work, lots of result. :) But yes, that means
using Plone.

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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] Improved Zope Org Proposal

2006-06-25 Thread Lennart Regebro

On 6/25/06, Dieter Maurer <[EMAIL PROTECTED]> wrote:

But it's quite a bit more difficult when the content comes
from independent microsites on different servers.


Maybe, but that is without a doubt a small issue compared with the big
issues microsites will solve.


As I understood we have one adminstrator.
Are you sure he want to administer not one but several
Zope installations?


No. I do not want one person a manging everything. :-)

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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] Improved Zope Org Proposal

2006-06-25 Thread Lennart Regebro

On 6/25/06, Andrew Sawyers <[EMAIL PROTECTED]> wrote:

I'd beg to differ.  A community such as what PHP has built didn't work
this way.  They managed this very successfully.  We have not.  I think
the problem is you want to wait until the complete city is built before
you think you can open select stores for business.


It is absolutely and completely exactly the other way around.


Yes, I seem to think this.  You seem to think it needs to continue to be
centrally managed., which has been a proven failure IMNSHO.


Again, this exactly and absolutely the other way around.


I appreciate you saying that - but again, I beg to differ.  What you
propose is to continue to have the current status quo.


No. In my answer to your proposal, I wrote exactly what I porpose. I
think you should read it and return with your comments after that. The
things you claim here to be my point of view is the direct opposite of
what I wrote there.
___
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] Improved Zope Org Proposal

2006-06-24 Thread Lennart Regebro

On 6/24/06, Andrew Sawyers <[EMAIL PROTECTED]> wrote:

I agree - just change from microsite to 'communuty supported site' and I
wouldn't find any reason to argue this personally.  :)

...

I'd like to see some other site write this software and feed it to
www.zope.org via rss or some Ajax implementation the designers come up
with.  The limited content placed directly on zope.org should be that
noted herein and other emails IMNSHO.

...

The can - to that site the community steps up with or to sourceforge.
No need for it to be on the www.zope.org.  I of course prefer it if
someone in the community did it, so they could feed data to zope.org for
display.  It's about integration in my opinion - not about
consolidation.


OK; I see what you mean now. You ant to create the www.zope.org that
works as the main entrance and integratoor of the microsites. The
proble is that you wnat to do that BEFORE the microsites exist, which
is backwards.

Also, you seem to think that the microsites can be run by whoever
under whatever domainname. That doesn't work. We can't have our main
product site disappear because the guy who managed it got tired or
forget to pay his internet provider bill. And it looks bad if the
community is a hodgepodge of domains and URLs.

I say that you repost this proposal when we have some community sites
to integrate. :-)
--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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] Improved Zope Org Proposal

2006-06-24 Thread Lennart Regebro

On 6/24/06, Andrew Sawyers <[EMAIL PROTECTED]> wrote:

There would be VERY limited things an individual could upload.  I
personally argued strongly for 0 membership on this site.  If the ideas
of micro sites went forward, the appropriate micro sites could allow (or
not) membership as necessary.

[...]

> Who will decides which content is worth migration?
For the site I refer to, only that which meets the scope of the site.


-MAXINT from me. You are trying to make a top run "managed" site. I
think that is wrong for a collaborative software project by principle,
and it also means that ZF will have to pay sometbdy to create content
on the site, which to me seems to be a complete waste of money, when
reasonably the community members should do that themselves.

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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] Improved Zope Org Proposal

2006-06-24 Thread Lennart Regebro

On 6/24/06, Dieter Maurer <[EMAIL PROTECTED]> wrote:

In what way would this differ from "zope.org/{collector,faq,wiki,...}"?


Well, for one, it´s simpler to set up, and does not rely one one
single point of failure (and apache that does the rewriting) to each
separate server. Secondly, what I'm discussing here is the principle
of independent sites that run on independent servers and can be
managed independantly, and upgraded independantly, and extended with
new microsites independantly.

If they are called zope.org/XXX or XXX.zope.org is a minor issue in
that case, although I definitely preferr the last one fo the reasons
above.


This way, you would have an integrating site ("zope.org")
which would be able to provide integrationg services, e.g.
a search where you are interested in a concept and
happy to find hits in faq, wiki, product,...


That can be done anyway.
--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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] Improved Zope Org Proposal

2006-06-24 Thread Lennart Regebro

I would like to take this opprotunity to repeat myself. I know this is
boring but I feel it is important. :-)

We have already made a new www.zope.org once. That was an ambitious
project, which potential did not become fully realized. We need to
take with us the experiences of that.

And this is mainly:

1. We do NOT want a new www.zope.org. We want MANY new
"something".zope.org. We should have a products.zope.org, and a
collector.zope.org, and a faq.zope.org, and a wiki.zope.org, and
blablabla.

Because if we do that, each site becomes a nice handful of
managebility that can be improved and replaced separately from the
others.

www.zope.org would be an hyping site, where we hype zope, and referr
people to the other "microsites".


* The zope.org site will be set up with the same software that runs
plone.org.  The sites will have different skins, of course, and will
  be configured a bit differently, but the underlying software will be
the same.


I'm very much less concerned about what software we actually have.
It's a minor issue in this, although of course, not writing software
from scratch unless you have too seems to be a good idea. The
important thing is that we do not try to build a big monolithic site
that does everything again, because then this will for the third time
stall and slowly die.


  site management authentication, PloneHelpCenter for documentation


docs.zope.org. :)


  tracking, either links to the existing ZC trackers or
  a Trac installation.


Right.


* zope.org will have a paid sysadmin.  Bas van der Linden of
  Amaze has volunteered the services of Wichert Akkerman,
  the very talented sysadmin who currently administers
  plone.org.


Well, this is of course completely up to the foundation board. It's
probably a good idea, it's just a matter of judging the benefit and
the cost. ;-)


* Volunteers from the Zope community will be responsible for the
  site's content.  The current mock-up uses a skin designed
  by Tom Von Lahndorff.  I imagine that the initial text and
  information architecture will come from the svn repository
  of content that Andrew Sawyers and others have been working on.
  See http://new.zope.nl for an initial a mock-up.  The existing
  concept of membership for uploading bit-rot content will be retired.


No I don't follow you. Surely product information and news will be
uploaded and created by members? And surely that means some of it
sooner or later will rot?


* Existing community content on zope.org will NOT be migrated.
  The content will be made available on ZC's existing server
  via URL rewriting (to keep existing links from breaking) or
  by moving everything to an old.zope.org domain.


The old site can be moved to a old.zope.org as soon as there is a
products.zope.org and collector.zope org and news.zope.org up.


 The best
  content will be migrated by hand to PloneHelpCenter /
  PloneSoftwareCenter products.


I see no reason why product developers can't be "held responsible" for
migrating their own products. Products that then are not migrated can
be seen as abandoned and will go away when old.zope.org goes away.


* The zope.org site should acknowledge contributors in a overt fashion.
"Zope Rock Stars" who have risen up above the call of duty,
contributors, etc should be noted.  The Foundation can determine how to
implement this, but those paying for and providing services should
receive acknowledgment.


Yeah, good idea!

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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] Version status of Zope 3.2

2006-06-12 Thread Lennart Regebro

On 6/12/06, [EMAIL PROTECTED]

So, I have newly  installed Zope 2.9.3 with plone 2.5.0. And it is working 
fine. Please let me know how I can upgrade from Zope 2.8.1 to 2.9.3. Is there 
any hot fix-pack available or i'll have to install new one and import all the 
data-base. :-)



You install a new one and copy the database. Not import, just copy
from the old site to the new.

Zope needs no other procedures for upgrading. Plone may need it, but
that's a Plone issue, ask on the Plone lists for that.

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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] Information about Zope 3.2

2006-06-06 Thread Lennart Regebro

On 6/6/06, Michael Dexter <[EMAIL PROTECTED]> wrote:

Good FAQ but you do not address the 64k EUR question: Is Zope 3 so
well thought out (separation of content and logic etc.) that is will
not only serve as an excellent application server but also the "I
don't know how we survived without it" future foundation for Plone,
Silva, CPS etc. CMS's?


Answer: Yes.
:-)

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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] Information about Zope 3.2

2006-06-06 Thread Lennart Regebro

On 6/6/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:

Right now I'm using Zope 2.8.1 with interface of plone 2.1.1 and Python
2.3.5. I'm planning to upgrade the version interested in migrate to ZOPE3.2


Plone doesn't run on Zope 3, so that migration would be a seriously
major undertaking (ie, reqrite from scratch).


" Does Zope3.2 provides support to check last modified person's name in
recent modified tab. ?" In Zope 2.8.1, In recent modified link it was
   always reflecting owners name, not the person who modified the file.


Zope2 doesn't have a recent modified link, and I don't think Zope3
does either. So it's most likely a Plone feature you are talking
about, and hence has nothing to do with Zope 2.8.1.


Please provide me information regarding this.


http://blogs.nuxeo.com/sections/blogs/lennart_regebro/2005_10_04_zope2-vs-zope3-faq

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] What's the difference between 2.8.x and 2.9.x?

2006-05-31 Thread Lennart Regebro

On 5/31/06, Andreas Jung <[EMAIL PROTECTED]> wrote:

--On 31. Mai 2006 11:21:04 +0200 Gfeller Martin <[EMAIL PROTECTED]>
wrote:
> after the annoucement of Zope 2.8.7 and 2.10.0.B1, I'm a bit confused
> about the difference between the 2.8 and 2.9 lines? Is it mainly Python
> 2.4 support?

doc/CHANGES.txt is your friend.


And also, the announcements:
http://zope.org/Products/Zope/2.9.0/Zope-2_9_0-released

Some new features of Zope 2.9:

   * ZODB 3.6
   * Five 1.3
   * integration for Zope 3 events for object creation and deletion
   * Zope 3 i18n integration for page templates


--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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] AJAX and Zope

2006-05-24 Thread Lennart Regebro

On 5/24/06, Tarek Ziadé <[EMAIL PROTECTED]> wrote:

You might want to look at Azax approach as well:
besides the way it works (you define behaviors in XML files, that get
processed by a js engine)
it gathers Zope 3 help views, that let the developer define the behavior
in Python

I think the stuff lennart talks about is CrackAjax, but IIRC it is  not
really maintained
and let you kinda write javascript in Python: the python code is not
valid (can't be tested, etc..), but translated to valid javascript


I was thinking loosely about both approaches, as I'm not fully up to
date about the progress in these areas.

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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] AJAX and Zope

2006-05-24 Thread Lennart Regebro

On 5/24/06, Pascal Peregrina <[EMAIL PROTECTED]> wrote:

By Zope objects I meant:

You've got a page template for example, and you include such an "AJAX enabled 
object", basically rendering an HTML fragment, and the resulting page will include 
the page template code + the fragment (similar to a macro call), but will also include 
the needed javascript code to handle the asynchronous communication.


That is a macro call. There is no difference. It just that the macro
includes the HTML needed to suck in the JS library you use.


Then another thing would be something like a PythonScript object (so you define 
python code and return python structures) and get it rendered as javascript to 
be included in somepage for processing the data returned by an asynchronous 
XML-RPC call to Zope within the browser.


Thare has been discussions and efforts to make a library where you can
write python code and get Ajax out, yes. It is very non-trivial. :)

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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] AJAX and Zope

2006-05-24 Thread Lennart Regebro

On 5/24/06, Pascal Peregrina <[EMAIL PROTECTED]> wrote:

I was wondering if there is any plan to have built-in support (i.e.
helpers, built-in Zope objects, etc) in order to support AJAX in Zope at
some point.


The helpers would then be some sort of Ajax JS library. I think that
at this time it makes more sense to let people choose for themselves.
If one turns out to be better than the others, it will spread around
the community and become a "default" standard, and then maybe it's
interesting to include as a standard package, but thats a big maybe
and a big if.

I don't know what any built-in Zope-objects would do for Ajax. :)

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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] REMOTE_USER Security Issue

2006-05-18 Thread Lennart Regebro

On 5/18/06, Jim Washington <[EMAIL PROTECTED]> wrote:

Completely immutable environ is not a good choice from WSGI
point-of-view.  environ can be useful for middleware information-passing.


WSGI middleware would by definition get the environ and be able to
modify it before the request gets it, so that isn't a problem.

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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] Twisted Z2

2006-05-17 Thread Lennart Regebro

On 5/17/06, David Pratt <[EMAIL PROTECTED]> wrote:

Can someone point me to Zope2 running Twisted server from Paris ecm
sprint. I see at least three branches that look like Z2 Twisted
refactoring in the svn. Can someone explain differences between these.
Many thanks.


Trunk includes the most recent effort for this.
--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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] A quick zope/python question

2006-05-09 Thread Lennart Regebro

On 5/9/06, Jonathan <[EMAIL PROTECTED]> wrote:

I think I am misunderstanding something basic about python/zope here. Why
does a TOC object evaluate to false?


Well, why not? If you are checking for none-ness, use "is None".
Evaluating the object is wrong.

If the TOC object evaluates to something empty as a side-effect of
something, or because it explicitly is supposed to return something
useful when evaluated, who in this case happens to be empty/false, is
besides the point. It should be easy to figure out if you read the
source, though. :-)

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


  1   2   3   >