Re: [Zope] _p_resolveConflict not called on conflict

2007-08-08 Thread Chris Withers

Martijn Pieters wrote:

See the Caveats and Dangers section in:

  
http://svn.zope.org/ZODB/trunk/src/ZODB/ConflictResolution.txt?rev=77078view=markup

Conflict Resolution is a feature of a ZODB storage, and as the storage
is the responsibility of the ZEO server, takes place there.


We, not quite, I suspect ;-)

If the conflict occurs between two threads on one app server, then I 
would expect conflict resolution to happen on the app server and not the 
storage...


cheers,

Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   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: _p_resolveConflict not called on conflict

2007-08-08 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chris Withers wrote:
 Martijn Pieters wrote:
 See the Caveats and Dangers section in:

   
 http://svn.zope.org/ZODB/trunk/src/ZODB/ConflictResolution.txt?rev=77078view=markup

 Conflict Resolution is a feature of a ZODB storage, and as the storage
 is the responsibility of the ZEO server, takes place there.
 
 We, not quite, I suspect ;-)
 
 If the conflict occurs between two threads on one app server, then I 
 would expect conflict resolution to happen on the app server and not the 
 storage...

I don't know how you calibrate your expectations, Chris, but conflict
resolution is a property of (some) *storages*;  the connectoins in
application servers have nothing to do with it.  For objects served from
a ZEO storage, conflict resolution is only possible if:

  - The underlying storage is conflict resolving (FileStorage is;  none
of the others which ship with ZODB are).

  - The storage server can import the class of the object under
conflict (this is why the BTrees code ships with ZODB, actually,
so that the storage server can use its conflict resolution hooks).

Installing the products containing application-defined conflict
resolution on the storage server is the only way to enable that conflict
resolution in a ZEO-backed deployment.


Tres.
- --
===
Tres Seaver  +1 540-429-0999  [EMAIL PROTECTED]
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGudCc+gerLs4ltQ4RAp+kAKCDPFvgzidIJTwnlyqlJfY3qnhqxwCgm9BG
+/YxWeQDRNw98dWYP1eJ/zs=
=Odf9
-END 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] Re: _p_resolveConflict not called on conflict

2007-08-08 Thread Joachim Schmitz

Tres Seaver schrieb:

I don't know how you calibrate your expectations, Chris, but conflict
resolution is a property of (some) *storages*;  the connectoins in
application servers have nothing to do with it.  For objects served from
a ZEO storage, conflict resolution is only possible if:

  - The underlying storage is conflict resolving (FileStorage is;  none
of the others which ship with ZODB are).

  - The storage server can import the class of the object under
conflict (this is why the BTrees code ships with ZODB, actually,
so that the storage server can use its conflict resolution hooks).

Installing the products containing application-defined conflict
resolution on the storage server is the only way to enable that conflict
resolution in a ZEO-backed deployment.

As a side-note: this should be mentioned in the README of the 
QueueCatalog, there is a _p_resolveConflict defined.




--

Gruß Joachim

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   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] CMF 2.1.0 released

2007-08-08 Thread Jens Vagelpohl

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

The CMF developer community is hereby announcing the release of CMF
version 2.1.0.

What is the CMF?

  The Zope Content Management Framework provides a set of services and
  content objects useful for building highly dynamic, content-oriented
  portal sites. The CMF provides the foundation for popular software
  packages such as Plone. It is intended to be easily customizable, in
  terms of both the types of content used and the policies and services
  it provides.

Where do I get it?

  For release files, change logs, installation instructions and more
  please visit http://www.zope.org/Products/CMF/CMF-2.1.0.

  Roadmap and release information can be found at
  http://www.zope.org/Products/CMF/docs/roadmap.

  The CMF mailing list can be reached at the [EMAIL PROTECTED] address,
  to sign up please visit http://mail.zope.org/mailman/listinfo/zope- 
cmf.


  Please file bug reports, feature requests or suggestions in the CMF
  bug collector at http://www.zope.org/Collectors/CMF .

What has changed since the last release?

  New Features

- PortalFolder: Enabled 'Components' ZMI tab.
  This GenericSetup tab allows to inspect and edit component  
