[Zope-Coders] Zope tests: 8 OK

2005-07-22 Thread Zope tests summarizer
Summary of messages to the zope-tests list.
Period Thu Jul 21 11:01:01 2005 UTC to Fri Jul 22 11:01:01 2005 UTC.
There were 8 messages: 8 from Zope Unit Tests.


Tests passed OK
---

Subject: OK : Zope-2_6-branch Python-2.1.3 : Linux
From: Zope Unit Tests
Date: Thu Jul 21 23:22:41 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-July/002647.html

Subject: OK : Zope-2_6-branch Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Thu Jul 21 23:24:11 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-July/002648.html

Subject: OK : Zope-2_7-branch Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Thu Jul 21 23:25:42 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-July/002649.html

Subject: OK : Zope-2_7-branch Python-2.4.1 : Linux
From: Zope Unit Tests
Date: Thu Jul 21 23:27:12 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-July/002650.html

Subject: OK : Zope-2_8-branch Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Thu Jul 21 23:28:42 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-July/002651.html

Subject: OK : Zope-2_8-branch Python-2.4.1 : Linux
From: Zope Unit Tests
Date: Thu Jul 21 23:30:12 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-July/002652.html

Subject: OK : Zope-trunk Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Thu Jul 21 23:31:42 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-July/002653.html

Subject: OK : Zope-trunk Python-2.4.1 : Linux
From: Zope Unit Tests
Date: Thu Jul 21 23:33:12 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-July/002654.html

___
Zope-Coders mailing list
Zope-Coders@zope.org
http://mail.zope.org/mailman/listinfo/zope-coders


[Zope-Coders] Checkin messages

2005-07-22 Thread Florent Guillaume
If someone does a checkin but is not subscribed with the correct mail  
to the zope-checkins list, the checkin doesn't appear there.


This sucks.
A number of checkins have gone under the radar in the last few months.

Could the checkin lists be changed to allow non-member posts?
Or, if that's too much filtering work because of spam, could the  
generated checkin message come from a fixed [EMAIL PROTECTED] email  
that would be subscribed to the list (but receive no mail)?


Thanks,
Florent

--
Florent Guillaume, Nuxeo (Paris, France)   CTO, Director of RD
+33 1 40 33 71 59   http://nuxeo.com   [EMAIL PROTECTED]


___
Zope-Coders mailing list
Zope-Coders@zope.org
http://mail.zope.org/mailman/listinfo/zope-coders


Re: [Zope-Coders] Checkin messages

2005-07-22 Thread Lennart Regebro
On 7/22/05, Florent Guillaume [EMAIL PROTECTED] wrote:
 If someone does a checkin but is not subscribed with the correct mail
 to the zope-checkins list, the checkin doesn't appear there.
 
 This sucks.
 A number of checkins have gone under the radar in the last few months.
 
 Could the checkin lists be changed to allow non-member posts?
 Or, if that's too much filtering work because of spam, could the
 generated checkin message come from a fixed [EMAIL PROTECTED] email
 that would be subscribed to the list (but receive no mail)?

At least, you should receive a bounce message that you are not allowed
to post, but I don't remember getting any such messages...

I could be going senile of course...
___
Zope-Coders mailing list
Zope-Coders@zope.org
http://mail.zope.org/mailman/listinfo/zope-coders


Re: [Zope-Coders] Checkin messages

2005-07-22 Thread Tim Peters
[Florent Guillaume]
 If someone does a checkin but is not subscribed with the correct mail
 to the zope-checkins list, the checkin doesn't appear there.

 This sucks.
 A number of checkins have gone under the radar in the last few months.

 Could the checkin lists be changed to allow non-member posts?
 Or, if that's too much filtering work because of spam, could the
 generated checkin message come from a fixed [EMAIL PROTECTED] email
 that would be subscribed to the list (but receive no mail)?

The zodb-checkins list is set to hold postings (for moderator review)
from non-members.  I run that list, and approve/discard held postings
as appropriate.  A steady trickle of spam gets sent to that list, so I
wouldn't advise allowing non-member posting without moderator review. 
The policy on zodb-checkins works fine (no spam gets thru, no legit
checkin messages get lost).

In contrast, the zope-checkins list admin is still listed as Ken
Mannheimer, and I doubt he pays attention to that duty anymore. 
Someone else should volunteer to take it over.

Note that we did lose a few days' worth of checkin messages on _all_
zope.org checkin lists a few weeks ago, due to a mistake.  There's no
good reason I know of for losing any messages after that, though.
___
Zope-Coders mailing list
Zope-Coders@zope.org
http://mail.zope.org/mailman/listinfo/zope-coders


Re: [Zope-Coders] Checkin messages

2005-07-22 Thread Florent Guillaume

On 22 Jul 2005, at 17:09, Tim Peters wrote:

In contrast, the zope-checkins list admin is still listed as Ken
Mannheimer, and I doubt he pays attention to that duty anymore.
Someone else should volunteer to take it over.


Ok I can do that. I'm used to mailman.

Florent

--
Florent Guillaume, Nuxeo (Paris, France)   CTO, Director of RD
+33 1 40 33 71 59   http://nuxeo.com   [EMAIL PROTECTED]


___
Zope-Coders mailing list
Zope-Coders@zope.org
http://mail.zope.org/mailman/listinfo/zope-coders


Re: [Zope-Coders] Checkin messages

2005-07-22 Thread Fred Drake
On 7/22/05, Tino Wildenhain [EMAIL PROTECTED] wrote:
 Otoh, the checkin messages arent sent by the users but the repository.
 Shouldnt repository sent messages not automatically accepted?

