Re: [Zope] Information about Zope 3.2

2006-06-07 Thread John Huttley



Lennart Regebro wrote:

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

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


Answer: Yes.
:-)


I disagree.

Zope 3 came out 2004-ish and even now there no support for connection to 
Corporate databases via ODBC

on the windows platform.

You can't even buy it from egenix.

That makes its a non-starter for me.

--John
___
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] Document parameters as part of a URL

2006-06-07 Thread Peter Bengtsson

Well, you could maybe create a new type of DTML Method called Clear
DTML Method which would in principle look something like this:

from zope.somewhere import DTMLMethod
class ClearDTMLMethod(DTMLMethod):
   meta_type = "Clear " + DTMLMethod.meta_type
   def __before_publishing_traverse__(...):
   do your stuff
# cross your fingers that it will work

But this restricts you to DTML Methods. So if you change to Page
Templates one day you'll have to recode the url param stuff.


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

Peter,

That definitely looks promising.  I've tried a couple of ways, but I
can't make it so this applies to all DTML Methods.  Any ideas?

-Andrew

On Jun 7, 2006, at  6/7/2006 4:10 PMMDT, Peter Bengtsson wrote:

> I much prefer to use __before_publishing_traverse__.
> Eg.
>
> class MyProduct(Something):
>  def __before_publishing_traverse__(self, object, REQUEST):
>""" sort things out before publising object """
>stack = REQUEST['TraversalRequestNameStack']
>if len(stack)==2 and stack[0]=='members' and stack
> [1].isdigit():
>REQUEST.set('member_id', stack[1])
>stack.remove(stack[1])
>
> That's my opinion.





--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.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] Document parameters as part of a URL

2006-06-07 Thread Andrew Hedges

Peter,

That definitely looks promising.  I've tried a couple of ways, but I  
can't make it so this applies to all DTML Methods.  Any ideas?


-Andrew

On Jun 7, 2006, at  6/7/2006 4:10 PMMDT, Peter Bengtsson wrote:


I much prefer to use __before_publishing_traverse__.
Eg.

class MyProduct(Something):
 def __before_publishing_traverse__(self, object, REQUEST):
   """ sort things out before publising object """
   stack = REQUEST['TraversalRequestNameStack']
   if len(stack)==2 and stack[0]=='members' and stack 
[1].isdigit():

   REQUEST.set('member_id', stack[1])
   stack.remove(stack[1])

That's my opinion.


___
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] Document parameters as part of a URL

2006-06-07 Thread Peter Bengtsson

I much prefer to use __before_publishing_traverse__.
Eg.

class MyProduct(Something):
 def __before_publishing_traverse__(self, object, REQUEST):
   """ sort things out before publising object """
   stack = REQUEST['TraversalRequestNameStack']
   if len(stack)==2 and stack[0]=='members' and stack[1].isdigit():
   REQUEST.set('member_id', stack[1])
   stack.remove(stack[1])

That's my opinion.

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

Just curious what people think of the technique described here:

http://www.zope.org/Members/petrvanblokland/parameters_in_url

This page is a few years old.  Is there something built-in to more
recent versions of Zope that does this already?  If there is, Google
has failed me on this one.

The context is that I'm working on a DTML (yeah, yeah ... I know)
application in Zope 2.9.2 and want to be able to build URLs like this:

http://server.domain/members/44

...where members is a DTML Method and 44 is a user_id I could do
things with, like call a ZSQL method.  I'd prefer that members is a
DTML Method and not a Python script or ZSQL Method.

Thanks in advance for any insights!

-Andrew
-
Andrew Hedges, [EMAIL PROTECTED]
http://clearwired.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 )




--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.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] [ANN] Zope 2.9.3 released

2006-06-07 Thread Thomas Bennett
I'll have to say, this is the first Zope that I've had a problem with the 
install since 1998.  The last successful version I installed was 2.92.

RedHat Linux 7.3
Python 2.4.3

I've looked at the Troubleshooting info in the INSTALL.txt file and my 
Makefile for Python 2.4.3 shows 
CC= gcc -pthread
CXX=c++ -pthread
and it was a "vanilla build".

It looks like to me that not finding a zcml configuration file it quits.  Any 
ideas how I can fix this?


[z293]# ./configure --with-python=/usr/local/bin/python2.4 --prefix=/varz29

Configuring Zope installation

