[Zope] [ANN] Zope 2.8.1 final released

2005-08-10 Thread Andreas Jung


Hi all,

on behalf of Zope Corporation and the Zope community I am pleased to 
announce the release of Zope 2.8.1.  You can download Zope 2.8.1 from


 http://www.zope.org/Products/Zope/2.8.1/

Some new features of Zope 2.8:

  - ZODB 3.4 with MVCC (multi version concurrency control) support.
MVCC solves nearly every problem with ZODB read-conflict errors
which is very important for high-traffic Zope sites.

  - Extension Classes were rewritten as Python new-style classes making
all features of Python new-style classes available in Zope
objects. This includes support for cyclic garbage collection.

  - Integration of Zope 3 technologies through Five (see 
http://codespeak.net/z3/five/)



For more information on what is new in this release, see the
CHANGES.txt files for the release:

 http://www.zope.org/Products/Zope/2.8.1/CHANGES.txt

See also:

 http://www.zope.org/Wikis/DevSite/Projects/Zope2.8/OverView

Please bring all the bugs you have found to the Zope bugtracker:

  http://collector.zope.org/Zope":http://collector.zope.org/Zope

For more information on the available Zope releases, guidance for selecting
the right distribution and installation instructions, please see:

  http://www.plope.com/Books/2_7Edition/InstallingZope.stx

Please also keep in mind that Zope 2.8.1 requires Python 2.3.5. Zope 2.8.1
is not certified for any Python 2.4.x versions. So using Python 2.4 is 
neither recommended nor supported and any related questions or problems are 
likely to be ignored until 2.4 is an officially support Python version for 
Zope.


--
Andreas Jung(andreas at zopyx dot com)



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


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

2005-08-10 Thread Gabriel Genellina

At Tuesday 9/8/2005 16:25, Paul Winkler wrote:


>> Maybe I should not be playing with _p_serial,

Correct, you should not be.  All _p_ attributes are reserved
for use by the ZODB and applications should never mess with them.

>>  but how can I set the
>> object's last modification time? I want it to be in sync with an
>> external representation (stored in CVS).
>
> Set your very own attribute on the object that holds the modification
> time, and modify it at will.


But I need to track the modification time of *all* objects (folders, zpt, 
python scripts, instances of third-party installed products...).
I go back and forth from FileStorage to a filesystem representation (using 
APE) which is under CVS control.


Fortunately I've found a way to successfully modify _p_serial: just ignore 
the (fictitious) conflict. In fact, there is no real conflict since no data 
has been modified (and no other thread is running), just the timestamp was 
changed.


def ignoreConflict(self, oid, committedSerial, oldSerial, newpickle,
 committedData=''):
self._serial = oldSerial
return newpickle
from ZODB.FileStorage import FileStorage
FileStorage.tryToResolveConflict = ignoreConflict

Of course this script is run offline, with a single user accessing the 
database, and it works for this specific situation because I know there is 
no real conflict.



Gabriel Genellina
Softlab SRL 


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

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


Re: [Zope] ZODB BTrees File Storage error on start up

2005-08-10 Thread David Pratt
Hi Dieter. It is rather strange for sure.  The warning has appeared 
over the past couple of days. First day I removed what I thought might 
be a bad CMFBTree folder since it was last thing I remember working 
with from previous night to do with BTrees.  Then it appeared again - 
first restart of the day - it never appeared again that day even after 
a number of restarts. Received the error again this morning - first 
restart of day.  This time cleared the Data.fs.index and restarted. 
Again it did not appear again all day after a number of restarts. It 
almost makes me wonder if it is somehow related to automated backup 
since it appears consistently on the first restart of the day. Can this 
make any sense? Like the index is getting corrupted from backup.


The only other thing that I can think of at the moment is that I had 
some nested CMFBTreeFolders that were not registered properly 
registered in the types tool yet inside a CMFSite instance. These were 
added programmatically with manage_add. I don't know if this could 
result in this error.  In any case, I am resolving the types tool 
registration issue tonight and will see what happens tomorrow am.


I am restarting this zope several times a day since I am developing on 
it. I have been adding and removing many BTree folders since I am in 
process of building a product that will use these quite a bit. I have 
been running tests then removing CMFBTreeFolders, updating product, 
restarting, rerunning with changes, etc


In any case I will examine fsBtree as you have suggested if I see 
warning again tomorrow in my log. This is a relatively new CMF1.5.2 and 
Zope2.8.0 instance and the only server I have this combination on at 
the moment.


Regards,
David

On Wednesday, August 10, 2005, at 06:37 PM, Dieter Maurer wrote:


David Pratt wrote at 2005-8-8 11:11 -0300:

I just began receiving this error this morning in one of my event logs
on start up. It looks serious.

2005-08-08T08:49:26 WARNING ZODB.FileStorage Failed to load database
index: exceptions.AttributeError: type object 
'BTrees._fsBTree.fsBTree'

has no attribute '__basicnew__'

Can someone advise a course of action and what may have happened to
generate such an error. I use CMFBTreeFolders extensively in CMF. Many
thanks.


Mysterious:

"BTrees._fsBTree.fsBTree" should have a '__basicnew__'
attribute (like all 'ExtensionClass'es).

Try to import "fsBTree" in an interactive Python interpreter
and check it.


--
Dieter


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

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


Re: [Zope] BTree Folders questions

2005-08-10 Thread David Pratt
Hi Jens.  Thank you for your advice.  I am planning on contents of 
folders to be no more than 2000 items maximum and using CMFBTreeFolders 
for larger folders consistent with your recommendations.


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


I did not really understand the difference between a BTreeFolder2 and a 
CMFBTreeFolder since CMFBTreeFolder did not appear as content even 
though it is displayed as an option in Core Content  in ZMI.   So my 
content was appearing on the web but not visible in the portal as a 
folder. I guess I am wondering why isn't it ready to go by default as a 
core type in CMFDefault. It appears everything is there except 
registering in types tool.  My opinion is it would be really great if 
it were included as a core type (in the sense it is ready to go as the 
other types are). It could also remove confusion in ZMI that Core 
Content will produce content that is immediately recognized by the 
portal.  Many thanks.


Regards,
David

On Wednesday, August 10, 2005, at 07:38 PM, Jens Vagelpohl wrote:



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

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


I would use them with 100 and more items.


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


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


jens

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


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

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


Re: [Zope] BTree Folders questions

2005-08-10 Thread Jens Vagelpohl


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

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


I would use them with 100 and more items.


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


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


jens

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

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


Re: [Zope] ZODB BTrees File Storage error on start up

2005-08-10 Thread Dieter Maurer
David Pratt wrote at 2005-8-8 11:11 -0300:
>I just began receiving this error this morning in one of my event logs 
>on start up. It looks serious.
>
>2005-08-08T08:49:26 WARNING ZODB.FileStorage Failed to load database 
>index: exceptions.AttributeError: type object 'BTrees._fsBTree.fsBTree' 
>has no attribute '__basicnew__'
>
>Can someone advise a course of action and what may have happened to 
>generate such an error. I use CMFBTreeFolders extensively in CMF. Many 
>thanks.

Mysterious:

"BTrees._fsBTree.fsBTree" should have a '__basicnew__'
attribute (like all 'ExtensionClass'es).

Try to import "fsBTree" in an interactive Python interpreter
and check it.


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


Re: [Zope] REStructuredText and Title

2005-08-10 Thread Dieter Maurer
Justin Fletcher wrote at 2005-8-7 13:47 -0500:
>I am adding ReStructuredText documents through the ZMI and I noticed
>that I am unable to set the 'Title' attribute.  Am I missing something?

You miss that you must provide complete problem reports:

  What does "unable to set 'Title' attribute" mean?

  What is the 'Title' attribute?

  What happens when you try (exception? then we need the traceback!)
>When adding a document the 'ID' also shows up in the 'Title' section,
>and I can't find a way through the interface to change the 'Title'.

What is the "'Title' section"? Do you mean the HTML "title" element?

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


Re: [Zope] bad ZCatalog behavior

2005-08-10 Thread Dieter Maurer
Andy Altepeter wrote at 2005-8-8 08:15 -0500:
>There seems to be a problem with my ZCatalog, and it seems to be getting worse 
>as time goes by.
> ...
>  Module ZODB.Connection, line 562, in setstate
>  Module ZODB.Connection, line 601, in _set_ghost_state
>AttributeError: 'str' object has no attribute 'append'

In fact, this looks like a broken pickle in your ZODB storage (and
not like a ZCatalog problem).

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


Re: [Zope] howto i18n?

2005-08-10 Thread Dieter Maurer
Vlada Macek wrote at 2005-8-10 12:58 +0200:
>for now I use the Zope 2.7.5 tarball. I write freelance (not bound in a
>product) page template and wish it to be i18n'ed. I have appropriate
>tags inside and the domain set at the top. There is also Plone with its
>products in that instance.
>
>Where should I put the PO files, so the messages can be substituted?

Read the "i18n" HowTo on "plone.org".

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


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

2005-08-10 Thread Dieter Maurer
michael nt milne wrote at 2005-8-8 17:49 +0100:
> ...
>Are there any other database manager tools for the ZODB?

To do what?

There is a "Database Manager" in the "Control_Panel" -- but
(of course), the ZODB is very easy to manage.
That's why the "Manager" is so simple...

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


Re: [Zope] funny-looking events in the event.log

2005-08-10 Thread Chris McDonough
This typically is indicative of a user pressing their stop button on a
page before it has been fully downloaded.  I really should take time out
to figure out how to prevent it from logging this scary message, but in
the meantime it's assumed to be harmless.

- C



On Wed, 2005-08-10 at 17:38 -0400, Jim Abramson wrote:
> Just found these in the event log of a relatively low-traffic Zope 2.7.4
> instance.
> 
> Does this just seem like a local network connectivity issue or should I
> be concerned?  (If yes, any advice where to begin diagnosing this kind
> of a report?)
> 
> Thanks,
> Jim
> 
> 
> 2005-06-08T11:32:55 ERROR(200) ZServer uncaptured python exception,
> closing chan
> nel  0x42d2f66c c
> hannel#: 566 requests:> (socket.error:(110, 'Connection timed out')
> [/usr/local/
> Python-2.3.5/lib/python2.3/asynchat.py|handle_read|88]
> [/home/zope/Zope-2.7.4-0/
> lib/python/ZServer/medusa/http_server.py|recv|423]
> [/usr/local/Python-2.3.5/lib/
> python2.3/asyncore.py|recv|356])
> --
> 2005-06-10T14:14:32 ERROR(200) ZServer uncaptured python exception,
> closing chan
> nel  0x410ddb2c c
> hannel#: 635 requests:> (socket.error:(110, 'Connection timed out')
> [/usr/local/
> Python-2.3.5/lib/python2.3/asynchat.py|handle_read|88]
> [/home/zope/Zope-2.7.4-0/
> lib/python/ZServer/medusa/http_server.py|recv|423]
> [/usr/local/Python-2.3.5/lib/
> python2.3/asyncore.py|recv|356])
> --
> 2005-06-13T11:53:21 ERROR(200) ZServer uncaptured python exception,
> closing chan
> nel  0x410ecd4c c
> hannel#: 639 requests:> (socket.error:(110, 'Connection timed out')
> [/usr/local/
> Python-2.3.5/lib/python2.3/asynchat.py|handle_read|88]
> [/home/zope/Zope-2.7.4-0/
> lib/python/ZServer/medusa/http_server.py|recv|423]
> [/usr/local/Python-2.3.5/lib/
> python2.3/asyncore.py|recv|356])
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   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 maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   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] funny-looking events in the event.log

