Re: [Zope] Anyone know of a tool to restore/cleanup/reset security/role settings?

2008-11-30 Thread Alexander Limi
On Sat, 29 Nov 2008 15:19:10 -0800, Ross Patterson  
[EMAIL PROTECTED] wrote:

 Yeah, I did see that and no it doesn't look like it resets anything.  It
 also looks like it's only concerned with local roles and I need to reset
 the role mappings too.  But thanks anyways!

 Keep an eye out for collective.securitycleanup.  :)

Cool, I will. It's a very frequently asked question — how can I get back  
to the state my site was in before I started messing with security? :)

-- 
Alexander Limi · http://limi.net

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


Re: [Zope] Anyone know of a tool to restore/cleanup/reset security/role settings?

2008-11-29 Thread Alexander Limi
On Fri, 28 Nov 2008 19:10:48 -0800, Ross Patterson  
[EMAIL PROTECTED] wrote:

 Does anyone know of an existing tool for restoring all security
 settings/rolemaps from the ground up?  Obviously I can use rolemap.xml
 where applicable and update workflow security.  I want to first restore
 the Zope root to code defaults and restore the whole hierarchy to just
 acquire.

 I'm going to write something myself if not, but I thought I'd see if
 there was anything out there.

I assume you saw this release from Andreas today:
http://pypi.python.org/pypi/zopyx.plone.cassandra

I'm not sure if it can actually reset the settings, but at least it can  
show them. Maybe something you can contribute to the next release? :)

-- 
Alexander Limi · http://limi.net

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


[Zope] Re: Python Security Vulnerabilities

2008-08-08 Thread Alexander Limi
On Fri, 08 Aug 2008 08:09:56 -0700, Stacy Ladnier  
[EMAIL PROTECTED] wrote:


I first apologize for cross posting, but this is a critical issue for my  
organization.


We have several applications built with Plone, ranging from v 2.0.5 to v  
2.5.3 and Zope, ranging from 2.7.3 to 2.9.7. With the August 2008  
release of a Python security vulnerability  
(http://secunia.com/advisories/31305/), we are trying to determine how  
this affects our web applications and how to mitigate and detect any  
attacks. We have seen no discussion among the Zope and Plone communities  
regarding this security threat. Is this an indication that Zope and  
Plone are immune from these exploits due to the additional security  
model it puts in place or is everyone simply waiting for Python to  
release a patch?


Most of the issues mentioned seem to be irrelevant to Plone from a casual  
glance (disclaimer: I'm not a coder :) — but this one could probably do  
with some investigation:


3) Integer overflow errors in the processing of unicode strings can be  
exploited to cause buffer overflows on 32-bit systems.


In general, we have to wait until Python releases new versions that fix  
these issues when they happen. I'm sure that will be the easiest and  
quickest way to resolve this too.


--
Alexander Limi · http://limi.net

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   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-dev] Re: Product version number redundancy with version.txt and setup.py

2008-07-08 Thread Alexander Limi
On Mon, 07 Jul 2008 13:44:43 -0700, Wichert Akkerman [EMAIL PROTECTED]  
wrote:



Previously Hanno Schlichting wrote:

Tim Hicks wrote:
Am I right in thinking that there is a duplication of information in
having an eggified product's version number stored in setup.py and
version.txt?

Having your setup.py read its version from version.txt is easy, if you
don't want to update two places.

I think the more interesting question is, why we need a persistent
registry of installed products and any information about them at all
anymore?


ZClasses


Speaking of which, are there plans to rip out ZClasses from Zope 2.12?  
It's about time!


--
Alexander Limi · http://limi.net

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

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


[Zope-dev] Re: Re: Zope 2.11.0c1 released

2008-05-25 Thread Alexander Limi
On Sun, 25 May 2008 04:06:36 -0700, Wichert Akkerman [EMAIL PROTECTED]  
wrote:



Previously Alexander Limi wrote:
On Sat, 24 May 2008 04:57:35 -0700, Andreas Jung [EMAIL PROTECTED]  
wrote:


I just released Zope 2.11.0c1 in order to get the final
release of 2.11.0 out of the door as soon as possible:

http://www.zope.org/Products/Zope/2.11.0c1

Since I didn't see a clear consensus on the Z2 interfaces thread — does
this release emit deprecation warnings for the Z2 interfaces?


Tres made that change after Andreas made the c1 release.


Ah, great — so the final release will have them. That's all I wanted to  
know, thanks Tres and Wichert!


--
Alexander Limi · http://limi.net

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

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


[Zope-dev] Re: Five and browser-oriented components

2008-04-14 Thread Alexander Limi
On Mon, 14 Apr 2008 10:11:11 -0700, Philipp von Weitershausen  
[EMAIL PROTECTED] wrote:


*IF* you'd like to be pragmatic, I'd suggest we clean up those failing  
Plone tests, merge the branch and be on our way.


I'm also happy to make it visible on the Plone agenda, as long as it's  
made clear where the error is and what we have to fix. We all want this  
branch to land on trunk. :)


--
Alexander Limi · http://limi.net

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

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


[Zope-dev] Re: Non-ASCII characters in URLs

2008-04-08 Thread Alexander Limi

On Mon, 07 Apr 2008 05:32:17 -0700, Jonathan [EMAIL PROTECTED] wrote:

IDNA (http://www.ietf.org/rfc/rfc3490.txt) and Punycode  
(http://www.faqs.org/rfcs/rfc3492.html) may be of some use.


I'm not looking for non-ASCII domain names, just object IDs. :)

--
Alexander Limi · http://limi.net

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

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


[Zope-dev] Re: Non-ASCII characters in URLs

2008-04-08 Thread Alexander Limi
On Mon, 07 Apr 2008 12:45:00 -0700, Dieter Maurer [EMAIL PROTECTED]  
wrote:



Wichert Akkerman wrote at 2008-4-7 20:45 +0200:

This is becoming increasingly painful


I will soon have a patch against Zope 2.11b1
which gets rid of this restriction.

If there is consense, I can add it to the Zope repository.


I would love to see support for non-ASCII object IDs, +1. (obviously not  
based on any technical understanding from my side :)


--
Alexander Limi · http://limi.net

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

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


[Zope-dev] Re: Let's fix the damned website

2008-04-06 Thread Alexander Limi

On Sat, 05 Apr 2008 08:52:07 -0700, Martin Aspeli [EMAIL PROTECTED] wrote:

Now we need people to help contribute content, review the content that's  
already there and tie up a few loose ends.


You can see current state of play here: http://zode01.lovelysystems.com.


Awesome! It looks great, and is a fantastic starting point.

Some quick feedback from my initial browsing of the site, do with it what  
you want. ;)


- Try not to be too clever with the Taste/Get and other links. People  
actually scan for links that are similar from other projects, and having  
to interpret/understand them is confusing. I would definitely switch  
Taste to Examples, and possibly Get to Download (as a bonus, you  
get a bigger click target ;).


- The list of companies using Zope includes several examples that look  
very out of place (i-Gift?), and even some that went bankrupt 7 years ago  
(Storm Linux). Try to narrow it down to either global brands that anyone  
will recognize (Red Hat, NASA, GE), or — where this is not possible — go  
for a market leader in that particular area (plone.org for example lists  
Oxfam — while not necessarily known by the average person, everybody in  
the non-profit space know who they are).


- The icons for the Key Features of Zope look very out of place.  
Underwear for standards? Donuts for community? Makes no sense to me, at  
least. :)


- I assume the front page text is still being worked on, but Zope is an  
open source framework for building web applications is repeated 3 times  
on the front page.


Nice work, everyone!

--
Alexander Limi · http://limi.net

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

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


[Zope-dev] Non-ASCII characters in URLs

2008-04-06 Thread Alexander Limi

Hi,

Is there a good technical explanation for why Zope doesn't allow non-ASCII  
characters in URLs?


I'd like to be able to let URLs work like this example from Wikipedia:

http://ja.wikipedia.org/wiki/メインページ

When I try adding an object with ID メインページ in Zope 2, I get the  
following error message:


Error Type: BadRequest
Error Value: The id  
amp;#12513;amp;#12452;amp;#12531;amp;#12506;amp;#12540;amp;#12472;  
contains characters illegal in URLs.


Is there a fundamental reason (ie. Python objects can only be ASCII) or is  
it simply bugs that need to be fixed?



Curiously yours,

--
Alexander Limi · http://limi.net

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

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


[Zope-dev] Plone, Grok, Zope 2, Zope 3, Repoze and the future

2008-02-03 Thread Alexander Limi