Yes, but the repository lies and says the mail came from the
committer.  Were that to change, the list configuration could be
simplified and the maintenance burden substantially reduced.

Jim:  You'll have to determine whether this is acceptable, since this
is a repository policy issue.


  -Fred

-- 
Fred L. Drake, Jr.fdrake at gmail.com
Zope Corporation
___
Zope-Coders mailing list
Zope-Coders@zope.org
http://mail.zope.org/mailman/listinfo/zope-coders


Re: [Zope-dev] Re: Event Timer Service for Zope 2.8

2005-07-22 Thread Florent Guillaume
Dylan Jay  [EMAIL PROTECTED] wrote:
 Tres Seaver wrote:
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
 
  Chris' ClockServer removes the need for such a thread, by hooking
  ZServer's mainloop to generate the faux request needed to kick off
  async processing.  A crontab - like schedule can be driven equally
  well from ClockScheduler as from a separate thread.
 
 So what's wrong with including ClockServer in the core or making it 
 easier to install? (ie not having to put packages in the python path 
 which is hard with some hosting arrangements)
 
 And what's the argument against a core scheduler regardless of a clock? 
 Isn't running background tasks a common need amoungst many very 
 different tools and therefore a interstructure issue?

Myself I'm for having ClockServer in the core, if Chris and others agree.

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)   CTO, Director of RD
+33 1 40 33 71 59   http://nuxeo.com   [EMAIL PROTECTED]
___
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: Listing a groups users via Python and portal_groups

2005-07-22 Thread Hitesh Shetty
Im trying to implement a file system 
in the process i came accross Zope and ZODB
however i cant figure out where to start
since its important to study ZODB's architecture
regards
Hitesh Shetty


On 7/22/05, J Cameron Cooper [EMAIL PROTECTED] wrote:
 Takahashi, Michael wrote:
  Thanks for the help, I actually figured it out.  It turned out that
  portal.portal_groups.getGroupById(staff).getGroupUsers() was the
  solution.  However, the getGroupUsers() function returns a list of
  users, but not as strings.  So I had to convert the entire call with
  str() in order to run a comparison.
  
  So in the end this is how I achieved what I needed:
  
  portal.portal_membership.getAuthenticatedMember().getId() not in \
  str(portal.portal_groups.getGroupById(staff).getGroupUsers())
 
 The 'getGroupUsers' is not a good idea in a CMF environment. You should 
 use the methods from the group tools. Like the ones I mentioned by name. 
 One of them even does exactly what you want::
 