2005-08-10 Thread Jim Abramson
Just found these in the event log of a relatively low-traffic Zope 2.7.4
instance.

Does this just seem like a local network connectivity issue or should I
be concerned?  (If yes, any advice where to begin diagnosing this kind
of a report?)

Thanks,
Jim


2005-06-08T11:32:55 ERROR(200) ZServer uncaptured python exception,
closing chan
nel  (socket.error:(110, 'Connection timed out')
[/usr/local/
Python-2.3.5/lib/python2.3/asynchat.py|handle_read|88]
[/home/zope/Zope-2.7.4-0/
lib/python/ZServer/medusa/http_server.py|recv|423]
[/usr/local/Python-2.3.5/lib/
python2.3/asyncore.py|recv|356])
--
2005-06-10T14:14:32 ERROR(200) ZServer uncaptured python exception,
closing chan
nel  (socket.error:(110, 'Connection timed out')
[/usr/local/
Python-2.3.5/lib/python2.3/asynchat.py|handle_read|88]
[/home/zope/Zope-2.7.4-0/
lib/python/ZServer/medusa/http_server.py|recv|423]
[/usr/local/Python-2.3.5/lib/
python2.3/asyncore.py|recv|356])
--
2005-06-13T11:53:21 ERROR(200) ZServer uncaptured python exception,
closing chan
nel  (socket.error:(110, 'Connection timed out')
[/usr/local/
Python-2.3.5/lib/python2.3/asynchat.py|handle_read|88]
[/home/zope/Zope-2.7.4-0/
lib/python/ZServer/medusa/http_server.py|recv|423]
[/usr/local/Python-2.3.5/lib/
python2.3/asyncore.py|recv|356])
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Database Connections