Hi,

Just wanted to make you aware of two excellent articles written by Martin  
Aspeli about the future of Plone and how we want to move forward and what  
roles the underlying technologies play — new and old:


1. http://martinaspeli.net/articles/pete-and-andy-try-plone-4

2. http://martinaspeli.net/articles/is-plone-too-hard

Should be read in order, since the first one informs and sets the stage  
for much of what is discussed in the second one.


--
Alexander Limi · http://limi.net

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

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


[Zope-dev] Re: AW: [Checkins] SVN: z3c.jbot/ Initial import.

2007-11-28 Thread Alexander Limi

On Wed, 28 Nov 2007 11:45:10 -0800, Malthe Borch [EMAIL PROTECTED] wrote:


-1 to magic or weak dependencies.
+1 to test what you fly and fly what you test


I agree. In this case it would make sense to have five.jbot. If
everyone's in favor, I can split it out like that. It's an interesting
situation though because the package in question does not have any
code that depends on zope 2 in any way.


While we're on a renaming spree here, why jbot? (I know, Just a Bunch of  
Templates)


My associations go to IRC or spam bots immediately. :)

--
Alexander Limi · http://limi.net

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

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


[Zope-dev] Re: Frustrated with Python and Frameworks. Zope, Grok, , Django, CherryPy

2007-11-28 Thread Alexander Limi
On Wed, 28 Nov 2007 15:52:01 -0800, Philipp von Weitershausen  
[EMAIL PROTECTED] wrote:


It's actually even more restrictive than that: If I read paragraph 5 of  
the contributor agreement [1] right, then whoever checks things in must  
have the intellectual property over the code, otherwise s/he would not  
be able to donate half of it to ZC. So effectively you can't check in  
somebody else's code, even if it's covered by the ZPL.


That's correct from a legal point of view. Which is why code in the  
Collective is a separate repository and isn't covered by the contributor  
agreement in our particular case.


--
Alexander Limi · http://limi.net

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

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


[Zope-dev] Re: KGS Site Updated

2007-11-19 Thread Alexander Limi
On Sun, 18 Nov 2007 23:17:53 -0800, Stephan Richter  
[EMAIL PROTECTED] wrote:



So if you go to http://download.zope.org/zope3.4/intro.html into the
sub-section Version 3.4.0b2 you see a bunch of links.


Just a minor observation, nowhere on that page is it explained what KGS  
means. :)


--
Alexander Limi · http://limi.net

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

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


[Zope-dev] Re: Bad package dependencies

2007-11-03 Thread Alexander Limi

On Fri, 02 Nov 2007 01:45:59 -0700, Christian Theune [EMAIL PROTECTED] wrote:


We're having a 'boring sprint' next week in Germany, you might wanna
join us virtually.

(It's boring because we only want to do clean up.)


You got it all wrong, those are the exciting sprints! :)

Mmmh, cleanups.


--
Alexander Limi · http://limi.net

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

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


[Zope-dev] Zope on Python 2.5?

2007-10-31 Thread Alexander Limi
Sorry if this has been asked hundreds of times before — I couldn't find  
any info on this apart from the Summer of Code project related to Zope 3.


Will Zope 2 ever run on Python 2.5, or is that postponed indefinitely? We  
see an increasing amount of users trying to use Zope 2 with their systems  
that have Python 2.5 as default.


--
Alexander Limi · http://limi.net

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

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


[Zope-dev] Re: Zope on Python 2.5?

2007-10-31 Thread Alexander Limi

On Wed, 31 Oct 2007 21:29:36 -0700, Andreas Jung [EMAIL PROTECTED] wrote:


The recommendation is still System python is evil, evil, evil (quoting
Jim).


Sure, but if you ever want to be able to tell users to do:

easy_install plone

to get their Plone site, it's a necessary evil evil evil. ;)

We generally encourage not to use the system Python in everything we ship  
(Windows, Mac and Unified installers all ship their own Python) — but I  
really hope we won't be stuck with Python 2.4 after the world has moved on  
to Python 2.5 and 2.6.


I agree that for proper deployments, you shouldn't use the system Python,  
but there's the case of letting people get started with Plone easily from  
their Ubuntu or Mac OS X (Leopard ships with Python 2.5 and easy_install  
by default) — we should be able to let them do that too.


--
Alexander Limi · http://limi.net

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

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


[Zope-Annce] Help vote for Plone as a CMS Awards finalist

2007-10-01 Thread Alexander Limi
Hi all,

Please take a minute to vote for Plone in Packt's Open Source CMS Award:

http://www.packtpub.com/article/best-other-open-source-cms-award-final-plone

You managed to bring Plone to the front page of DIgg.com with your
earlier effort for the release of Plone 3.0, let your Python vote
count — and make Plone be selected over the Java-based CMSes in their
selection!

(And if you haven't tried Plone 3.0 yet, you should! :)

Thanks!

--
Alexander Limi · http://limi.net
___
Zope-Announce maillist  -  Zope-Announce@zope.org
http://mail.zope.org/mailman/listinfo/zope-announce

  Zope-Announce for Announcements only - no discussions

(Related lists - 
 Users: http://mail.zope.org/mailman/listinfo/zope
 Developers: http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope-dev] Re: Options replacing DateTime with datetime!?

2007-08-26 Thread Alexander Limi

On Sun, 26 Aug 2007 11:31:13 -0700, Andreas Jung [EMAIL PROTECTED] wrote:


I would not care about some incompatibilities if people have the chance
using the old version somehow (e.g. through a DT egg).


+1, for what it's worth. ;)

Dealing with the existing DateTime implementation has been pain since I  
started with Zope 2.0.1. I'd be willing to suffer some cleanup and  
compatibility work if it was fixed once and for all, as would anyone doing  
anything non-US-centric with dates, I imagine.


I don't know about the exact implementation details, but if it's possible  
to explicitly specify the old DateTime for older installations, that  
sounds like a great solution.


--
Alexander Limi · http://limi.net

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

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


[Zope-dev] Re: ploneout - Or how using zc.buildout for a common Zope2 project might look like

2007-01-25 Thread Alexander Limi

On Thu, 25 Jan 2007 12:45:26 -0800, Martin Aspeli [EMAIL PROTECTED] wrote:


Plone stinks!


It's like a fine cheese.

--
Alexander Limi · http://limi.net

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

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


[Zope] Re: Re: major problems placing authentication on an extranet site-security flaw?

2006-02-14 Thread Alexander Limi
On Tue, 14 Feb 2006 04:59:07 -0800, Dario Lopez-Kästen  
[EMAIL PROTECTED] wrote:


*HOWEVER*, IIRC, plone, especially on windows (if installed with the  
windows installer) uses a trick, which is not documented at all, as far  
as I know, uses a Site Access rule.


http://plone.org/documentation/faq/multiple-sites-installers

What part is not documented at all? :)

--
_

 Alexander Limi · Chief Architect · Plone Solutions · Norway

 Consulting · Training · Development · http://www.plonesolutions.com
_

  Plone Co-Founder · http://plone.org · Connecting Content
  Plone Foundation · http://plone.org/foundation · Protecting Plone

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

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


[Zope] Re: New Product called Zoep

2006-02-07 Thread Alexander Limi
On Tue, 07 Feb 2006 09:08:24 -0800, Jonathan Cyr  
[EMAIL PROTECTED] wrote:



Hello,

Is there any concern about naming confusion with the new VOIP browser  
extension called Zoep (from Slashdot this morning).


Mozilla Firebird became FireFox, due to naming confusion.   Should these  
folks continue with such a similar name?  Is anyone concerned?


Absolutely a legitimate problem, I think - in addition to the fact that  
the Zope trademark isn't owned by the Zope Foundation. (Look out for the  
new J2EE Zope technology once the value of the Zope brand exceeds the  
assets of Zope Corp).


As an aside, this posting in the comments on Slashdot was hilarious:


Announcing: Ploen

Ploen is an out-of-the-box ready VoIP system that is built on the powerful  
and free Zoep client-side VoIP engine. It requires minimal effort to set  
up, is deeply flexible, and provides you with a system for managing VoIP  
that is ideal for project groups, communities and intranets.


And it goes 0 - 60 mph in 5 seconds, as you can see from the Ploen site.

http://www.ploen.org



Certainly made my day :D

--
_

 Alexander Limi · Chief Architect · Plone Solutions · Norway

 Consulting · Training · Development · http://www.plonesolutions.com
_

  Plone Co-Founder · http://plone.org · Connecting Content
  Plone Foundation · http://plone.org/foundation · Protecting Plone

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

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