Using Python interpreter at /usr/local/bin/python2.4

[z293]# make
/usr/local/bin/python2.4 install.py -q build
Traceback (most recent call last):
  File "install.py", line 28, in ?
context.initialize()
  File "/var/z293/Support/zpkgsetup/setup.py", line 121, in initialize
self.scan(depname, pkgdir, reldir)
  File "/var/z293/Support/zpkgsetup/setup.py", line 211, in scan
self.scan_package(name, directory, reldir)
  File "/var/z293/Support/zpkgsetup/setup.py", line 225, in scan_package
pkginfo = package.loadPackageInfo(name, directory, reldir)
  File "/var/z293/Support/zpkgsetup/package.py", line 101, in loadPackageInfo
pkginfo = read_package_info(directory, reldir)
  File "/var/z293/Support/zpkgsetup/package.py", line 166, in 
read_package_info
data_files[:] = expand_globs(directory, reldir, data_files)
  File "/var/z293/Support/zpkgsetup/package.py", line 303, in expand_globs
raise ValueError(
ValueError: filename pattern '*-configure.zcml' doesn't match any files
make: *** [build] Error 1



TIA
Thomas





On Friday 12 May 2006 08:32, Andreas Jung wrote:
> From: Andreas Jung <[EMAIL PROTECTED]>
>
> Hi all,
>
> on behalf of Zope Corporation and the Zope community I am pleased to
> announce the release of Zope 2.9.3.
>
> You can download  it from
>
>   http://www.zope.org/Products/Zope/2.9.3/
>
>
> Some new features of Zope 2.9:
>
>   - ZODB 3.6
>
>   - Five 1.3
>
>   - integration for Zope 3 events for object creation and deletion
>
>   - Zope 3 i18n integration for page templates
>
>
> 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.9.3/CHANGES.txt
>
>
> 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
>
>
> Support Python versions:
>
>   Zope 2.9 requires Python 2.4.3 (Python 2.4.1, 2.4.2 are still
> acceptable). Older Python versions are no longer supported.
>
>
> Thanks to all being involved in this release.
>
> --
> Andreas Jung(andreas at zopyx dot com)

-- 

Thomas McMillan Grant Bennett   Appalachian State University
Computer Consultant III P O Box 32026
University Library  Boone, North Carolina 28608
(828) 262 6587

An important measure of effort in coding is the frequency with which you write 
something that doesn't actually match your mental representation of the 
problem, and have to backtrack on realizing that what you just typed won't 
actually tell the language to do what you're thinking. -Eric Raymond

Library Systems Help Desk: http://linux.library.appstate.edu/help

___
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] REQUEST within a property() getter/setter

2006-06-07 Thread Doyon, Jean-Francois
Hello,

When executing code within a property getter/setter, I can't seem to get to
the REQUEST object.

self.REQUEST always seems to return  ...

Anyway around this?

Jean-François Doyon
Internet Service Development and Systems Support / Spécialiste de
dèveloppements internet et soutien technique
Canada Centre for Remote Sensing/Centre Canadien de télédétection
Natural Resources Canada/Ressources Naturelles Canada
http://atlas.gc.ca
Tel./Tél.: (613) 992-4902
Fax: (613) 947-2410
___
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: zope LDAP deadlock problem

2006-06-07 Thread Matthew X. Economou
> You can use Florent's "DeadlockDebugger" to find out what happens.

This is true for someone with the requisite skills and plenty of time.
In my case, the actual deadlock happens in a system library routine
(sigaction, as I recall), making the identification of the component
that's actually at fault rather challenging for someone like me.
Fortunately, something in FreeBSD's threading implementation must have
changed between RELENG_5 and RELENG_6, because Zope doesn't become
completely unresponsive now.

Best wishes,
Matthew

-- 
jsoffron: I'm generally pretty high on national defense...
Mr. Bad Example: Careful...it's a gateway policy. Before you know it,
 you'll be mainlining the hard stuff like trade agreements.
jsoffron: Too late...I've been freebasing Nafta all day... Sweet,
 sweet NAFTA.
- As seen on Slashdot
___
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] Document parameters as part of a URL

2006-06-07 Thread Andrew Hedges

Just curious what people think of the technique described here:

   http://www.zope.org/Members/petrvanblokland/parameters_in_url

This page is a few years old.  Is there something built-in to more  
recent versions of Zope that does this already?  If there is, Google  
has failed me on this one.