2005-08-10 Thread Chris McDonough
There is probably a (real) RDB connection per Zope thread times the
number of database connection objects that are in use in your ZODB.  Or
something equally baffling. ;-)

- C

On Wed, 2005-08-10 at 16:41 -0400, Asad Habib wrote:
> Has anyone had problems with Zope hanging on to database connections? I am
> using MySQL with Zope and when I last checked there were 25 connections
> (both active and sleeping connections included). I only have 5
> Zope database objects so I don't know how so many connections were
> created. Any help would be greatly appreciated. Thanks.
> 
> - Asad
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   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 maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   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] BTree Folders questions

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


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


Regards,
David
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   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] Database Connections

2005-08-10 Thread Asad Habib
Has anyone had problems with Zope hanging on to database connections? I am
using MySQL with Zope and when I last checked there were 25 connections
(both active and sleeping connections included). I only have 5
Zope database objects so I don't know how so many connections were
created. Any help would be greatly appreciated. Thanks.

- Asad
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross 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: localhost:8080 not found on windows

2005-08-10 Thread Philip Kilner
Hi Michael,

michael nt milne wrote:
> I've even tried using the machine's local IP but that doesn't work in
> the same way that localhost doesn't. I've installed Apache now as well
> so as to route requests through that to Zope.
> 
> I'm going to be using the same IP address that the webmail exchange
> service uses. It uses mail.sbcscot.com  so I
> guess if I have http://plone.sbcscot.com then I could tell Apache to
> route that to Zope? How would I tell IIS or ISA not to listen to that
> domain? Meanwhile I noticed on installing Apache that it failed to bind
> to port 80!
> 