[Zope] Re: New Product called Zoep

2006-02-07 Thread Alexander Limi
On Tue, 07 Feb 2006 09:55:02 -0800, Dennis Allison  
[EMAIL PROTECTED] wrote:



I think there is potential for confusion.  Both Zope Corp and
teh Zope Foundation should send cease and desist letters.


Zope Foundation does not have anything to do with the trademark,  
unfortunately. That is Zope Corporation's property, and part of their  
equities, according to them.


A summary of the situation:

http://www.zopezen.org/Members/limi/zc-communitychat

--
_

 Alexander Limi · Chief Architect · Plone Solutions · Norway

 Consulting · Training · Development · http://www.plonesolutions.com
_

  Plone Co-Founder · http://plone.org · Connecting Content
  Plone Foundation · http://plone.org/foundation · Protecting Plone

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

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


[Zope] Re: Zope vs Plone: performance issues!

2006-01-25 Thread Alexander Limi
On Wed, 25 Jan 2006 00:11:04 -0800, Dario Lopez-Kästen  
[EMAIL PROTECTED] wrote:


Start by checking the ZODB cache numbers in the zope-conf file (too  
start simple). IIRC, the default is 5000 objects. Increase that to, say  
50.000 or so (you mention that you have a busy site).


Sorry, but this is not good advice. 5000 objects in the cache is normally  
plenty, and you should look into caching the front-end before you even  
consider this. 50K objects in the cache will eat *a lot* of memory, and  
most likely cause swapping.


Cache properly with Apache or Squid in front first, then investigate the  
more complex settings.


--
_

 Alexander Limi · Chief Architect · Plone Solutions · Norway

 Consulting · Training · Development · http://www.plonesolutions.com
_

  Plone Co-Founder · http://plone.org · Connecting Content
  Plone Foundation · http://plone.org/foundation · Protecting Plone

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

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


[Zope] Re: Zope vs Plone: performance issues!

2006-01-24 Thread Alexander Limi

Check out CacheFu and it's accompanying tutorial.

http://plone.org/products/cachefu
http://plone.org/products/cachefu/documentation/how-to/crash-course

CacheFu is being used on plone.org at the moment.

Neither Zope nor Plone are proper delivery systems, and if you want  
performance, you should read up on caching.


-- Alexander Limi

On Tue, 24 Jan 2006 06:08:44 -0800, Hugo Ramos  
[EMAIL PROTECTED] wrote:



Hi all,

I'm responsible for a big corporate intranet and corporate portal.
They were using Zope/Plone before I got here and the problems are too  
many.


Let's talk about performance issues... Plone is VERY SLOW responding
requests. All content is stored in ZODB objects and zcatalog is used
to search. But even if you request the intranet home only, it takes
about 10 seconds to load. The hardware is very good and lots of ram is
used in the servers.

They also have zeo + 2 zope instances running in the same machine.
I've never seen this in my life... only 3 machines running 2 zope
instances + zeo instance, separately.

Do you think Zope(logic)+MySQL(content)+Apache(HTTP server) is better
solution than Zope+Plone ???

TIA

--
Hugo Ramos - [EMAIL PROTECTED]
Senior Zope consultant
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )





--
_

 Alexander Limi · Chief Architect · Plone Solutions · Norway

 Consulting · Training · Development · http://www.plonesolutions.com
_

  Plone Co-Founder · http://plone.org · Connecting Content
  Plone Foundation · http://plone.org/foundation · Protecting Plone

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

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


[Zope] Re: just curious: zope and ingres

2005-12-12 Thread Alexander Limi
On Mon, 12 Dec 2005 08:33:25 -0800, Sascha Ottolski  
[EMAIL PROTECTED] wrote:



I remembered reading about the plans to create RDBMS integration as
alternative to ZODB about 1,5 years ago:

http://www.zope.com/about_us/press_releases/ca_and_zope.html

Doesn't seem to be alive anymore, right?


CA seems to have dropped both Ingres and their involvement with Zope, so I  
believe that would be right, yes.


--
_

 Alexander Limi · Chief Architect · Plone Solutions · Norway

 Consulting · Training · Development · http://www.plonesolutions.com
_

  Plone Co-Founder · http://plone.org · Connecting Content
  Plone Foundation · http://plone.org/foundation · Protecting Plone

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

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


[Zope] Re: Re: why will FastCGI not be supported in the Future.

2005-12-09 Thread Alexander Limi
On Wed, 07 Dec 2005 01:39:37 -0800, Chris Withers  
[EMAIL PROTECTED] wrote:



Dieter Maurer wrote:

The original poster explained his wish to retain FCGI:
   It reuses an existing connection between Apache and Zope
  while (he thinks and I might believe it) the recommended
  mod_proxy way each time opens a new connection.
   Thus, FastCGI might be more efficient.


Show me some evidence proving that fcgi or mod_proxy is the significant  
limiting performance factor in a setup involving zope and I'll take this  
seriously ;-)


FWIW, we did some rudimentary benchmarking with Zope + Apache using  
mod_proxy vs. Zope + FastCGI + lighttpd (a very fast and lightweight web  
server). There was no difference in performance since Zope is so slow in  
the first place - so it didn't make any difference.


--
_

 Alexander Limi · Chief Architect · Plone Solutions · Norway

 Consulting · Training · Development · http://www.plonesolutions.com
_

  Plone Co-Founder · http://plone.org · Connecting Content
  Plone Foundation · http://plone.org/foundation · Protecting Plone

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   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-dev] Re: Weird test failures with DateTime

2005-11-27 Thread Alexander Limi
On Sun, 27 Nov 2005 07:40:36 -0800, Philipp von Weitershausen  
[EMAIL PROTECTED] wrote:



Philipp von Weitershausen wrote:

I've recently been seeing weird DateTime test failures on all Zope 2
branches since 2.7 (see below). Any idea what I'm doing wrong? My system
is OSX 10.3 with a self-compiled Python 2.4.1 (through darwinports). My
system timezone, as you can see, is GMT+0800 (Beijing time).


I've figured this one out. The Chinese time zone is known as 'CST', but
so is 'US/Central' as well. In fact, Mac OS X itself doesn't report the
time zones to python consistently. When I set my time zone to Chicago
time, time.tzname is ('CST', 'CST') and when I set my time zone to
Shanghai time, it remains the same, even though it's a completely
different time zone. DateTime.DateTimeZone._zmap can only pick one
timezone to be mapped to the 'CST' name and it happens to choose
'US/Central' (which doesn't surprise me obviously). Running the tests
with the operating system's time zone set to, say, CET works fine.


Welcome to the wonderful US-centric world of the Zope DateTime module. I  
believe the same problem exists for Australian time zones which happen to  
share abbreviations with some obscure US time zone. ;)


Posting from the US-ly yours,

--
_

 Alexander Limi · Chief Architect · Plone Solutions · Norway

 Consulting · Training · Development · http://www.plonesolutions.com
_

  Plone Co-Founder · http://plone.org · Connecting Content
  Plone Foundation · http://plone.org/foundation · Protecting Plone

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

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


[Zope-dev] Re: Zope-2.8.4 Problem with Plone-2.1.1

2005-11-25 Thread Alexander Limi

Put it in the Plone issue tracker, and we'll have a look at it.

PS: Don't cross-post to lists when you want to ask several lists about the  
same - post individual messages, a lot of people don't like cross-posting.  
(Personally I don't really care, but... :)


-- Alexander

On Fri, 25 Nov 2005 13:33:11 -0800, Tony Addyman  
[EMAIL PROTECTED] wrote:


I am running Plone-2.1.1. I recently upgraded from zope-2.8.3 to  
zope-2.8.4

with no apparent issues. However, today when I attempted to view the
properties of the Document content type within portal_types, i.e. I used  
a

URL ending with /portal_types/Document/manage_propertiesForm. I received
the following error message. The problem happened with all the content
types, not just this one. I switched back to zope-2.8.3 and the problem
went away. Just so you know. Does this need reporting as a bug? If so,  
does

it go to the zope collector or the plone collector?

Something similar was reported ages ago with zope-2.6.3 and CMF, but it  
may

not be related.

Traceback (most recent call last):
  File /opt/zope/lib/python/ZPublisher/Publish.py, line 113, in publish
request, bind=1)
  File /opt/zope/lib/python/ZPublisher/mapply.py, line 88, in mapply
if debug is not None: return debug(object,args,context)
  File /opt/zope/lib/python/ZPublisher/Publish.py, line 40, in  
call_object