context.portal_groups.getGroupById('group1').getGroupMemberIds()
 
   --jcc
 
  -Original Message-
  From: J Cameron Cooper [mailto:[EMAIL PROTECTED] 
  Sent: Thursday, July 21, 2005 12:36 PM
  To: Takahashi, Michael
  Cc: zope-dev@zope.org
  Subject: Re: [Zope-dev] Listing a groups users via Python and
  portal_groups
  
  Takahashi, Michael wrote:
  
  
 I'm trying to work on a function call using Python that will list the 
 users of any specified group using the function portal_groups.
 
 I've been able to successfully do this the opposite way by getting the
  
  
 users groups via portal_membership:
 
 portal.portal_membership.getAuthenticatedMember().getGroups()
 
 Which will return all groups this user is associated with.
 
 So I've been testing using portal_groups with function calls similar
  
  to 
  
 this:
 
 portal.portal_groups.getGroupById(staff).getUsers()
 
 Where staff is the name of the group. This almost does what I need, 
 but not quite close enough because it lists all groups and all users.
  
  
 Any suggestions or help is greatly appreciated!
  
  
  It acquires 'getUsers' from somewhere, I guess.
  
  Group objects have 'getGroupMemberIds' and 'getGroupMembers' methods.
  You can see this in Products.GroupUserFolder.GroupDataTool.GroupData.
  the Products.GroupUserFolder.interfaces.portal_groupdata is a bit
  cleaner, but seems a little behind the times, as it's missing
  'getGroupMemberIds'.
  
  Note that this isn't a good topic for zope-dev, but more for
  plone-users.
  
  --jcc
  
  
  
 
 
 ___
 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 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: Event Timer Service for Zope 2.8

2005-07-22 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dylan Jay wrote:
 Tres Seaver wrote:
 
 Chris' ClockServer removes the need for such a thread, by hooking
 ZServer's mainloop to generate the faux request needed to kick off
 async processing.  A crontab - like schedule can be driven equally
 well from ClockScheduler as from a separate thread.
 
 
 So what's wrong with including ClockServer in the core or making it
 easier to install? (ie not having to put packages in the python path
 which is hard with some hosting arrangements)

Hmm, I thought I was arguing *for* including ClockServer in the core;
what I don't want is some of the alternatives which rely on running
special threads.

 And what's the argument against a core scheduler regardless of a clock?
 Isn't running background tasks a common need amoungst many very
 different tools and therefore a interstructure issue?

I could see including the Scheduler product as well, although there are
some issues for long-running tasks which might not fit well (conflicts
on the schedule itself are possible).


Tres.
- --
===
Tres Seaver  +1 202-558-7113  [EMAIL PROTECTED]
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC4Qr++gerLs4ltQ4RAg/BAKC9jzLSZ/CnMpDpKm7F+p2Wbm9CTACdEXgd
c4gpIBSEXNa1gu3XDfF+JbQ=
=DQrV
-END PGP SIGNATURE-

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


Re: [Zope-dev] Re: Listing a groups users via Python and portal_groups

2005-07-22 Thread J Cameron Cooper

Hitesh Shetty wrote:
Im trying to implement a file system 
in the process i came accross Zope and ZODB

however i cant figure out where to start
since its important to study ZODB's architecture
regards


http://www.zope.org/Documentation/Articles

Specifically

http://www.zope.org/Documentation/Articles/ZODB1
http://www.zope.org/Documentation/Articles/ZODB2

Also

http://www.zope.org/Wikis/ZODB/FrontPage
http://www.zope.org/Members/adytumsolutions/HowToLoveZODB_PartI

And, of course,

http://www.zope.org/Documentation/Books/ZopeBook/

None of this was difficult to find.

--jcc

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


Re: [Zope] Reg Zope Installation Problem

2005-07-22 Thread praba kar

--- Florent Guillaume [EMAIL PROTECTED] wrote:

 praba kar  [EMAIL PROTECTED] wrote:
  I try to install zope 2.7.0.
 
 Stop right here. Zope 2.7.0 is hopelessly outdated.
 Use Zope 2.7.6.
 
 Florent
 
 -- 
 Florent Guillaume, Nuxeo (Paris, France)   CTO,
 Director of RD
 +33 1 40 33 71 59   http://nuxeo.com   [EMAIL PROTECTED]
 
Dear All,
I have same problem in Zope 2.7. 6
installation also. kinldy help me. I have installed
successfully  but I don't know how to start zope
properly. Actully now I am starting zope service using
runzope from bin directory of  instance.
I don't know how to use zopectl command.


--
2005-07-22T11:48:07 INFO(0) ZServer HTTP server
started at Fri Jul 22 11:48:07 2005
Hostname: localhost.localdomain
Port: 8080
--
2005-07-22T11:48:07 INFO(0) ZServer FTP server started
at Fri Jul 22 11:48:07 2005
Hostname: prabahar
Port: 8021
Traceback (most recent call last):
  File
/Programs/Zope/2.7.6/lib/python/Zope/Startup/run.py,
line 50, in ?
run()
  File
/Programs/Zope/2.7.6/lib/python/Zope/Startup/run.py,
line 19, in run
start_zope(opts.configroot)
  File
/Programs/Zope/2.7.6/lib/python/Zope/Startup/__init__.py,
line 52, in start_zope
starter.startZope()
  File
/Programs/Zope/2.7.6/lib/python/Zope/Startup/__init__.py,
line 231, in startZope
Zope.startup()
  File
/Programs/Zope/2.7.6/lib/python/Zope/__init__.py,
line 46, in startup
from Zope.App.startup import startup as _startup
  File
/Programs/Zope/2.7.6/lib/python/Zope/App/startup.py,
line 30, in ?
import OFS.Application
  File
/Programs/Zope/2.7.6/lib/python/OFS/Application.py,
line 17, in ?
import Globals,Folder,os,sys,App.Product,
App.ProductRegistry, misc_
  File
/Programs/Zope/2.7.6/lib/python/App/Product.py, line
44, in ?
from HelpSys.HelpSys import ProductHelp
  File
/Programs/Zope/2.7.6/lib/python/HelpSys/__init__.py,
line 15, in ?
import HelpSys
  File
/Programs/Zope/2.7.6/lib/python/HelpSys/HelpSys.py,
line 18, in ?
from Products.ZCatalog.ZCatalog import ZCatalog
  File
/Programs/Zope/2.7.6/lib/python/Products/ZCatalog/__init__.py,
line 16, in ?
import ZCatalog, Catalog, CatalogAwareness,
CatalogPathAwareness, ZClasses
  File
/Programs/Zope/2.7.6/lib/python/Products/ZCatalog/ZCatalog.py,
line 40, in ?
from IZCatalog import IZCatalog
  File
/Programs/Zope/2.7.6/lib/python/Products/ZCatalog/IZCatalog.py,
line 236, in ?
__doc__ = IZCatalog.__doc__ + __doc__
TypeError: unsupported operand type(s) for +:
'NoneType' and 'NoneType'



___
Too much spam in your inbox? Yahoo! Mail gives you the best spam protection for 
FREE! http://in.mail.yahoo.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] Reg Zope Installation Problem

2005-07-22 Thread Tino Wildenhain
Am Freitag, den 22.07.2005, 07:31 +0100 schrieb praba kar:
 --- Florent Guillaume [EMAIL PROTECTED] wrote:
 
  praba kar  [EMAIL PROTECTED] wrote:
   I try to install zope 2.7.0.
  
  Stop right here. Zope 2.7.0 is hopelessly outdated.
  Use Zope 2.7.6.
  
  Florent
  
  -- 
  Florent Guillaume, Nuxeo (Paris, France)   CTO,
  Director of RD
  +33 1 40 33 71 59   http://nuxeo.com   [EMAIL PROTECTED]
  
 Dear All,
 I have same problem in Zope 2.7. 6
 installation also. kinldy help me. I have installed
 successfully  but I don't know how to start zope
 properly. Actully now I am starting zope service using
 runzope from bin directory of  instance.
 I don't know how to use zopectl command.


runzope or zopectl fg 
are good for testing if the installation works
because you get all the messages on screen (like you show below)

zopectl start 

should be used in production because it detaches zope 
from the shell. I think the INSTALL.txt section
needs some clarify on this - although zopectl
gets mentioned there:


Starting Zope

  Once an instance home has been created, the Zope server can now be
  started using this command:

/location/of/zope/instance/bin/runzope

  If you get errors indicating that addresses are in use, then you
  will have to supply arguments to runzope to change the ports used
  for HTTP or FTP. The default HTTP and FTP ports used by Zope are
  8080 and 8021 respectively. You can change the ports used by
  specifying the port-base parameter to runzope.  For example, to
  run Zope on ports 9080 and 9021::

./bin/runzope -X port-base=1000

  There is also an interactive Zope command shell named 'zopectl' that
  may be invoked by running 'bin/zopectl'.  By default, 'zopectl
  start' will start a background process that manages Zope and
  'zopectl stop' will stop the background process.




 
 --
 2005-07-22T11:48:07 INFO(0) ZServer HTTP server
 started at Fri Jul 22 11:48:07 2005
 Hostname: localhost.localdomain
 Port: 8080
 --
 2005-07-22T11:48:07 INFO(0) ZServer FTP server started
 at Fri Jul 22 11:48:07 2005
 Hostname: prabahar
 Port: 8021
 Traceback (most recent call last):
   File
 /Programs/Zope/2.7.6/lib/python/Zope/Startup/run.py,
 line 50, in ?
 run()
   File
 /Programs/Zope/2.7.6/lib/python/Zope/Startup/run.py,
 line 19, in run
 start_zope(opts.configroot)
   File
 /Programs/Zope/2.7.6/lib/python/Zope/Startup/__init__.py,
 line 52, in start_zope
 starter.startZope()
   File
 /Programs/Zope/2.7.6/lib/python/Zope/Startup/__init__.py,
 line 231, in startZope
 Zope.startup()
   File
 /Programs/Zope/2.7.6/lib/python/Zope/__init__.py,
 line 46, in startup
 from Zope.App.startup import startup as _startup
   File
 /Programs/Zope/2.7.6/lib/python/Zope/App/startup.py,
 line 30, in ?
 import OFS.Application
   File
 /Programs/Zope/2.7.6/lib/python/OFS/Application.py,
 line 17, in ?
 import Globals,Folder,os,sys,App.Product,
 App.ProductRegistry, misc_
   File
 /Programs/Zope/2.7.6/lib/python/App/Product.py, line
 44, in ?
 from HelpSys.HelpSys import ProductHelp
   File
 /Programs/Zope/2.7.6/lib/python/HelpSys/__init__.py,
 line 15, in ?
 import HelpSys
   File
 /Programs/Zope/2.7.6/lib/python/HelpSys/HelpSys.py,
 line 18, in ?
 from Products.ZCatalog.ZCatalog import ZCatalog
   File
 /Programs/Zope/2.7.6/lib/python/Products/ZCatalog/__init__.py,
 line 16, in ?
 import ZCatalog, Catalog, CatalogAwareness,
 CatalogPathAwareness, ZClasses
   File
 /Programs/Zope/2.7.6/lib/python/Products/ZCatalog/ZCatalog.py,
 line 40, in ?
 from IZCatalog import IZCatalog
   File
 /Programs/Zope/2.7.6/lib/python/Products/ZCatalog/IZCatalog.py,
 line 236, in ?
 __doc__ = IZCatalog.__doc__ + __doc__
 TypeError: unsupported operand type(s) for +:
 'NoneType' and 'NoneType'
 

this is faszinating. I have no Idea why on your installation
are the docstrings None. 

Yan you please quote the code lines around line 236 in 
/Programs/Zope/2.7.6/lib/python/Products/ZCatalog/IZCatalog.py 
?


-- 
Tino Wildenhain [EMAIL PROTECTED]

___
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: Memory Errors - solved

2005-07-22 Thread Malthe Borch
Malthe Borch [EMAIL PROTECTED] wrote in
news:[EMAIL PROTECTED]: 

 I'll follow up if it turns out to be a fluke.

It was. no candy. It did buy some time though, so there might be a real 
leak somewhere.

\mb

___
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] FW: Problem downloading large files

2005-07-22 Thread Laurikainen, Tuukka
Hello all,

I apologize if this is a wrong list for the question, but the
python-crypto list doesn't seem to be working (at least I haven't
received anything from there, not even the mails I've sent). Anyway I
suppose there are people here who run the ZServerSSL with Zope.

We're having some problems downloading large files from Zope/Plone
running
on win32, through an SSL connection. Uploads seem work ok.

There's been some discussion about similar issues, but with uploads
(http://www.zope.org/Wikis/DevSite/Proposals/ZServerSSLIntegration).
The variable ac_out_buffer_size in https_server.py mentioned in that
post
is not present in the current version (or at least I haven't found it).
The ac_in_buffer_size is assigned a value of 32k (1  16 bit shift
operation). We've tried to change this value but with no success.

This seems to be a problem only with SSL connections. If we download the
same file (say, for example of 200MB) through HTTP connection the file
transfers correctly. The same transfer through an SSL connection
produces
a corrupted file.

M2Crypto 0.13 (suppose, The ZServerSSL has been installed with the
Windows
installer), Plone 2.0.3, Zope 2.7.0, Python 2.3.3 on win32.

Kind regards,

Tuukka
___
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] manage_changeProperties quirk?

2005-07-22 Thread Joe Bezier

Hiya,

I had a strange problem today, on a Zope 2.5 installation (yes, it will 
be upgraded soon...). Basically, I've got a form action which calls 
manage_changeProperties() on a number of subfolders using


dtml-call expr=folder_place.manage_changeProperties(order=number)

Now, this works absolutely fine throughout my installation, but in one 
instance it was raising an Unauthorized Error for all users, no matter 
what their permissions/roles:



Site Error

An error was encountered while publishing this resource.

Unauthorized
You are not authorized to access manage_changeProperties.


So I tried pretty much everything - checking all sorts of permissions 
and other stuff, but eventually made a copy of the folder, to make sure 
it wasn't something peculiar with the folder name - the copy worked 
perfectly. So, I then replaced the original folder with the folder copy 
and this worked fine too.


So, basically, problem solved. But I'm now concerned - could this 
happen again? Is there something I'm missing? Has anyone experienced 
something like this before?


Cheers,

JB



___ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.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] manage_changeProperties quirk?

2005-07-22 Thread Jens Vagelpohl


On 22 Jul 2005, at 11:04, Joe Bezier wrote:
So I tried pretty much everything - checking all sorts of  
permissions and other stuff, but eventually made a copy of the  
folder, to make sure it wasn't something peculiar with the folder  
name - the copy worked perfectly. So, I then replaced the original  
folder with the folder copy and this worked fine too.


So, basically, problem solved. But I'm now concerned - could this  
happen again? Is there something I'm missing? Has anyone  
experienced something like this before?


Shot in the dark: Was this folder created (and thus under effective  
ownership) of a user that has been deleted from the user folder?


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] manage_changeProperties quirk?

2005-07-22 Thread Joe Bezier
Yep. Exactly - I hadn't thought of that, but yes, it was created by 
someone who's now left. Deeply impressive.


Thanks Jens.

JB

On 22 Jul 2005, at 11:17, Jens Vagelpohl wrote:



On 22 Jul 2005, at 11:04, Joe Bezier wrote:
So I tried pretty much everything - checking all sorts of permissions 
and other stuff, but eventually made a copy of the folder, to make 
sure it wasn't something peculiar with the folder name - the copy 
worked perfectly. So, I then replaced the original folder with the 
folder copy and this worked fine too.


So, basically, problem solved. But I'm now concerned - could this 
happen again? Is there something I'm missing? Has anyone experienced 
something like this before?


Shot in the dark: Was this folder created (and thus under effective 
ownership) of a user that has been deleted from the user folder?


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 )







___ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.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] Send Mail Tag

2005-07-22 Thread Asad Habib
My current Zope setup uses SSL and FastCGI. For some reason,
dtml-sendmail is no longer working for me. The error I get is the
following:

Exception Type  gaierror
Exception Value (7, 'No address associated with nodename')

I have confirmed the name of our mail server with IT staff so the problem
is not in the nodename but for some reason the name is not being mapped to
the correct address. Is this because of FastCGI? Has anyone experienced
something similar?

If this continues to be a problem, what are my other options?

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] Traceback Lines for Send Mail Error

2005-07-22 Thread Asad Habib
If it helps, the last lines in the traceback are as follows:

Module DocumentTemplate.DT_String, line 474, in __call__
Module Products.MailHost.SendMailTag, line 116, in render
Module Products.MailHost.MailHost, line 125, in send
Module Products.MailHost.MailHost, line 144, in _send
Module smtplib, line 254, in __init__
gaierror: (7, 'No address associated with nodename')

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] FSZSQLMethod.py refactory

2005-07-22 Thread Jean Rodrigo Ferri

Jens Vagelpohl wrote:
I did a refactory in the FSZSQLMethod.py module of CMFCore from  SVN. 
I want to use my ZSQLs from the filesystem and I improved the  module 
to better support to this feature.


First of all, CMF-related items are better discussed on the zope- 
[EMAIL PROTECTED] list.


Sorry!

Can you explain how your changes better support ZSQL methods on the  
file system? They work perfectly fine the way they are.


The actual implemantation parsing a code with 
dtml-comment/dtml-comment tags in its body, with the arguments list. 
I think it's ugly.



# parse parameters
parameters={}
start = data.find('dtml-comment')
end   = data.find('/dtml-comment')
if start==-1 or end==-1 or startend:
raise ValueError,'Could not find parameter block'
block = data[start+14:end]


So, the entire data information is submited in template, or either, the 
body of zsql method receives dtml-comment tags and the arguments list 
too. I don't know how can it work!?



self.manage_edit(title, connection_id, arguments, template=data)


In the top of template has a comment:


(not yet) Customizable ZSQL methods that come from the filesystem.


I think (not yet) means this module is not working yet, and it is my 
impression after my tests and analisys the code!



Oh, and what exactly is not working about the CMF Subversion repository?


I am using Plone 2.1, following the instruction:

http://plone.org/development/info/participation

It worked fine 2 days ago, but now it give me a timeout exception.

Forgives myself for trying to help the community!

--
Jean Ferri
TcheZope.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 )


[Zope] zpt and sql

2005-07-22 Thread Nicholas Wieland
Hi *, I've searched a lot but actually didn't find anything useful to solve my problem, and probably I haven't really understood how Zope works ... :)
I'm developing a filesystem product and I need to display a zpt form where I display some results from a query.
I'm able to query the DB, and I'm able to display an empty zpt form, qhat I don't understand is how to stick the two things together.

This is what I have:

class InstitutionalReport (Item, Implicit, Persistent, RoleManager, Folder): """ Base class for InstitutionalReport. """
 meta_type = "Institutional Report"
 manage_options = ( {'label' : 'View', 'action' : 'index_html' }, )
 def __init__ (self, id, conn_id): """ initializer """ self.id = id self.conn_id = conn_id self.sqlGetReferenceDate = SQL ('slGetReferenceDate', '', conn_id, '', _sqlGetReferenceDate) #Folder.manage_addPageTemplate (self, 'index_html', file = self.def_index_html, REQUEST = None)
 index_html = PageTemplateFile ("zpt/index_html.pt", globals ())


I want to cycle through the query result with ZPT and populate a select.

TIA,
 ngw
		Yahoo! Messenger: chiamate gratuite in tutto il mondo ___
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] object acquisition via python scripts

2005-07-22 Thread Paul Winkler
On Fri, Jul 22, 2005 at 04:10:03PM +0100, Jon Bowlas wrote:
 And my get_attobject script contains the following code:
 
  
 
   attobjects = context.objectValues('Attributes object')
 
   if attobjects:
 
 return attobjects[0]
 
   return None
 
(snip)
 But what I'd like to do in this situation is use acquisition to retrieve the
 values from the parent 'Attributes object' located in the site root. So
 could someone please explain how I could achieve this?

As you've discovered, objectValues() does not use acquisition, it
only looks for real sub-objects of the folder you call it on.
Same is true for objectItems() and objectIds().

This kind of thing is typically done by always using the same id for
your attributes object. Then just acquire that id.
In a sense, the id becomes part of your API.

Your script would become:
 
attrobject = getattr(context, 'some_id', None)
return attrobject

-- 

Paul Winkler
http://www.slinkp.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] Re: object acquisition via python scripts

2005-07-22 Thread Malcolm Cleaton
On Fri, 22 Jul 2005 16:10:03 +0100, Jon Bowlas wrote:
   attobjects = context.objectValues('Attributes object')
... 
 But what I'd like to do in this situation is use acquisition to retrieve the
 values from the parent 'Attributes object' located in the site root. So
 could someone please explain how I could achieve this?

Looking up your attributes object through objectValues will prevent
acquisition - rather than just asking the object to find an attributes
object for you, you're asking it for any attributes object amongst its
children only.

To search for your attributes object with acquisition, you could do:

getattr(context, 'Attributes object')

If the id of your attributes object did not contain a space (or anything
else illegal in a python identifier), for example AttributesObject, you
could just do:

context.AttributesObject

Thanks,
Malcolm.

-- 

[] j a m k i t
  web solutions for charities

 malcolm cleaton
T:  020 7549 0520
F:  020 7490 1152
M:  07986 563852
W: www.jamkit.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] Zope trademark - ZEA point of view

2005-07-22 Thread Xavier Heymans
This email is an answer to the questions raised by Rob Page in his email titled “Zope Foundation update”. It was posted on zope.org mailing list, Tuesday July 19, 2005. This document also tries to answer questions raised on the mailing list.Later in the document:Zope Corporation = ZCZope Europe Association = ZEAAbout ZEAZEA goals are to promote and develop the Zope technology. The association currently regroups 16 businesses from 9 countries, which are actively involved in the creation or promotion of the technology. As a non-profit, we are developing contact with users, private and public entities. Part of our focus is to provide an increased visibility of the Zope ecosystem.ZEA management is independent of the business interest. Paul and Xavier roles are to focus on commons issues. Due to a conflict of interest, Paul has not been involved in ZEA decision to register the trademark.A – Zope trademark  : situation and facts1/ Europython, June 29, 2005I took the initiative to set-up a face-to-face meeting with Rob. During a 2 hours conversation, I presented ZEA goals, activities and their positive impact on Zope internationally.  I explained that working on the Plone trademark, I found out that Zope trademark wasn’t protected and explained the reasons of the decision to register the mark. In his email on zope.org, Rob forgot to mention that ZEA openly provided these informations to ZC.2/ Reasons for registering the Zope trademark - 2003Q4At the end of 2003, there was unrest within the Community related to the trademark. ZC made clear statement that the trademark was protected, while it was not. Unknown entities had taken actions to register it in some countries. The decision of a defensive registration was taken among ZEA partners. The goal was to freeze the situation, with an agreement that ZEA wasn’t the right entity to hold the trademark in the long-term. The registration process started on January 5, 2004. Both our trademark expert and legal adviser agree that these registrations are not illegal as suggested by ZC.3/ Trademark registrationA trademark has to be registered and its status carefully followed. The underlying issues and risk can hardly be summarized in a few lines. ZEA has been advised by a trademark expert in the steps to follow. To reduce the risk of opposition by third parties, her advice was to register a “figurative trademark” = the mark and its logo, and not to advertise the process. For transparency, I accept to show evidences of the process to the Zope Community and if necessary organize a meeting with Dominique, the trademark expert (file about 100 pages). On July 12, during a mediation attempt, I made the same offer to ZC. My proposition was rejected.4/ Why Plone is currently under the name of ZEA?The Plone registration started before the Plone Foundation (PF) creation. The work was done on behalf of representatives of the Plone Community. The final transfer should be done by Q3Q42005, we are currently expecting documentation from the registration office. The PF is aware of the process.Having informed Rob about my involvement in the process (point1), I was surprised that he came up with this point on a Zope mailing list rather than contacting directly the PF. In the case of the PF, this situation didn’t delay the creation of the Foundation.5/ ZC contradictory statementsSome examples :-The statement that the trademark was protected in 2003, while it was not outside the US.-The ownership of the trademark seems to be a primary concern of ZC, at the same time ZEA and other registrations went unnoticed.The reasons of these contradictions aren’t clear today: lack of resources, misunderstanding of international laws, problem of expertise of their trademark expert?The fact is that leaving the trademark unregistered outside the US has put the Zope ecosystem at risk: other brands could have opposed the registration. It also weakens Rob point (July20) that « ZC is more likely to defend the trademark than a volunteer-led Foundation ».B - Concerns about Zope futureFor over 3 years I have been following the discussions about Zope, met a number of developers, businesses and users. Legal concerns including the trademark are ongoing topics brought up by a large number of persons (in and out ZEA). This situation is damaging the Zope Community and related activities. I believe it is time to tackle the roots of the problem or drop the topic. The Zope Community should own this decision.Since Europython (point1), I had a number of direct contacts with ZC. What struck me most is that:-the same word “Zope” (brand) is being used for different goals and objectives,-the unwillingness of ZC to talk about core issues.The 2 points of views :(a)- Zope community, businesses and usersWorldwide, Zope refers to “Zope the open source application server”. It is the brand of the technology originally presented to the public. Thousands of people are promoting it. The future of Zope relies on the ability to grow its 

RE: [Zope] object acquisition via python scripts

2005-07-22 Thread Jon Bowlas
Many thanks for your help, worked a treat.

Also thanks going out to Malcolm, although he got beat to the solution by
Paul.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul
Winkler
Sent: 22 July 2005 16:21
To: zope@zope.org
Subject: Re: [Zope] object acquisition via python scripts

On Fri, Jul 22, 2005 at 04:10:03PM +0100, Jon Bowlas wrote:
 And my get_attobject script contains the following code:
 
  
 
   attobjects = context.objectValues('Attributes object')
 
   if attobjects:
 
 return attobjects[0]
 
   return None
 
(snip)
 But what I'd like to do in this situation is use acquisition to retrieve
the
 values from the parent 'Attributes object' located in the site root. So
 could someone please explain how I could achieve this?

As you've discovered, objectValues() does not use acquisition, it
only looks for real sub-objects of the folder you call it on.
Same is true for objectItems() and objectIds().

This kind of thing is typically done by always using the same id for
your attributes object. Then just acquire that id.
In a sense, the id becomes part of your API.

Your script would become:
 
attrobject = getattr(context, 'some_id', None)
return attrobject

-- 

Paul Winkler
http://www.slinkp.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 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] FSZSQLMethod.py refactory

2005-07-22 Thread Jean Rodrigo Ferri

Jens Vagelpohl wrote:

It does work.


How? Give me an example!

The comment is wrong. If you find something that does  
*not* work I'll be glad to look at it, but so far you have not given  
any specific information about breakages like tracebacks or steps to  
follow to produce an error.


I can't give this information because it doesn't raise exceptions. It
works (not raise errors), but not properly.

I never saw an example of ZSQL Methods running from file system in CMF,
can you give me this?

My intention is just contribute, however, solving a real problem I have.

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

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


Re: [Zope] Re: Zope Foundation Update

2005-07-22 Thread Greg Fischer
HAHAHHAHA!!! LOL!

Man!  There has got to be some humor in this at some point!

Honestly, though, I appreciate your discussions being held here.  I
truly appreciate the fact that I have Zope to work with and offer to
my customers.  I feel that I owe that thanks not only to Zope
Corporation, but to the community as well.  I just wanted to chime in
from a tiny part of the *silent majority* so that both parties hear
it.  I love Zope, we all do.  Work this out. :-)

Greg

On 7/21/05, Lennart Regebro [EMAIL PROTECTED] wrote:
 ZC: Potay-to.
 ZEA: Potah-to.
 ZC: Potay-to!
 ZEA: Potah-to!
 ZC: Potay-to!!
 ZEA: Potah-to!!
 ZC: POTAY-TO, you evil thief!!!
 ZEA: POTAH-TO you dictatiorial pig!!
 
 Not a communications problem? My ass.
 ___
 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 )
 


-- 
Greg Fischer
1st Byte Solutions
http://www.1stbyte.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] FSZSQLMethod.py refactory

2005-07-22 Thread Jens Vagelpohl


On 22 Jul 2005, at 17:17, Jean Rodrigo Ferri wrote:


Jens Vagelpohl wrote:


It does work.



How? Give me an example!


Take a look at the unit tests which exercise the FSZSQL code, there  
is a sample one that is part of the fake skins directory used by the  
CMFCore unit tests:


http://svn.zope.org/CMF/trunk/CMFCore/tests/fake_skins/fake_skin/ 
testsql.zsql?rev=37165view=markup



I can't give this information because it doesn't raise exceptions.  
It works (not raise errors), but not properly.


I never saw an example of ZSQL Methods running from file system in  
CMF, can you give me this?


My intention is just contribute, however, solving a real problem I  
have.


You're still giving no clue about what exactly it is that works not  
properly.


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] tal:attributes question

2005-07-22 Thread Erik Myllymaki

I am trying to set the bgcolor of a page based on the existance of a variable.

Neither of these seem to work:

body
  tal:attributes=bgcolor python:test(hasattr(options, 'error'), 'red', 
'green')

body
  tal:attributes=bgcolor python:test(hasattr(request, 'error'), 'red', 
'green')

I can access the error variable with this:

p class=error tal:condition=exists: options/error 
tal:content=options/error | nothingThere was an error/p

___
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] Getting a methods parent (in a product)

2005-07-22 Thread Jan-Ole Esleben
Hi!

How can I get a Product instance's _actual_ parent when one of its
methods is called? (In other ways: how can I find out, from an
instance, where that instance is located without falling prey to
acquisition in Zope 2?)

TIA,
Ole
___
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] Getting a methods parent (in a product)

2005-07-22 Thread Jens Vagelpohl


On 22 Jul 2005, at 18:48, Jan-Ole Esleben wrote:


Hi!

How can I get a Product instance's _actual_ parent when one of its
methods is called? (In other ways: how can I find out, from an
instance, where that instance is located without falling prey to
acquisition in Zope 2?)


from Acquisition import aq_inner, aq_parent

parent = aq_parent(aq_inner(self))

This will return the true container the instance is set in, not just  
the acquisition parent.


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] Getting a methods parent (in a product)

2005-07-22 Thread Jan-Ole Esleben
Thanks a lot, I'll try that.

Ole


2005/7/22, Jens Vagelpohl [EMAIL PROTECTED]:
 
 On 22 Jul 2005, at 18:48, Jan-Ole Esleben wrote:
 
  Hi!
 
  How can I get a Product instance's _actual_ parent when one of its
  methods is called? (In other ways: how can I find out, from an
  instance, where that instance is located without falling prey to
  acquisition in Zope 2?)
 
 from Acquisition import aq_inner, aq_parent
 
 parent = aq_parent(aq_inner(self))
 
 This will return the true container the instance is set in, not just
 the acquisition parent.
 
 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] FSZSQLMethod.py refactory

2005-07-22 Thread Jean Rodrigo Ferri

Jens Vagelpohl wrote:

[...]

You're still giving no clue about what exactly it is that works not  
properly.


I looked at your example and I understood the correct sintax, now it 
make sence, the dtml-comment comments the attributes in the body of 
ZSQLMethod.


But in my refactory of parser I used a more elegant sintax to the file 
like Script Python, and does not leave the trash (dtml-comment 
arguments /dtml-comment) in the body of the method.


I only wait that someone test my reimplementation of parser and says me 
it's really insignificant.


I would like at least not to have that trash (dtml-comment...) in the 
body of the method.


Regards!

--
Jean Ferri
___
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] tal:attributes question

2005-07-22 Thread Fred Drake
On 7/22/05, Erik Myllymaki [EMAIL PROTECTED] wrote:
 I am trying to set the bgcolor of a page based on the existance of a variable.
 
 Neither of these seem to work:
 
 body
tal:attributes=bgcolor python:test(hasattr(options, 'error'), 'red', 
 'green')

Try this:

body
   tal:attributes=bgcolor python:test(options.has_key('error'),
'red', 'green')


  -Fred

-- 
Fred L. Drake, Jr.fdrake at gmail.com
Zope Corporation
___
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] Plone: storage, catologing and versioning

2005-07-22 Thread Rogério Atem de Carvalho
Hi,

I have a few questions about Plone (in some extent CMF/Zope):

1)How to manipulate versioning in Plone? (like CPS does)
I know there is PLIP8, but it is still a proposal, isn't it?

2)How to store and catalog huge document collections?
-LocalFS + ZCatalog?
-Implement mapping and indexing in a relational DB?
(I have also de ERP5's ZSQLCatalog option...)

3)Is there any product or Plone plug-in that allows enhanced searches
through thesaurus or ontologies, or something like this?
I know there are Ontobroker and Gnowsys, but I would like
to have something simpler to work on top of Plone.

thanks for the help,

--
Prof. Rogério Atem de Carvalho, D.Sc.
Research Manager - CEFET Campos
Brazil

___
''O remetente desta mensagem é o responsável pelo seu conteúdo e
endereçamento. A utilização deste meio para fins que não aqueles
dispostos na Portaria nº 267, de 20 de outubro de 2003 da Direção
Geral do CEFET CAMPOS, é passível das sanções cabíveis, dispostas
nas normas internas para utilização de correio eletrônico e acesso
à Internet.''
___
Servidor de E-mail CEFET Campos

___
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] FSZSQLMethod.py refactory

2005-07-22 Thread Jens Vagelpohl
I only wait that someone test my reimplementation of parser and  
says me it's really insignificant.


I would like at least not to have that trash (dtml-comment...) in  
the body of the method.


As far as the CMF goes, IMHO it doesn't make much sense to put code  
into the repository just because one person doesn't like the way  
arguments are handed to these ZSQL methods. They work perfectly as is.


I fail to see how several lines of double-hash-escaped lines is any  
less trash than the comment-tagged version that is there right now.


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] Different IPs, one zope instance

2005-07-22 Thread Remy Pinsonnault
Hello everyone,

We a have a server with 5 differents IPs. 

How would it be possible to specify one IP (only one out of 5) to the
Zope server?

Thanks

Remy
___
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] Different IPs, one zope instance

2005-07-22 Thread Jonathan


- Original Message - 
From: Remy Pinsonnault [EMAIL PROTECTED]

To: zope@zope.org
Sent: Friday, July 22, 2005 4:16 PM
Subject: [Zope] Different IPs, one zope instance



Hello everyone,

We a have a server with 5 differents IPs.

How would it be possible to specify one IP (only one out of 5) to the
Zope server?



I'm not sure, but isn't this something you configure with the front-end http 
server (ie. Apache)?



Jonathan 



___
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] Different IPs, one zope instance

2005-07-22 Thread Jens Vagelpohl


On 22 Jul 2005, at 21:16, Remy Pinsonnault wrote:


Hello everyone,

We a have a server with 5 differents IPs.

How would it be possible to specify one IP (only one out of 5) to the
Zope server?


Yes. See the servers directive in zope.conf, which documents all  
this very well.


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 )