Well, you /can't/ tell IIS not to listen on that "domain" - it listens
at a port on an IP. The host header translation for virtual hosting can
only happen if it can field the request in the first place (e.g. if
there are no clashes at that port/IP). If you have a single interface,
you are stuck using non-standard ports to avoid clashes. Apache will not
bind to port 80 either because you have http://mail.sbcscot.com bound to
the same port & IP, or because of the "socket pooling" nonsense if you
have a separate IP.

I would not touch ISA with a barge-pole if I had a choice - but assuming
you are on SBS and are/could be behind a separate firewall, I would: -

- Leave Zope/Plone on 8080

- Change the port for webmail (and any other IIS stuff) to a different
high port (e.g. 9080?), so it is no longer clashing with Apache.

- Disable "socket pooling". 

- Run Apache on port 80

- Use virtual hosts with rewrite rules in the Apache .conf to pass
requests to your Zope and Webmail sites.

You could probably do something similar with ISA server (I do, but not
on the same box as IIS and Zope/Plone), but I'd rather not even think
about that...


-- 

Regards,

PhilK

Email: [EMAIL PROTECTED]
PGP Public key: http://www.xfr.co.uk
Voicemail & Facsimile: 07092 070518

"You'll find that one part's sweet and one part's tart:
say where the sweetness and the sourness start."
- Tony Harrison
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Changing Properties With ZPT