result=apply(object,args) # Type scr to step into published object.
  File /var/opt/zope/default/Products/CMFCore/utils.py, line 405, in
manage_propertiesForm
return form(self, REQUEST, *args, **my_kw)
  File /opt/zope/lib/python/Shared/DC/Scripts/Bindings.py, line 311, in
__call__
return self._bindAndExec(args, kw, None)
  File /opt/zope/lib/python/Shared/DC/Scripts/Bindings.py, line 348, in
_bindAndExec
return self._exec(bound_data, args, kw)
  File /opt/zope/lib/python/App/special_dtml.py, line 175, in _exec
try: result = render_blocks(self._v_blocks, ns)
  File /opt/zope/lib/python/DocumentTemplate/DT_In.py, line 703, in
renderwob
try: append(render(section, md))
  File /opt/zope/lib/python/DocumentTemplate/DT_Let.py, line 76, in  
render

return render_blocks(self.section, md)
  File /opt/zope/lib/python/DocumentTemplate/DT_Util.py, line 196, in  
eval

return eval(code, d)
  File string, line 0, in ?
AttributeError: min

Tony Addyman




--
_

 Alexander Limi · Chief Architect · Plone Solutions · Norway

 Consulting · Training · Development · http://www.plonesolutions.com
_

  Plone Co-Founder · http://plone.org · Connecting Content
  Plone Foundation · http://plone.org/foundation · Protecting Plone

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

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


[Zope-dev] Re: [Zope3-dev] RFC: Reunite Zope 2 and Zope 3 in the source code repository

2005-11-24 Thread Alexander Limi

On Thu, 24 Nov 2005 06:17:02 -0800, Jim Fulton [EMAIL PROTECTED] wrote:


Some projects that I'd really like to see worked on soon:

- Use a common publisher framework

- Use a common security framework

- Share common ZPT implementations


Can I add use a common datetime implementation? ;)

I really want to reunite the Zope 2 and Zope 3 comunities.  I'd be happy  
if, by the end of 2006 we could retire the Zope 3 lists and merge the  
discussions back into the main zope lists.


Thanks a lot for your clarification, Jim - and on behalf of the Plone  
community, thanks for making things easier to plan around. If we know that  
such a transition is coming, we can plan for it. Reuniting the two efforts  
is critical for the survival of everyone involved in the Zope 2 and Zope 3  
worlds.



P.S. Wow, what a huge number of messages in a day. :)


P.S. Try plone-users. Bring your waders. ;)

--
_

 Alexander Limi · Chief Architect · Plone Solutions · Norway

 Consulting · Training · Development · http://www.plonesolutions.com
_

  Plone Co-Founder · http://plone.org · Connecting Content
  Plone Foundation · http://plone.org/foundation · Protecting Plone

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

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


[Zope-dev] Re: Re: UI improvements

2005-11-22 Thread Alexander Limi
On Mon, 21 Nov 2005 06:47:34 -0800, Chris Withers [EMAIL PROTECTED]  
wrote:



Jens Vagelpohl wrote:
 IMHO if this is just UI changes that improve usability it should be   
OK to flout the rules a bit. The rules are there to ensure code   
quality and stability in a release branch - I doubt small UI changes   
endanger those.


Beware the slippery slope to hell, paved with good intentions ;-)


I can assure you that I have no good intentions whatsoever, just a desire  
to see the I clicked the Clear Catalog button, now what do I do  
questions on plone-users decrease.


Pure annoyance-driven development. ;)

--
_

 Alexander Limi · Chief Architect · Plone Solutions · Norway

 Consulting · Training · Development · http://www.plonesolutions.com
_

  Plone Co-Founder · http://plone.org · Connecting Content
  Plone Foundation · http://plone.org/foundation · Protecting Plone

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

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


[Zope-dev] UI improvements

2005-11-18 Thread Alexander Limi

Hi all,

I'd like to investigate the possibility of doing some UI improvements to  
the Zope Management Interface. Is there someone that is considered the  
godfather of the current Zope user interface that I should coordinate with?


The things I want to fix are tiny, but important things. I'm not planning  
to rewrite any logic, most of what I want to do is to clean up structures,  
more logically organize things (but leave them on the same page), fix  
annoying consistency issues and scary behaviour (Update Catalog button  
right next to the Clear Catalog button, anyone?) - but leave everything  
else alone.


How would I approach this, process-wise? I assume I cut a branch and work  
off that, but I'd like to not do too much work that doesn't get used -  
hence, I'd like to know whether people have special attachments to the  
current way things work and are laid out before I invest time in improving  
things.


--
_

 Alexander Limi · Chief Architect · Plone Solutions · Norway

 Consulting · Training · Development · http://www.plonesolutions.com
_

  Plone Co-Founder · http://plone.org · Connecting Content
  Plone Foundation · http://plone.org/foundation · Protecting Plone

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

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


[Zope] Re: (no subject)

2005-11-16 Thread Alexander Limi
On Wed, 16 Nov 2005 01:13:24 -0800, AZAIS Bruce  
[EMAIL PROTECTED] wrote:



AttributeError: plone_javascripts.js


Have you visited portal_migrations in the ZMI and migrated the site to 2.1?

Also, http://plone.org/contact#setup is the right place for migration and  
setup questions.


--
_

 Alexander Limi · Chief Architect · Plone Solutions · Norway

 Consulting · Training · Development · http://www.plonesolutions.com
_

  Plone Co-Founder · http://plone.org · Connecting Content
  Plone Foundation · http://plone.org/foundation · Protecting Plone

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

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


[Zope] Re: zope 2.8.4 on windows 98

2005-11-12 Thread Alexander Limi
On Sat, 12 Nov 2005 03:52:28 -0800, Fernando Martins  
[EMAIL PROTECTED] wrote:


I understand the problem, but is it the intention that zope is not  
supported on win98?


Yes, I believe this is intentional. Windows 98 is a seven year old OS with  
insufficient infrastructure to reliably run server tasks anyway. At least  
get Windows 2000, which has a decent kernel.


--
_

 Alexander Limi · Chief Architect · Plone Solutions · Norway

 Consulting · Training · Development · http://www.plonesolutions.com
_

  Plone Co-Founder · http://plone.org · Connecting Content
  Plone Foundation · http://plone.org/foundation · Protecting Plone

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

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


[Zope] Re: plone contents error

2005-11-11 Thread Alexander Limi
On Fri, 11 Nov 2005 10:37:15 -0800, José Adalberto F. Gualeve  
[EMAIL PROTECTED] wrote:


After I finished to install zope and plone, I added a new plone site  
from ZMI. Thats Ok, but,
inside of new plone site I try to add one plone content.  It adds,  
but when I try to visualize

this plone content, I receive the following error:


Don't add CMF or Plone content from the ZMI. It will not be created  
correctly.


--
_

 Alexander Limi · Chief Architect · Plone Solutions · Norway

 Consulting · Training · Development · http://www.plonesolutions.com
_

  Plone Co-Founder · http://plone.org · Connecting Content
  Plone Foundation · http://plone.org/foundation · Protecting Plone

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

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


[Zope] Re: Zope 2.8.4 install issue

2005-11-10 Thread Alexander Limi
On Thu, 10 Nov 2005 05:29:20 -0800, Jonathan Cleaver  
[EMAIL PROTECTED] wrote:


The machine already has another working Zope elsewhere, sat underneath  
Plone 2.05.


Not related to your problem directly as far as I can see (you didn't say  
whether you were just installing Zope straight, or with add-ons like  
Plone), but please note that you need Plone 2.1 to use Zope 2.8.x.


--
_

 Alexander Limi · Chief Architect · Plone Solutions · Norway

 Consulting · Training · Development · http://www.plonesolutions.com
_

  Plone Co-Founder · http://plone.org · Connecting Content
  Plone Foundation · http://plone.org/foundation · Protecting Plone

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

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


[Zope] Re: Zope/Plone Website Manager, Baltimore, MD

2005-11-09 Thread Alexander Limi
On Wed, 09 Nov 2005 10:21:07 -0800, Beau Gould  
[EMAIL PROTECTED] wrote:



Candidate should have at least five years related experience.


Please note that Plone is only four years old. ;)

--
_

 Alexander Limi · Chief Architect · Plone Solutions · Norway

 Consulting · Training · Development · http://www.plonesolutions.com
_

  Plone Co-Founder · http://plone.org · Connecting Content
  Plone Foundation · http://plone.org/foundation · Protecting Plone

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

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


[Zope] Re: Zope 2.8.4 and Plone