registrations.


  Bug Fixes

- Fixed all componentregistry.xml files to use plain object  
paths and strip
  and slashes. GenericSetup does only support registering  
objects which are

  in the site root.

- Allow email addresses with all-numeric domain names. The RFCs  
do not

  support them but they do exist.
  (http://dev.plone.org/plone/ticket/6773)


Jens Vagelpohl


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

iD8DBQFGugWYRAx5nvEhZLIRAjnSAJ4z5fR/QkeJHE97cqIiIe7DcEVJ/gCbBrso
q1IGLyfzuApQWsJRnaLphto=
=MKvj
-END 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] Who wants an excel report generator?

2007-08-08 Thread rieh25

It generates herarchical reports, (master-detail-detail from detail,etc...)

Download from http://zapwiz.objectis.net/Main/Archivos/Utilidades.zexp

Once you installed Utilidades.zexp, go to
Excel/ReportesExcel/Tipo_Jerarquia/prueba_py

That script generates the resulting excel file, according to the parameter
passed to crea_paneles()
-- 
View this message in context: 
http://www.nabble.com/Who-wants-an-excel-report-generator--tf4238606.html#a12060429
Sent from the Zope - General mailing list archive at Nabble.com.

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   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] Who wants an excel report generator?

2007-08-08 Thread rieh25

It also needs a template (excel xml file), which must be constructed in the
way shown by Plantilla1_txt. Open Plantilla1_txt (rename it as Plantilla.xml
and open it with Excel) so that you can see how the template must be
defined.
-- 
View this message in context: 
http://www.nabble.com/Who-wants-an-excel-report-generator--tf4238606.html#a12060589
Sent from the Zope - General mailing list archive at Nabble.com.

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   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] SOAP - Integration?

2007-08-08 Thread rieh25

External method for Zope 2.7.5

import sys, httplib

def envia_mensaje(m):

  #construct and send the header


  if m['tipo'] == 'HTTP': webservice = httplib.HTTP(m['pagina'], 80)
  elif m['tipo'] == 'HTTPS': webservice = httplib.HTTPS(m['pagina'], 443)
  webservice.putrequest(POST, m['post'])
  webservice.putheader(Host, m['host'])
  webservice.putheader(Content-type, m['content-type'])
  webservice.putheader(Content-length, %d % len(m['mensaje']))
  webservice.putheader(SOAPAction, m['SOAPAction'])


  webservice.endheaders()

  webservice.send(m['mensaje'])

  # get the response

  statuscode, statusmessage, header = webservice.getreply()

  r = {}
  r['Response'] = {'statuscode': statuscode, 'statusmessage': statusmessage}
  r['header'] = header
  r['res'] = webservice.getfile().read()
  return r
-- 
View this message in context: 
http://www.nabble.com/SOAP---Integration--tf4211042.html#a12061157
Sent from the Zope - General mailing list archive at Nabble.com.

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   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] Pierugo Massolo/IT/ITC/ALSTOM is out of the office.

2007-08-08 Thread pierugo . massolo

I will be out of the office starting  08-08-2007 and will not return until
27-08-2007.
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   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] AttributeError: _get_filename

2007-08-08 Thread Garito
Hi!
I try to use Photo Folder 1.3.1 on a Zope 2.9.6 but when I try to upload a
photo Zope raise's this error:

Traceback (innermost last):
  Module ZPublisher.Publish, line 115, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 41, in call_object
  Module Products.Photo.Photo, line 754, in manage_addPhoto
  Module OFS.ObjectManager, line 333, in _setObject
  Module zope.event, line 23, in notify
  Module zope.app.event.dispatching, line 66, in dispatch
  Module zope.component, line 181, in subscribers
  Module zope.component.site, line 89, in subscribers
  Module zope.interface.adapter, line 481, in subscribers
  Module zope.app.event.objectevent, line 192, in objectEventNotify
  Module zope.component, line 181, in subscribers
  Module zope.component.site, line 89, in subscribers
  Module zope.interface.adapter, line 481, in subscribers
  Module OFS.subscribers, line 114, in dispatchObjectMovedEvent
  Module OFS.subscribers, line 137, in callManageAfterAdd
  Module Products.Photo.Photo, line 697, in manage_afterAdd
  Module Products.Photo.Photo, line 375, in imagecomment