2005-08-10 Thread Sascha Ottolski
Am Mittwoch, 10. August 2005 16:31 schrieb Dyyryath:
> An example is probably in order. Take the following code:
>
> TITLE HERE
> TITLE HERE

why not using the same name in the python expression? :-)

TITLE HERE

just beware that the path expression template/title might do some magic for 
you, like calling a method, or accessing a dictionary etc. if in doubt, you 
can always do

TITLE HERE


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


[Zope] Zope service being shut down automatically on Windows

2005-08-10 Thread michael nt milne
Does anyone have experience of their Zope/Plone instance being closed
down mysteriously on windows XP or other windows platforms. A microsoft
demon? I keep having to re-start it.

Michael
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross 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: localhost:8080 not found on windows

2005-08-10 Thread michael nt milne
Hi

I've even tried using the machine's local IP but that doesn't work in
the same way that localhost doesn't. I've installed Apache now as well
so as to route requests through that to Zope.

I'm going to be using the same IP address that the webmail exchange
service uses. It uses mail.sbcscot.com so I guess if I have
http://plone.sbcscot.com then I could tell Apache to route that to
Zope? How would I tell IIS or ISA not to listen to that domain?
Meanwhile I noticed on installing Apache that it failed to bind to port
80!On 8/10/05, Philip Kilner <[EMAIL PROTECTED]> wrote:
Hi Michael,michael nt milne wrote:> Thanks for the help here. I'm calling in a support engineer to try and> get it up and running. Firewall, router issues involved. Strange> though that localhost doesn't work. Because that wouldn't go through
> the firewall/router.>I despise ISA Server with a passion - have just spent a couple of hourshunting down a silly mistake in one of my rules in the 2K3 version whichwould have stuck out like a sore thumb in an Apache .conf file.
I wouldn't make any assumptions about what it might block, up to andincluding localhost - it bites me time after time, and all I ever haveto do is add web publishing rules, which that /should/ be simple enough.
Problem is, it's all hidden in tabbed dialogues where you can't see thewhole rule at once...> I've also noticed that something shuts down pythonservice.exe program> which is strange.
>Now that /is/ a new one on me - but would certainly explain your problem...Good luck!--Regards,PhilKEmail: [EMAIL PROTECTED]PGP Public key: 
http://www.xfr.co.ukVoicemail & Facsimile: 07092 070518"You'll find that one part's sweet and one part's tart:say where the sweetness and the sourness start."
- Tony Harrison
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Changing Properties With ZPT

2005-08-10 Thread Dyyryath
Thanks for the reply, Andreas.

Actually, I probably didn't properly explain my question. I do realize
that the template is an object and that all I need to do is access the
template's API to modify it's properties (though, I admit I'm a newbie
here). 