2005-11-07 Thread Alexander Limi
On Mon, 07 Nov 2005 09:42:52 -0800, Dennis Allison  
[EMAIL PROTECTED] wrote:



We've run into problems tryin to run Plone under Zope 2.8.4.  What is the
current best practice?


Plone on Zope 2.8.x is supported and works well, you will need to give us  
more details than I've run into problems.


Also, the plone-setup mailing list may be a better choice for this:

http://plone.org/contact#setup

--
_

 Alexander Limi · Chief Architect · Plone Solutions · Norway

 Consulting · Training · Development · http://www.plonesolutions.com
_

  Plone Co-Founder · http://plone.org · Connecting Content
  Plone Foundation · http://plone.org/foundation · Protecting Plone

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

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


[Zope] Re: Problem after upgrade zope from 2.6.0 - 2.8.4

2005-10-28 Thread Alexander Limi
On Thu, 27 Oct 2005 23:27:22 -0700, Tino Wildenhain  
[EMAIL PROTECTED] wrote:



I fail to see how the zope could possibly influence the rendering
of the very same HTML in a browser.


Zope used to specify border=0 on images, put the title of the object in  
the alt tags of the image and other bad behaviour. Now it doesn't anymore.


Most likely he needs to add the CSS:

img { border: none; }

to his site, depending on what browser he uses to test it.

--
_

 Alexander Limi · Chief Architect · Plone Solutions · Norway

 Consulting · Training · Development · http://www.plonesolutions.com
_

  Plone Co-Founder · http://plone.org · Connecting Content
  Plone Foundation · http://plone.org/foundation · Protecting Plone

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

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


[Zope] Re: Zope 2.8 or 3.1?

2005-10-28 Thread Alexander Limi
On Fri, 28 Oct 2005 13:58:31 -0700, Peter Bengtsson  
[EMAIL PROTECTED] wrote:



Can I humbly recommend that you don't reinvent the wheel and have a look
at

www.issuetrackerproduct.com

It's really good for QA and general problem reporting.


Everybody wants to write their own issue tracker (and in the later stages  
of this syndrome, their own project management software), as you are well  
aware of. ;)


--
_

 Alexander Limi · Chief Architect · Plone Solutions · Norway

 Consulting · Training · Development · http://www.plonesolutions.com
_

  Plone Co-Founder · http://plone.org · Connecting Content
  Plone Foundation · http://plone.org/foundation · Protecting Plone

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

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


[Zope] Re: Zope 2.8 or 3.1?

2005-10-26 Thread Alexander Limi
On Wed, 26 Oct 2005 13:43:21 -0700, HaraldFinnås  
[EMAIL PROTECTED] wrote:



I'm new to Zope, and I've been playing with 2.8.1, but I really haven't
done any real work with it yet. Now I expect to get my new decicated Zope
hardware tomorrow, so I have to decide if I should go for 2.8.4 or 3.1.0.
Any tips if I should go for the latest and greatest or stick with 2.8?


These are two totally separate code bases, and have nothing at all to do  
with each other.


Zope 3 is a ground-up rewrite of Zope, and shares no code (or application  
compatibility) with Zope 2.


--
_

 Alexander Limi · Chief Architect · Plone Solutions · Norway

 Consulting · Training · Development · http://www.plonesolutions.com
_

  Plone Co-Founder · http://plone.org · Connecting Content
  Plone Foundation · http://plone.org/foundation · Protecting Plone

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

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


[Zope] Re: Linux/unix preferences question

2005-10-23 Thread Alexander Limi
On Sat, 22 Oct 2005 21:32:48 -0700, David H  
[EMAIL PROTECTED] wrote:


I want to soon move from Windox XP to Linux or Unix (intel/amd) for my  
Zope projects.  Just wondering if users experienced with these can  
recommend versions (freeBSD?, SuSe?, Red Hat?  etc)  that plays well  
with Zope and those to avoid.


I would recommend sticking to Linux, as this is the most well-tested Zope  
platform. Python on *BSD has historically had issues, don't know if that's  
still the case.


My personal preference is Ubuntu Server, the recent release ships with  
Plone 2.1 and Zope 2.8 ready to go. The Ubuntu people use Plone for their  
web site and Zope 3 for a lot of internal projects, so it's safe to say  
that these pieces of software will be well supported.


--
_

 Alexander Limi · Chief Architect · Plone Solutions · Norway

 Consulting · Training · Development · http://www.plonesolutions.com
_

  Plone Co-Founder · http://plone.org · Connecting Content
  Plone Foundation · http://plone.org/foundation · Protecting Plone

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

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


[Zope] Re: Using the set object within page templates

2005-09-28 Thread Alexander Limi

A more interesting question: shouldn't it be available by default?

It's a basic data strucure along the lines of lists and dicts, right? Or  
have I missed a use case for it where it may be scary to use in a Python  
Script? :)


-- Alexander Limi

On Mon, 26 Sep 2005 20:41:18 +0200, Andreas Jung [EMAIL PROTECTED]  
wrote:



Python sets are not available from with ZPT since ZPT and PythonScripts
run within a sandbox. Write an external method or move your code to
trusted code (Zope product).

-aj

--On 26. September 2005 13:38:55 -0500 Floyd May [EMAIL PROTECTED]
wrote:


How can I use a set object within a page template?

When I attempt to create a set (e.g. tal:define=myset
python:set(some_list)), zope complains that the name 'set' is not
defined.

Thanks!

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








--
_

 Alexander Limi · Chief Architect · Plone Solutions · Norway

 Consulting · Training · Development · http://www.plonesolutions.com
_

  Plone Co-Founder · http://plone.org · Connecting Content
  Plone Foundation · http://plone.org/foundation · Protecting Plone

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

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


[Zope] Re: Re: schema won't update - persistant .pyc files??

2005-09-23 Thread Alexander Limi
On Fri, 23 Sep 2005 23:18:49 +0200, Chris Withers [EMAIL PROTECTED]  
wrote:


Does anyone know if the other Members-as-content product that I've seen  
out there is any better than CMFMember, which is pretty horrific, by all  
accounts?


Have a look at Membrane in the Collective - the rewrite Helge just started  
doing (aims to do less than CMFMember, and do it efficiently).


--
_

 Alexander Limi · Chief Architect · Plone Solutions · Norway

 Consulting · Training · Development · http://www.plonesolutions.com
_

  Plone Co-Founder · http://plone.org · Connecting Content
  Plone Foundation · http://plone.org/foundation · Protecting Plone

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

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


[Zope] Re: mysql-python build error

2005-09-13 Thread Alexander Limi
On Tue, 13 Sep 2005 18:51:24 +0200, Sophia Grimm [EMAIL PROTECTED]  
wrote:



I installed Plone 2.1 from the binary installer at
plone.org and MySQL 4.1 from the binary at mysql.com.
When attempting to build MySQL-python-1.2.0 on MOSX
10.4.2 client, I get this error:

error: command 'gcc' failed with exit status 1

Obviously, it's looking for -lmysqld. I don't know
where to change setup.py (or what to change it to) so
this will work. Any tips are appreciated!!


If you are doing any serious work with UNIX tools on Mac OS X, I recommend  
DarwinPorts:


http://www.darwinports.org

I'm not sure if they have your particular package, but since Python and  
MySQL is so common, I would assume they do.


--
_

 Alexander Limi · Chief Architect · Plone Solutions · Norway

 Consulting · Training · Development · http://www.plonesolutions.com
_

  Plone Co-Founder · http://plone.org · Connecting Content
  Plone Foundation · http://plone.org/foundation · Protecting Plone

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

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


[Zope] Re: Python editor in zope?

2005-09-03 Thread Alexander Limi

Sean Dunn wrote:


I'm new to Zope, and am getting tired of using textarea's to edit my
Python/[HD]TML code. My space-bar thumb is starting to get an
unnatural twitch, from hitting it multiple times at the beginning of
every line of code. J


You should look at External Editor[1] for authoring code through the web  
without using the browser interface. The best would of course be to put  
your code on the file system - nobody does serious work through the web  
interface (but the Zope book gives this impression, unfortunately).


External Editor enables you to work with your favorite editor even when  
doing work in the web interface.



I've installed TinyMCE and Epoz, and they're both great for
documents.. But they're both useless for writing code. Instead of
writing my own skin for TinyMCE (and reinventing the wheel), are there
any pure JavaScript/CSS code editors that can do search/replace, block
indents, and (this would be amazing) Python syntax highlighting?