The context is that I'm working on a DTML (yeah, yeah ... I know)  
application in Zope 2.9.2 and want to be able to build URLs like this:


   http://server.domain/members/44

...where members is a DTML Method and 44 is a user_id I could do  
things with, like call a ZSQL method.  I'd prefer that members is a  
DTML Method and not a Python script or ZSQL Method.


Thanks in advance for any insights!

-Andrew
-
Andrew Hedges, [EMAIL PROTECTED]
http://clearwired.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] RE: zope LDAP deadlock problem

2006-06-07 Thread Dieter Maurer
Matthew X. Economou wrote at 2006-6-6 14:44 -0400:
> ...
>In short, no, Zope will consume all available CPU cycles after some amount of 
>idle time, due to a threading-related flaw in Zope, GRUF, Plone, 
>LDAPUserFolder, python-ldap, or OpenLDAP (I don't know which).

You can use Florent's "DeadlockDebugger" to find out what happens.



-- 
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] creating a new permission

2006-06-07 Thread Sascha Welter
(Wed, Jun 07, 2006 at 12:00:10PM -0400) [EMAIL PROTECTED] wrote/schrieb/egrapse:
> From: "thomas desvenain" <[EMAIL PROTECTED]>
> 
> i am searching for hours, and i don't find how to define a new
> permission, in python code, for my product

Something I wrote a while ago, "Introduction to some Zope security 
settings":
http://betabug.ch/blogs/ch-athens/196

Regards,

Sascha

-- 
About the record changer:
"Those with an all-LP collection will not want it (the man who is too
lazy to change records every 25 minutes is too lazy to live)..."
   Excerpt from the book "Hi-Fi All-New" 1958 Edition
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] debug with ipython

2006-06-07 Thread Bakhtiar A Hamid

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

thanks ! and is it possible to run zope in console mode (as debug
mode) whithout having to shutdown the server (to unlock ZODB) ?


zeo is the magic word here.  check on how to enable zeo from the
zopebook at plope.com, or google for it

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

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


Re: [Zope] creating a new permission

2006-06-07 Thread Martin Aspeli


thomas desvenain wrote:
> 
> i am searching for hours, and i don't find how to define a new
> permission, in python code, for my product
> 

Permissions kind of "spring into existence" when they are used. For example,
Poi defines some additional permissions in Products/Poi/permissions.py. It
then calls setDefaultRoles() to set the default roles of each permission.
When these are used e.g. in security.declareProtected() statements around
methods, they become available in the ZMI.

Martin
--
View this message in context: 
http://www.nabble.com/creating-a-new-permission-t1746362.html#a4748103
Sent from the Zope - General forum 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] creating a new permission

2006-06-07 Thread Andreas Jung
Look at the e.g. at the PloneCollectorNG sources..it defines new roles and 
permissions.


-aj

--On 7. Juni 2006 09:53:10 +0200 thomas desvenain 
<[EMAIL PROTECTED]> wrote:



hello,

i am searching for hours, and i don't find how to define a new
permission, in python code, for my product

can you help me ?

thanks

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




--
ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany
Web: www.zopyx.com - Email: [EMAIL PROTECTED] - Phone +49 - 7071 - 793376
E-Publishing, Python, Zope & Plone development, Consulting


pgplEDWljHLVI.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] creating a new permission

2006-06-07 Thread thomas desvenain

hello,

i am searching for hours, and i don't find how to define a new
permission, in python code, for my product

can you help me ?

thanks

thomas
___
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] debug with ipython

2006-06-07 Thread thomas desvenain

thanks ! and is it possible to run zope in console mode (as debug
mode) whithout having to shutdown the server (to unlock ZODB) ?

2006/6/7, Timur Izhbulatov <[EMAIL PROTECTED]>:

On Tue, Jun 06, 2006 at 04:12:40PM +0200, thomas desvenain wrote:
> is it possible to use zopectl debug with ipython ?

You just need to import IPython and start the shell
http://mail.zope.org/pipermail/zope/2004-September/153667.html

--
Timur Izhbulatov
OILspace, 26 Leninskaya sloboda, bld. 2, 2nd floor, 115280 Moscow, Russia
P:+7 495 105 7245 + ext.205 F:+7 495 105 7246 E:[EMAIL PROTECTED]
Building Successful Supply Chains - One Solution At A Time.
www.oilspace.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 )