My problem is that the only way I can find to access the template object
is through ZPT's built-in variable 'template'. Since I'd like to change
the property, it seems like I'll need to use a python line that uses the
template's manage_changeProperties() method. I'm just not sure what the
python equivalent of the ZPT 'template' variable is.

An example is probably in order. Take the following code:

TITLE HERE
TITLE HERE

The first line does what I'd like it to do, it returns the 'title'
property of the template.

The second line doesn't. It returns the 'title' property of the
template's container.

How do I make the second line do the same thing as the first line. If
someone can give me that, I'll know how to do the rest.



Thanks for the On Wed, 2005-08-10 at 09:00 +0200, Andreas Jung wrote:
> 
> --On 9. August 2005 21:37:11 -0400 Dyyryath <[EMAIL PROTECTED]> 
> wrote: 
> 
> > I'm trying to figure out how I can change the properties of a template
> > with ZPT. For example, let's say I've got a Page Template with a
> > property called 'name' and I want to change it in response to something
> > in the HTTP request:
> >
> > 
> >   SOME CODE TO CHANGE THE PROPERTY TO EQUAL context.REQUEST['name']
> > 
> >
> > I haven't seen anyway to do this with ZPT so I'm assuming that I'll need
> > to use a python script of some sort, but I'm not sure how to access the
> > template's properties without hardcoding the template's name.
> >
> 
> Your question indicates that you have not understand yet that everything in 
> Zope is an object with a unique API. Objects can be modified by calling 
> their API from within ZPT, PythonScripts, external methods, product code or 
> from wherever as long as the Zope security allows it. This means it makes 
> no difference to modify an object from a PythonScript or from a ZPT *as 
> long* as you know its API. What you want is provided by the PropertyManager 
> API (see Zope Book Appendix B -> PropertyManager).
> 
> -aj

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


Re: [Zope] fsrecover.py won't pack

2005-08-10 Thread Andy Altepeter
Hi Tim,

Thank you for your response.  fsrefs.py raised the same error I reported 
earlier about unpickling.  I ended up:
1) Creating a new instance_home using zope-2.5.0-final
2) using zopectl debug connected to the bad database, I exported all my 
objects.  For folders that couldn't be exported, I started 'drilling down' 
until I found the object that was causing problems.  There were about 5 such 
objects in my database.
 - Some objects (folderish) could be exported, but then would raise a POSKey 
error upon import, so I drilled down in those folders as well.
3) I imported each .zexp into the new database.

This process was time consuming, but it appears to have recreated the ZODB in 
a sane state.  I think it's time to look into using repozo for backups ;-)

Andy

On Monday 08 August 2005 05:45 pm, Tim Peters wrote:
> [Andy Altepeter]
>
> > I ran fsrecover.py on a copy of my Data.fs.  It found no errors, but then
> > when it attempted to pack the file, it raised an unpickleable error, with
> > this traceback:
>
> ...
>
> >  File "/export1/Zope-2.7.5-final/lib/python/ZODB/referencesf.py", line
> > 38, in referencesf
> >raise ValueError, 'Error unpickling, %s' % p
> > ValueError: Error unpickling, and the rest is presumably the pickle.
> >
> > I receive this same error when trying to pack using the ZMI.  Any idea
> > what's going on?
>
> It suggests data corruption in your Data.fs file (assuming you're
> using FileStorage).  Please read this for background info:
>
> http://zope.org/Wikis/ZODB/FileStorageBackup
>
> Because fsrecover.py completed without error, best guess is that
> fstest.py (described in the link above) would also complete without
> error.  However, neither of those can detect "higher-level" corruption
> inside serialized object state (see the link for more words).  Running
> fsrefs.py (see the link again) can identify most such corruption.  So
> run it and see what it says.  There is no wholly safe and automatic
> way to recover from frsrefs.py-level corruption (short of reverting to
> a good backup), so don't expect this to go easily.
>
> Note that better versions of these tools exist in more recent versions
> of ZODB (IIRC, you said you were running Zope-2.7.2, which corresponds
> to ZODB 3.2.3 -- ZODB 3.2.9 is the current production 3.2 release).
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross 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: localhost:8080 not found on windows

2005-08-10 Thread Philip Kilner
Hi Michael,

michael nt milne wrote:
> Thanks for the help here. I'm calling in a support engineer to try and
> get it up and running. Firewall, router issues involved. Strange
> though that localhost doesn't work. Because that wouldn't go through
> the firewall/router.
> 

I despise ISA Server with a passion - have just spent a couple of hours
hunting down a silly mistake in one of my rules in the 2K3 version which
would have stuck out like a sore thumb in an Apache .conf file.

I wouldn't make any assumptions about what it might block, up to and
including localhost - it bites me time after time, and all I ever have
to do is add web publishing rules, which that /should/ be simple enough.
Problem is, it's all hidden in tabbed dialogues where you can't see the
whole rule at once...

> I've also noticed that something shuts down pythonservice.exe program
> which is strange.
> 

Now that /is/ a new one on me - but would certainly explain your problem...

Good luck!

-- 

Regards,

PhilK

Email: [EMAIL PROTECTED]
PGP Public key: http://www.xfr.co.uk
Voicemail & Facsimile: 07092 070518

"You'll find that one part's sweet and one part's tart:
say where the sweetness and the sourness start."
- Tony Harrison
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   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: howto i18n?

2005-08-10 Thread Josef Meile

Hi Vlada,


for now I use the Zope 2.7.5 tarball. I write freelance (not bound in a
product) page template and wish it to be i18n'ed. I have appropriate
tags inside and the domain set at the top. There is also Plone with its
products in that instance.

Where should I put the PO files, so the messages can be substituted?

Normally you have to put them inside a i18n folder located in your
product tree. However, according to your message, you don't have a
python product, so, I guess, you have to look for the plone's i18n
folder and put your PO files there. The only problem I see here is that
you have to remmember it every time you update plone.

I'm not sure if this would work: you could try to create a dummy folder,
let's say MyTranslations, inside the Products folder of your instance.
Then create an empty __init__.py file and add a 18n folder to put your
PO files.

Regards,
Josef

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

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


Re: [Zope] Streaming files

2005-08-10 Thread Andreas Jung



--On 10. August 2005 21:40:43 +0800 "Sinang, Danny" <[EMAIL PROTECTED]> 
wrote:



Dear List,

Am a newbie so please bear with me.

I need Zope to stream files to my users when they click on a link.



What means "streaming" for you? REQUEST.RESPONSE.write(data) write the
passed data as part of the HTTP response back to the client. You might also 
look at the filestream_iterator implementation in Zope 2.7.X


-aj

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


[Zope] Streaming files

2005-08-10 Thread Sinang, Danny



Dear 
List,
 
Am a newbie so 
please bear with me. 
 
I need Zope to 
stream files to my users when they click on a link.
 
Exactly how is this 
done ? Is it by the use of the Request.Write () method ? If so, can you 
give me sample code and some reference links ?
 
Thanks.
Danny
 
 
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross 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 add LocalFS products into zope 2.7.0

2005-08-10 Thread Andreas Jung



--On 10. August 2005 13:27:14 +0100 praba kar <[EMAIL PROTECTED]> wrote:


Dear All,
  If any one using zope 2.7.0 kindly let me know
how to add LocalFS into zope. When I try to add
this LocalFS into zope instance directory having
products directory. I have received lot of errors





There is hacked LocalFS version for 2.7.X on easyleading.org somewhere.
Btw. 2.7.0 is f*cking old.

-aj

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


[Zope] Re: localhost:8080 not found on windows

2005-08-10 Thread michael nt milne
Thanks for the help here. I'm calling in a support engineer to try and
get it up and running. Firewall, router issues involved. Strange
though that localhost doesn't work. Because that wouldn't go through
the firewall/router.

I've also noticed that something shuts down pythonservice.exe program
which is strange.

On 8/9/05, Philip Kilner <[EMAIL PROTECTED]> wrote:
> Hi Michael,
> 
> michael nt milne wrote:
> > Ok, thanks. Yes, Apache would be much better to route traffic through.
> > And also it looks like a complete pain to try and route traffic
> > through IIS. Is Apache for windows good? I only have experience of it
> > on UNIX>
> >
> 
> Works fine - once it's up and running and you are looking at the .conf
> file, you will probably barely notice the difference.
> 
> > Since I am not expecting very high traffic for my site at first I am
> > going to use the Zope server at first. My head is hurting too much
> > just now!
> >
> 
> Understood!
> 
> > By the way do you have any experience of altering the zope database or
> > adding fields to the registration process on Plone etc? Seems a wee
> > bit tricky and a client wants extra fields etc.
> >
> 
> That's one for the Plone list - but there is now a release candidate out
> for Plone 2.1, and I understand such things are simpler in that version.
> There may be an existing CMF/Plone product that does what you want for
> that matter.
> 
> 
> --
> 
> Regards,
> 
> PhilK
> 
> Email: [EMAIL PROTECTED]
> PGP Public key: http://www.xfr.co.uk
> Voicemail & Facsimile: 07092 070518
> 
> "You'll find that one part's sweet and one part's tart:
> say where the sweetness and the sourness start."
> - Tony Harrison
>
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   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] how add LocalFS products into zope 2.7.0

2005-08-10 Thread praba kar
Dear All,
  If any one using zope 2.7.0 kindly let me know
how to add LocalFS into zope. When I try to add
this LocalFS into zope instance directory having
products directory. I have received lot of errors


regards
Prabahar








Send a rakhi to your brother, buy gifts and win attractive prizes. Log on to 
http://in.promos.yahoo.com/rakhi/index.html
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   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] howto i18n?

2005-08-10 Thread Vlada Macek
Hi,

for now I use the Zope 2.7.5 tarball. I write freelance (not bound in a
product) page template and wish it to be i18n'ed. I have appropriate
tags inside and the domain set at the top. There is also Plone with its
products in that instance.

Where should I put the PO files, so the messages can be substituted?

Thanks.

-- 

\//\/\
(Sometimes credited as 1494 F8DD 6379 4CD7 E7E3 1FC9 D750 4243 1F05 9424.)

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   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: Need to find RSS product

2005-08-10 Thread jodok batlogg

Leticia Larrosa wrote:

Hi all:

Any recommendation for a RSS product. Indeed what i want is a client to 
obtain information from a RSS server and present this in a page.


try CMFSin

jodok


Thanks in advanced !!!




___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   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 maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

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


Re: [Zope] Changing Properties With ZPT

2005-08-10 Thread Andreas Jung



--On 9. August 2005 21:37:11 -0400 Dyyryath <[EMAIL PROTECTED]> 
wrote:



I'm trying to figure out how I can change the properties of a template
with ZPT. For example, let's say I've got a Page Template with a
property called 'name' and I want to change it in response to something
in the HTTP request:


  SOME CODE TO CHANGE THE PROPERTY TO EQUAL context.REQUEST['name']


I haven't seen anyway to do this with ZPT so I'm assuming that I'll need
to use a python script of some sort, but I'm not sure how to access the
template's properties without hardcoding the template's name.



Your question indicates that you have not understand yet that everything in 
Zope is an object with a unique API. Objects can be modified by calling 
their API from within ZPT, PythonScripts, external methods, product code or 
from wherever as long as the Zope security allows it. This means it makes 
no difference to modify an object from a PythonScript or from a ZPT *as 
long* as you know its API. What you want is provided by the PropertyManager 
API (see Zope Book Appendix B -> PropertyManager).


-aj

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