SciTE[2] is the best all-round editor I've found for writing HTML, CSS,  
and the occasional Python script. It has a lot of nice features, and if  
you get the Windows version with extensions included[3], you get a really  
nice and sane setup. It's also open source.


I've used a fair share of different editors throughout my work with Plone,  
and I have to say that the two that I really liked are SciTE and TextMate.  
TextMate is only available for OS X, though. I'm not a hardcore Python  
coder, but your main use case seems to be just like mine - templates, CSS  
and the occasional Python script - so SciTE should serve you well.


[1] http://www.zope.org/Members/Caseman/ExternalEditor
[2] http://www.scintilla.org/SciTE.html
[3] http://gisdeveloper.tripod.com/scite.html


--
_

 Alexander Limi · Chief Architect · Plone Solutions · Norway

 Consulting · Training · Development · http://www.plonesolutions.com
_

  Plone Co-Founder · http://plone.org · Connecting Content
  Plone Foundation · http://plone.org/foundation · Protecting Plone

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

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


[Zope] Re: lines around images as links

2005-08-27 Thread Alexander Limi
On Sat, 27 Aug 2005 11:46:47 +0200, Peter Bengtsson [EMAIL PROTECTED]  
wrote:



dtml-var pen.tag(border='0')

On 8/27/05, michael [EMAIL PROTECTED] wrote:

how can i get rid of borders around images?

as in:

a href=/app/staff/contactsdtml-var pen/a

it's been driving me mad!


...or do the proper thing, which is to add a small CSS snippet:

img { border: none; }

And you don't have to do this to every single img tag in your site.

This keeps your code cleaner, and keeps presentation where it belongs - in  
the CSS. Peter's tip is useful in general, though - especially setting CSS  
classes on img tags (you have to use the attribute css_class and not just  
class to not get a collision with the Python naming, though :).


--
_

 Alexander Limi · Chief Architect · Plone Solutions · Norway

 Consulting · Training · Development · http://www.plonesolutions.com
_

  Plone Co-Founder · http://plone.org · Connecting Content
  Plone Foundation · http://plone.org/foundation · Protecting Plone

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

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


[Zope] Re: Re: SquishDot exposes issue with ZCatalog/Catalog.clear() in Zope 2.8.0

2005-08-16 Thread Alexander Limi
On Tue, 16 Aug 2005 06:59:33 +0200, Andreas Jung [EMAIL PROTECTED]  
wrote:



This also causes issues when upgrading Plone sites, and counts for about
half the migration error reports we get with Plone 2.1 at the moment. :)


Nice comment...but you guys could have filled a bug report for this or
brought this up on the Zope-dev list since ages. Sorry, but we can fix  
only

issues we know about...so avoid ambiguous smilies..if you complain about
unfixed issues - report them first.


We discovered the issue yesterday, calm down.

--
_

 Alexander Limi · Chief Architect · Plone Solutions · Norway

 Consulting · Training · Development · http://www.plonesolutions.com
_

  Plone Co-Founder · http://plone.org · Connecting Content
  Plone Foundation · http://plone.org/foundation · Protecting Plone

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

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


[Zope] Re: SquishDot exposes issue with ZCatalog/Catalog.clear() in Zope 2.8.0

2005-08-15 Thread Alexander Limi
On Mon, 15 Aug 2005 21:51:08 +0200, Stephen Bartlett  
[EMAIL PROTECTED] wrote:



 If you attempt to import a SquishDot site that was exported from an
older version of Zope (in my case, Zope 2.6.4) into Zope 2.8.0, you
get an exception raised in Products.ZCatalog.Catalog.py at line 106
because self has no _length attribute.  In other sections of code in
Catalog.py, there's this chunk of code present:

~if not hasattr(self, '_length'):
~self.migrate__len__()

It seems that this chunk of code should also be inserted before the
reference to self._length in the clear() method.  I did so, and it
solved my issue with importing SquishDot sites.

This bug in Catalog.clear() is also in Zope 2.8.1.


This also causes issues when upgrading Plone sites, and counts for about  
half the migration error reports we get with Plone 2.1 at the moment. :)


--
_

 Alexander Limi · Chief Architect · Plone Solutions · Norway

 Consulting · Training · Development · http://www.plonesolutions.com
_

  Plone Co-Founder · http://plone.org · Connecting Content
  Plone Foundation · http://plone.org/foundation · Protecting Plone

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

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


[Zope] Re: Creating an application using zope and plone

2005-08-12 Thread Alexander Limi
On Fri, 12 Aug 2005 18:37:00 +0200, Dave Kuhlman  
[EMAIL PROTECTED] wrote:



On Fri, Aug 12, 2005 at 08:26:35PM +0530, Saura Ramachandran wrote:

Hi all,
 I am very new to zope and plone. Now I have to make a blogging kind
of site with user management based on roles. I want to have different
classes for different type of users. Please tell me where to find good
documentation to get started. And also some pointers to similar
example solutions.


There is also a Blog-type product for Plone at the Plone collective:

http://sourceforge.net/projects/collective


There are several blog products that work well with Plone:

http://plone.org/products/by-category/weblogs

--
_

 Alexander Limi · Chief Architect · Plone Solutions · Norway

 Consulting · Training · Development · http://www.plonesolutions.com
_

  Plone Co-Founder · http://plone.org · Connecting Content
  Plone Foundation · http://plone.org/foundation · Protecting Plone

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

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


[Zope] Re: Zope Foundation Update

2005-07-26 Thread Alexander Limi
(Sorry about the lateness of this post, a combination of interesting SMTP  
blocks + Zope mailing list policies made this message not come through the  
first time around, which was the 20th of July. I discovered this today  
while browsing the archives.)


On Wed, 20 Jul 2005 01:07:25 +0200, Rob Page [EMAIL PROTECTED] wrote:


As an aside, the ZEA has also registered the Plone logo
as a trademark.  It is not our business, but came as a
surprise to us, that the Plone Foundation is not the
owner of the Plone trademark.


This is wrong.

In the early days of the Foundation, we had no proper legal representation  
and asked ZEA to represent us while setting up the legal entity for the

Foundation.

Plone Foundation therefore asked ZEA to assist us with their trademark  
experts to register the Plone trademark worldwide. This is perfectly clear  
from the publicly available Plone Foundation board meeting minutes.


They did the work on our behalf, and most excellently executed the  
worldwide registration of the mark. The trademarks were transferred fully  
to the

Plone Foundation as agreed.

As a result, Plone Foundation owns the worldwide trademark for Plone.

-- Alexander Limi
   Vice President
   Plone Foundation

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

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


Re: [Zope-dev] Re: [Zope3-dev] Are there Graphic Designers?

2002-04-05 Thread Alexander Limi

Hi, Alexander Limi here, I am responsible for Plone's design and XHTML/CSS.
I just want to clarify some issues:

* The goal of Plone is to be lightweight, to offload as much layout as
possible to the CSS. Should be possible to use in low-bandwith situations
(mobile 9600bps GSM connections etc).

* Target browsers for Plone are

   * Mozilla/Netscape6
   * Opera 5+
   * IE 5+
   * Konqueror
   * Netscape 4
   * w3m
   * lynx

These are the browsers I want to be able to guarantee that Plone works in. I
even added a graceful degrading layer for Netscape4, since it is so common
in the open source world. (it's broken at plone.org at the moment though,
just returned from my Easter vacation, and somebody has checked in changes
that stops it from working - I will locate said person and give him a good
whacking ;)

* Goal is 100% XHTML 1.0 compliance, and this will not break any browsers as
some people seem to think.

* Another goal is to use Javascript where useful, but always make it fully
functional without it.

* Plone should be very quick to load, close-to-no graphics, and is perfectly
suited for the new ZMI (in fact I designed it with this in mind ;)

* And - You Ain't Seen Nothing Yet(tm) - PloneNG will utilize a lot of nifty
DOM tricks and probably XML/XSL to leverage the user experience on newer
browsers.


The point I really want to make here: cross-browser compatibility isn't that
hard if you approach it the right way and accept some degrading for inferior
browsers like Netscape 4.

As for comments about Plone's slowness at the moment - this has nothing at
all to do with the XHTML/CSS and general design - this is because of
expensive method calls in the Plone code.

What's *really* important about the new interface for Z3 is that the
management interface is designed by someone who understands *both* HTML and
UI design/usability to a high degree.

I have been proposed as one of the persons to take on this task, but as I'm
already investing a lot of my spare time in Plone, I would need something
more than just something nice to put on my resume. Finding work in the
interface/usability business is hard at the moment, and I can't afford to
invest a lot of time in the Z3 interface without being compensated for it in
some way.