AttributeError: _get_filename

Any one could help me, please?

Thanks!

-- 
Mis Cosas
http://blogs.sistes.net/Garito
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   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] Trouble migrating from Zope 2.5.x to Zope 2.9.x

2007-08-08 Thread Doug Morse
Hello Fellow Zopers,

I'm trying to migrate an older Zope installation (2.5.x) to Zope 2.9 and I'm
having some trouble.  I can mount the old ZODB in the new installation -- it
shows up under the database control panel with the correct size (4.4M) --
but it appears to be empty.  By empty, I mean there are no folders or
objects present when I view the mount point using the ZMI, and I get
Resource Not Found errors when trying to view object I know to be there.
I'm not getting any error messages within the ZMI or in the events.log file
regarding problems with the older Data.fs file or mounting it.

I'm wondering if there's some sort of upgrading of the ZODB file I need to
perform?  Any help with this would be MOST appreciated, as I'm not turning
up anything in the docs, with google, or any other means I can think of, and
I need to get this site migrated.

Just for completeness: The only thing different about the new Zope
installation is that the old Data.fs file is being mounted within Zope under
a subdirectory (e.g., /sitename) instead of the root directory (i.e.,
/). There's a new ZODB mounted at the root directory, and several other
new ZODBs mounted in other subdirectories for new sites -- they all
work fine but also were created using Zope 2.9, not Zope 2.5.

Thanks!
Doug
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   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-Checkins] SVN: Zope/branches/philikon-aq/lib/python/Products/Five/browser/__init__.py Removed debugging code.

2007-08-08 Thread Hanno Schlichting
Log message for revision 78715:
  Removed debugging code.

Changed:
  U   Zope/branches/philikon-aq/lib/python/Products/Five/browser/__init__.py

-=-
Modified: Zope/branches/philikon-aq/lib/python/Products/Five/browser/__init__.py
===
--- Zope/branches/philikon-aq/lib/python/Products/Five/browser/__init__.py  
2007-08-08 17:52:14 UTC (rev 78714)
+++ Zope/branches/philikon-aq/lib/python/Products/Five/browser/__init__.py  
2007-08-08 20:43:25 UTC (rev 78715)
@@ -23,29 +23,11 @@
 # BBB for code that expects BrowserView to still inherit from
 # Acquisition.Explicit.
 
-# counter = 0
-
 def __of__(self, context):
 # Technically this isn't in line with the way Acquisition's
-# __of__ works.  With Acquisition, you get a wrapper around
+# __of__ works. With Acquisition, you get a wrapper around
 # the original object and only that wrapper's parent is the
-# new context.  Here we change the original object.
-
-# XXX The first segfault happens in form.tests.forms.txt in the first
-# line of the Widget Overrides chapter (line 154).
-
-# What causes it is:
-
-# ../zope2/lib/python/Zope2/App/startup.py(199)__call__()
-# - log = aq_acquire(published, '__error_log__', containment=1)
-
-# Which causes an infinite loop :(
-
-# self.__parent__ = context  # ugh. segfault!
-# self.counter = self.counter + 1
-# if self.counter  10:
-# import pdb; pdb.set_trace()
-
+# new context.
 return self
 
 # Classes which are still based on Acquisition and access

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


[Zope-dev] Zope Tests: 5 OK

2007-08-08 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list.
Period Tue Aug  7 12:00:00 2007 UTC to Wed Aug  8 12:00:00 2007 UTC.
There were 5 messages: 5 from Zope Unit Tests.


Tests passed OK
---

Subject: OK : Zope-2.7 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Tue Aug  7 20:53:44 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-August/008152.html

Subject: OK : Zope-2.8 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Tue Aug  7 20:55:15 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-August/008153.html

Subject: OK : Zope-2.9 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Tue Aug  7 20:56:45 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-August/008154.html

Subject: OK : Zope-2.10 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Tue Aug  7 20:58:16 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-August/008155.html

Subject: OK : Zope-trunk Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Tue Aug  7 20:59:47 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-August/008156.html

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