If somebody (Zope Corp or any other organization) wants to sponsor this
effort, I'm sure we can come to an agreement on pricing. Discounts for the
Zope crowd ;)

I hope I don't come across as arrogant, but these are the realities - if I
don't get paid, I can't afford to do it. Such is the state of business
nowadays. Unfortunately. :(


-- Alexander Limi




___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Re: [Zope3-dev] Are there Graphic Designers?

2002-04-05 Thread Alexander Limi

From: Casey Duncan [EMAIL PROTECTED]


 In light of that, I would like to see a ZMI skin that is fully xhtml 1.0
 compliant, and uses CSS2 to its full extend, and possibly some CSS3. To
 me that means that one could develop the html coding completely devoid
 of presentation (no tables used for formatting, etc). I would also like
 to avoid using images for this skin unless they convey some meaning
 (such as icons) or otherwise enhance the useability. IOW, no shims,
 rounded corners, etc.

This is *exactly* what Plone does now. Every widget and tab is controlled
and made exclusively with CSS. No graphics involved. (well, the icons of
course, but... ;)

-- Alexander Limi




___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Re: [Zope3-dev] Are there Graphic Designers?

2002-04-05 Thread Alexander Limi

From: Casey Duncan [EMAIL PROTECTED]


 In light of that, I would like to see a ZMI skin that is fully xhtml 1.0
 compliant, and uses CSS2 to its full extend, and possibly some CSS3. To
 me that means that one could develop the html coding completely devoid
 of presentation (no tables used for formatting, etc). I would also like
 to avoid using images for this skin unless they convey some meaning
 (such as icons) or otherwise enhance the useability. IOW, no shims,
 rounded corners, etc.

This is *exactly* what Plone does now. Every widget and tab is controlled
and made exclusively with CSS. No graphics involved. (well, the icons of
course, but... ;)

-- Alexander Limi




___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Zope on OpenBSD 2.8 problem solved

2001-01-29 Thread Alexander Limi

Hi,

For those of you wishing to run Zope on OpenBSD 2.8, here is a solution. The
reason it doesn't work in the first place is a thread bug in the OpenBSD 2.8
release version. The solution is to use the libc_r from OpenBSD 2.7 for the
Zope instance.

Thanks to Jason Ish for the howto, I thought I would rewrite it to be more
generic and post it to the lists.

So, here we go:

Python on OpenBSD 2.8 uses /usr/lib/libc_r.so.3.1.
libc_r.so.3.1 is from 2.8, libc_r.so.3.0 is from 2.7 and will work.

So what we do is to copy the old libc file (if you don't have it, mail me
and I'll send it to you) into a directory in the Zope install dir, and add
that to the path. Then we rename the old file so the system thinks it is the
curent version.

In this example, I assume your Zope install is in /usr/local/zope.

First, we copy the old library into our Zope dir, and rename it:

cp /usr/lib/libc_r.so.3.0 /usr/local/zope/libc_r.so.3.1

Then you should add something like this to the top of your "start" script:

export LD_LIBRARY_PATH=/usr/local/zope

Start Zope, and you will find that it works fine now. Zope also works fine
in the CURRENT tree of OpenBSD, so presumably it will work out-of-the-box on
OpenBSD 2.9. This is the safest way of getting it to work at the moment.

Happy OpenBSD'ing :)


Alexander Limi.



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] Fw: PythonMethods and ZClass generation problem

2001-01-18 Thread Alexander Limi

Sorry if I'm overstepping any bounds here, but I tried posting this to the
main list, but the answers I get do not help me. I figured maybe somebody on
the PTK- or the Dev-list might be able to help. This is a bit of a crisis,
since our site has been down for a week due to this problem.

I also discovered that Zope 2.3 has PythonScript which has the "context"
object. Would this be of any help in the following problem? Just a thought.

This is my original posting:

 Hi,

 We recently decided to use LoginManager for authentication on our site,
and
 refactored our user registration methods to use PythonMethods instead of
 DTML.

 Now, during the registration of a user, we want to add a ZClass instance
 in the correct folder. This object is a representation of some of the
 information the user provides when he registers with us.

 But we have stumbled across a problem. This is probably a very basic and
 simple problem, but I couldn't find any info on it on zope.org, and none
of
 the people on IRC could help us either. So I'll try this posting instead.
:)

 What we're trying to do is to add a ZClass instance/object
programmatically
 from a PythonMethod. Our constructor is called Artist_add, and resides in
 our product "Artist". The constructor uses variables
 that we have set in the REQUEST object.

 So the process is like this:

 User fills out form with variables that are put in REQUEST
   |
 Form calls "registerartist", which is a PythonMethod
   |
 "registerartist" creates the user
   |
 "registerartist" tries to call the constructor of our Artist ZClass to add
 an Artist object in our "artists" folder, but fails.

 To add the Artist object we tried to call the constructor in the following
 way from "registerartist":

 return self.artists.manage_addProduct['Artist'].Artist_add(_.None,_)

 but then the REQUEST object was not available, and the object creation
fails
 since it can't find the variables it needs. The traceback for this was:

 File string, line 41, in registerartist (Object:
 ApplicationDefaultPermissions) File
 /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 168, in __call__
(Object:
 Artist_add) File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py,
 line 531, in __call__ (Object: Artist_add) IndexError: (see above)



 So we tried a different approach:

 return self.artists.manage_addProduct['Artist'].Artist_add(_.None,REQUEST)

 This solved the problem with REQUEST not being available, we can view its
 variables now, but now we can't
 access Artist.createInObjectManager. The error message we get is:
 "NameError Artist".

 So, I guess the question is: how can I add a ZClass instance
 programmatically from a PythonMethod based on data in the
 REQUEST object?

 Additional version info:
 Zope 2.2.4
 PythonMethod 0-1-7
 LoginManager 0-8-8b1
 ZPatterns 0-4-3b1
 DataSkinAddons 0-0-2
 Membership 0.7.8



 Thanks in advance,


 Alexander.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] Re: [Zope-PTK] Fw: PythonMethods and ZClass generation problem

2001-01-18 Thread Alexander Limi

From: "Shane Hathaway" [EMAIL PROTECTED]

 You were *SO* close. :-)

 I think you want this:

 return self.artists.manage_addProduct['Artist'].Artist_add(_.None,_)

 to be like this:

 return
 self.artists.manage_addProduct['Artist'].Artist_add(_.None,_,REQUEST)

Tried both of those already. When testing it, and Artist_add contains
nothing but "dtml-var REQUEST" (so nothing else can be wrong), I get:

KeyError: REQUEST

and the traceback looks like this:

File string, line 41, in registerartist (Object:
ApplicationDefaultPermissions)
File /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 168, in __call__
(Object: Artist_add)
File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line 528, in
__call__ (Object: Artist_add) KeyError: (see above)


Thanks for you suggestions so far,


Alexander.



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] Two glaring omissions

2000-11-14 Thread Alexander Limi

Hi,

I've been working with Zope for almost two years now, and there are two
things that I feel is missing in the interface:

1. The ability to add a Base class after the class is created

2. The ability to rename properties after instances of the classes have
   been created (and have the data in those fields preserved)

Are there any technical reasons why these are not present? I know it is
possible to add base classes in retrospect via the hack described in

http://www.zope.org/Members/AlexR/ChangingBaseClasses

but are there plans for making this easier? 

As for #2, it is quite annoying and counter-productive not being able to
change a variable name that was decided a long time ago, or maybe by
others simply because there exist instantiated objects of that type.

Both of the above are pretty essential OO techniques (for me, at least),
and hinder my work quite a lot by not being there.

Any chance of these being fixed at all? Or are there reasons that I do not
know about that makes this impossible?


Regards,

-- 
Alexander Limi
[EMAIL PROTECTED]


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope] How small a box can zope run on?

2000-10-25 Thread Alexander Limi

Hi,

Just a quick question:

We are building some device controller software and to control those we have
a normal 486 with 24MB RAM running linux. Has anybody tried running zope on
such a modest setup? There is only going to be one or two users connected to
Zope at once, so we don't need much performance in terms of page views per
second :)

Cheers,


Alexander.




___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Message exchange between distributed python code

2000-10-17 Thread Alexander Limi

Gents,

I am currently writing some software in python that is spread over several
different computers. These small programs should be able to communicate
with each other and send messages that contain instructions between
themselves.

I am wrapping this up in Zope for the time being (therefore the post to
this list :), but in essence this is not directly Zope related as much as
a Python decision.

One of my prerequisites is that the messaging should be as portable as
possible. The message format will likely end up being XML-based, but what
I want to know is what kind of message exchange methods are there that are
portable and easy to move to another programming language if need be?

You see, I am prototyping this thing in python, but some parts may be
rewritten in C later on. All POSIX features will be available, so maybe I
can use some of that?

The suggestions I've gotten so far is:
-SMTP
 (use SMTP to transfer a mail to the other machine containing the
  message, handle the mail with procmail and write it to a file that the
  other program can read)
-XML-RPC
 (is this lightweight enough? and is it easy to handle, and does it take
  care of the transport of the message too? What about C clients/servers?)

I think what I want is maybe something like Java's RMI, but it should work
with both Python and C. Being able to send messages between programs
without too much hassle or overhead while still remaining portable is my
goal.

Any advice appreciated. And please CC me, as I'm not on the list at the
moment.

-- 
Alexander Limi
[EMAIL PROTECTED]



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Upload applet in Java/JPython

2000-08-03 Thread Alexander Limi

Hi,

I tried posting this to the comp.lang.pyton group, but I never got any
answer, so I was hoping that you friendly Zope folks could offer me some
advice.

The setting is this:

My web site collects big files (typically 2-5 MB) that the users
upload via HTTP POST (yeah, I know - FTP is nicer, but not when you
have untrusted users). When a person submits his file, he has to wait
20-30 minutes for the upload to complete, without any visual feedback
at all.

This is clearly not desirable. What I imagine would be nice, is a
small applet to handle the file and provide the user with a visual
feedback on the progress of the upload. Just a simple progress bar.

What I want to know is: Has this already been written by someone?
Either in Java or JPython? If so, could you please provide me with a
URL?

If not, is this a big task? I am a Python newbie, and I haven't
touched JPython at all.

All help appreciated.


Alexander.



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Lines data type possible in boolean OR's?

2000-07-26 Thread Alexander Limi


- Original Message -
From: "Martijn Pieters" [EMAIL PROTECTED]

 On Mon, Jul 24, 2000 at 11:56:01PM +0200, Alexander Limi wrote:
  I have a small problem. When I use the lines data type in OR statements,
I
  get an
 
  Error Type: TypeError
  Error Value: bad operand type(s) for |
 
  I've used them earlier on integers, like this:
 
  dtml-if "cabinDouble | cabinTwin | cabinBunk | cabinPullman"
 
  and it works fine. When I try the same with other data types, like this:
 
  dtml-if "toy | additionalToys"
 
  where "toy" is a "multiple select" type and "additionalToys" is a
"lines"
  type. Can anyone provide me with some hints on what to do to get it
working
  the way I want? Is typecasting necessary?

 A pipe symbol in python ('|') is a bitwise 'or', so it works on integers
yes.
 I assume you want to to a boolean 'or', wich in python is the keyword
'or':

I figured that out after a while, but the original problem remained: The
Lines type does not evaluate to FALSE in boolean expressions, even when
empty.

Empty lines are contain [''], so I have to use a string.join() to get it to
be '', which evaluates to false.

I know lines is a set of some sort, but shouldn't it evaluate to FALSE in
boolean expressions anyway? Is there a reason why it doesn't?

--
Alexander Limi
[EMAIL PROTECTED]




___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Lines data type possible in boolean OR's?

2000-07-24 Thread Alexander Limi

Hi,

I have a small problem. When I use the lines data type in OR statements, I
get an

Error Type: TypeError
Error Value: bad operand type(s) for |

I've used them earlier on integers, like this:

dtml-if "cabinDouble | cabinTwin | cabinBunk | cabinPullman"

and it works fine. When I try the same with other data types, like this:

dtml-if "toy | additionalToys"

where "toy" is a "multiple select" type and "additionalToys" is a "lines"
type. Can anyone provide me with some hints on what to do to get it working
the way I want? Is typecasting necessary?

Thanks in advance.


Alexander.
PS: please CC me if you answer :)



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] PIL on Win32 for the Photo Product

2000-07-16 Thread Alexander Limi

Hi,

I need PIL in my Zope install to get the Photo product working. I downloaded
the win32 version of PIL from http://starship.python.net/crew/da/PIL/ and
tried unpacking it in the bin\python dir of my Zope install. Photo reports
the following:

Traceback (innermost last):
  File "C:\PROGRA~1\Zope\lib\python\OFS\Application.py", line 387, in
import_products
product=__import__(pname, global_dict, global_dict, silly)
  File "C:\Program Files\Zope\lib\python\Products\Photo\__init__.py", line
42, in ?
import Photo
  File "C:\Program Files\Zope\lib\python\Products\Photo\Photo.py", line 87,
in ?
from PIL.Imageimport BICUBIC, BILINEAR, NEAREST
ImportError: No module named PIL.Image

The web pages say something about a pil.pth file, I can't find that anywhere
in the archive either.

Can anybody give me some hints on what to do?


Alexander.


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Re: PIL on Win32 for the Photo Product

2000-07-16 Thread Alexander Limi

 The web pages say something about a pil.pth file, I can't find that
anywhere
 in the archive either.

Should of course have checked the Photo tarball for this... Got it working
two minutes after the mail was sent.

Sorry :)

Alexander.



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] ZCatalog counting?

2000-06-27 Thread Alexander Limi

Hi,

A presumably simple question:

Is there an easy way to count the number of occurences of a certain meta
type in a Catalog? E.g: I want a dtml snippet that outputs:

There are 123 DTML Documents in the Catalog.

I've browsed the howto's, but didn't find anything like this. Can anybody
offer me some assistance?

Thanks in advance,


Alexander.



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] ZDiscussions in classes?

2000-06-09 Thread Alexander Limi


 Do you have anonymous access turned off? (I.E. do you need a password
 to view anything?)

I can view the main artist page just fine.

 If you cancel the request, do you get a traceback
 pointing to something in the TreeTag file? If so, you may need to
 allow anonymous users to access content information for the
 discussions.

I get the following:

Unauthorized

You are not authorized to access this resource.
Username and password are not correct.

Traceback (innermost last):
  File D:\Programs\Zope\lib\python\ZPublisher\Publish.py, line 214, in
publish_module
  File D:\Programs\Zope\lib\python\ZPublisher\Publish.py, line 179, in
publish
  File D:\Programs\Zope\lib\python\ZPublisher\Publish.py, line 151, in
publish
  File D:\Programs\Zope\lib\python\ZPublisher\BaseRequest.py, line 446, in
traverse
  File D:\Programs\Zope\lib\python\ZPublisher\HTTPResponse.py, line 551, in
unauthorized
Unauthorized: (see above)

 I don't understand why this should be the case, and I couldn't
 debug it because I couldn't figure out what validate did.

But you get the same error? And it's supposed to (ie: not horribly bad
thinking on my part? :) be possible to do this?

--
Alexander Limi
[EMAIL PROTECTED]


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Two issues for Z2.2: XHTML malicious tags

2000-06-02 Thread Alexander Limi

Zopistas,

I have two issues that I think should be rectified before the 2.2 release. I
am not very up to date on the goings-on in the list, but a quick search gave
me little information on the following:

1. The HTML that Zope outputs is not very standards-compliant (XHTML 1.0) at
the moment. Tags like img / are rendered as IMG etc. I would like to
contribute to the cleanup work, but I am a relative newcomer to CVS. How can
I participate? Do I just check out the relevant files, modify them and then
get somebody that is authorized to review the files and put them back in the
CVS?

I am not a guru when it comes to Python, but I know enough to not mess up
things along the way :)

And just to clarify: I'm not talking about a rewrite of the Zope management
console here, that will work fine until the Mozilla version comes along - I
merely want to make sure that tags are lowercase and terminated, so pages
produced by Zope stand a chance when passing through the W3C validator. I
always write compliant code when I have the chance, but when using Zope this
is impossible, as the tags that are inserted invalidate the page anyway.

So, who do I bribe to have a shot at the CVS? :)

2. Malicious HTML tags - is anything being done here? Filtering of these is
one of the features Zope 2.2 really shouldn't go without. Most Zope sites
have user interaction in some way, and the concept of a post containing a
stray /html, or even worse - script-tags, destroying a page is totally
unacceptable IMHO. I'd just like to query what the status is on this, as I
think it is one of the most overlooked areas that are lacking in Zope.

I know Evan Simpson (malicious tags) and Christopher Petrilli (HTML quality
of zope) have been talking about this earlier, any comments?

I'm really looking forward to Zope 2.2, the alpha release looks good so far.
You guys rock :)

Regards,


Alexander Limi.


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )