[Zope-dev] Images and Products

2001-03-26 Thread Andre Schubert

Hi all,

I have a little Problem on using Images in my Product.
If i'am logged in as Manager i can View the Image, but if logged in as
Anonymous i can't view the Image.
The View permission is assigned to Anonymous Role and the Image Foo is
assing to the View Permission, but i can't view the Image as Anonymous.

Source:
__ac_permissions=(
...
('View', ('index_html','Foo'), ('Manager',)),
...)

Foo = ImageFile('icons/foo.gif',globals())

Link:
http://www.somewhere.de/myProduct/Foo

Please Help, Thanks as


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



Re: [Zope-dev] Images and Products

2001-03-26 Thread Chris Withers

Andre Schubert wrote:
 
 ('View', ('index_html','Foo'), ('Manager',)),

 ^^ What's that doing in there?

cheers,

Chris

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



[Zope-dev] Zope 2.3.1b3 problem

2001-03-26 Thread Andy Dawkins

People

I have found this small problem but I don't know where it is coming from
or why.

If you create a Python Script in a folder:
---
print container.id

return printed
---

If fails with this error:

Error Type: TypeError
Error Value: call of non-function (type list)

Traceback (innermost last):
  File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line
223, in publish_module
  File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line
187, in publish
  File /usr/zope/zope-2_3_1b3/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
(Object: Traversable)
  File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line
171, in publish
  File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/mapply.py, line 160,
in mapply
(Object: h)
  File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line
112, in call_object
(Object: h)
  File /usr/zope/zope-2_3_1b3/lib/python/Shared/DC/Scripts/Bindings.py,
line 324, in __call__
(Object: h)
  File /usr/zope/zope-2_3_1b3/lib/python/Shared/DC/Scripts/Bindings.py,
line 353, in _bindAndExec
(Object: h)
  File
/usr/zope/zope-2_3_1b3/lib/python/Products/PythonScripts/PythonScript.py,
line 336, in _exec
(Object: h)
(Info: ({'script': PythonScript instance at 83c9878, 'context':
Folder instance at 874b608, 'container': Folder instance at 874b608,
'traverse_subpath': []}, (), {}, None))
  File Script (Python), line 2, in h
(Object: lambda)
TypeError: (see above)


I have managed to reproduce this on Zope 2.3.1b2 and Zope 2.3.1b3 but it
works fine on Zope 2.3.1b1

Any Ideas/Assistance?

-Andy

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



Re: [Zope-dev] Zope 2.3.1b3 problem

2001-03-26 Thread Phil Harris

Andy,

Try 

print container.getId()

return printed

hth

Phil



- Original Message - 
From: "Andy Dawkins" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 26, 2001 10:29 AM
Subject: [Zope-dev] Zope 2.3.1b3 problem


 People
 
 I have found this small problem but I don't know where it is coming from
 or why.
 
 If you create a Python Script in a folder:
 ---
 print container.id
 
 return printed
 ---
 
 If fails with this error:
 
 Error Type: TypeError
 Error Value: call of non-function (type list)
 
 Traceback (innermost last):
   File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line
 223, in publish_module
   File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line
 187, in publish
   File /usr/zope/zope-2_3_1b3/lib/python/Zope/__init__.py, line 221, in
 zpublisher_exception_hook
 (Object: Traversable)
   File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line
 171, in publish
   File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/mapply.py, line 160,
 in mapply
 (Object: h)
   File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line
 112, in call_object
 (Object: h)
   File /usr/zope/zope-2_3_1b3/lib/python/Shared/DC/Scripts/Bindings.py,
 line 324, in __call__
 (Object: h)
   File /usr/zope/zope-2_3_1b3/lib/python/Shared/DC/Scripts/Bindings.py,
 line 353, in _bindAndExec
 (Object: h)
   File
 /usr/zope/zope-2_3_1b3/lib/python/Products/PythonScripts/PythonScript.py,
 line 336, in _exec
 (Object: h)
 (Info: ({'script': PythonScript instance at 83c9878, 'context':
 Folder instance at 874b608, 'container': Folder instance at 874b608,
 'traverse_subpath': []}, (), {}, None))
   File Script (Python), line 2, in h
 (Object: lambda)
 TypeError: (see above)
 
 
 I have managed to reproduce this on Zope 2.3.1b2 and Zope 2.3.1b3 but it
 works fine on Zope 2.3.1b1
 
 Any Ideas/Assistance?
 
 -Andy
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )


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



Re: [Zope-dev] Zope 2.3.1b3 problem

2001-03-26 Thread Andy Dawkins

Phil Harris wrote:
 
 Andy,
 
 Try
 
 print container.getId()
 
 return printed
 
 hth
 
 Phil
 

That doesn't work either.

Prehaps I should have been more specific.

Generally _any_ calls on the container result in this error.

I used 'container.id' because this is the simplist one to reproduce.

In actual place where I am having this problem is where the container is
a foldish product writen by NIP.  But the fact that it is reproducable
with the standard Zope Folder shows that something is fubar.

I suspect the way container is implemented in PythonScript but I
(personnaly) don't want to jump in that peice of code unless absolutely
necersary.

Cheers Anyway tho'

-Andy

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



Re: [Zope-dev] Zope 2.3.1b3 problem

2001-03-26 Thread Martijn Pieters

On Mon, Mar 26, 2001 at 10:49:47AM +0100, Andy Dawkins wrote:
 Phil Harris wrote:
  
  Andy,
  
  Try
  
  print container.getId()
  
  return printed
  
  hth
  
  Phil
  
 
 That doesn't work either.
 
 Prehaps I should have been more specific.
 
 Generally _any_ calls on the container result in this error.
 
 I used 'container.id' because this is the simplist one to reproduce.
 
 In actual place where I am having this problem is where the container is
 a foldish product writen by NIP.  But the fact that it is reproducable
 with the standard Zope Folder shows that something is fubar.
 
 I suspect the way container is implemented in PythonScript but I
 (personnaly) don't want to jump in that peice of code unless absolutely
 necersary.

I'd file this in the Collector, I have seen another problem with Python
Scripts that seems related on the lists somewhere, I think something
changed out from under Ethan's feet..

-- 
Martijn Pieters
| Software Engineer  mailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
-

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



Re: [Zope-dev] Zope 2.3.1b3 problem

2001-03-26 Thread Andy Dawkins


 I'd file this in the Collector, I have seen another problem with Python
 Scripts that seems related on the lists somewhere, I think something
 changed out from under Ethan's feet..
 

This has been collected:

No. 2094

http://classic.zope.org:8080/Collector/2094/view

Cheers
-Andy

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



[Zope-dev] Core Session Tracking Problem?

2001-03-26 Thread Chris Withers

I've been noticing these sorts of messages in a number of our server logs:

2001-03-26T12:56:19 ERROR(200) ZODB Couldn't load state for
'\000\000\000\000\000\002\030\316'
Traceback (innermost last):
  File /mnt/data/2/zope/2-2-4_base/lib/python/ZODB/Connection.py, line 443, in
setstate
AttributeError: 'None' object has no attribute 'load'

I think I posted about it a while back, but I've started to notice that these
only occur in applications where wer'e using the Core Session Tracking product.
Given the low OID numbers, it does sound like it's something in the funky RAM
based session that's not being found, but I may be talking rubbish ;-)

Anyway, it occurs on Zope 2.2.4, 2.2.5, and 2.3.xbx.

Do core session tracking bugs go in the collector or somewhere else?

cheers,

Chris

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



[Zope-dev] LoginManager

2001-03-26 Thread Srinath Mantripragada

Hi,

I want to know howto use multiple usersSource in Login Manager, if it's
possible.

I have added 2 usersSoucers and created diferent methods for each
usersSource, but it authenticates only within the first userSource Listed.






--
Srinath Mantripragada
[EMAIL PROTECTED]

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



[Zope-dev] More Core Session Tracking Woes :-(

2001-03-26 Thread Chris Withers

Hi,

The setup:
-Zope 2.2.4
-Core Session Tracking 0.7
-Cookie session ID manager (path=/,lifetime=0)
-Internal Session Data Manager (timeout set to 60 minutes)

This seems to randomly (but sometimes very frequently) loose session data items
:-(

I've sprayed lots of log statements around (including in SessionData.invalidate,
to ensure I wasn't inadvertently calling it) and so far it appears that the
session id cookie is being returned by the browser (so path, lifetime, etc are
probably okay) but self.session.getSessionData().get('Type','') is often
returning an empty string, even when I know it has been set.

This is an intermittent problem though, so it's probably going to be a bitch to
track down :-( There's doesn't seem to be any correlation with the 'Can't Load
State for x' problem I reported earlier, but I guess it could be the same thing.

Anyway, please help, I'm loosing (hair|sleep|etc) over this :-(

cheers,

Chris

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



Re: [Zope-dev] More Core Session Tracking Woes :-(

2001-03-26 Thread Christian Scholz

Hi!

 The setup:
 -Zope 2.2.4
 -Core Session Tracking 0.7
 -Cookie session ID manager (path=/,lifetime=0)
 -Internal Session Data Manager (timeout set to 60 minutes)
 
 This seems to randomly (but sometimes very frequently) loose session data items
 :-(

FYI, you are not the only one.. I also experienced that. That's also the reason
why I am back to using SQLSession again..
(actually I was too lazy to track it down..)

-- mr topf

-- 
COM.lounge  http://comlounge.net/
communication  design [EMAIL PROTECTED]

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



Re: [Zope-dev] Core Session Tracking: onStart and onEnd?

2001-03-26 Thread Chris Withers

Chris Withers wrote:
 
 This is an intermittent problem though, so it's probably going to be a bitch to
 track down :-( There's doesn't seem to be any correlation with the 'Can't Load
 State for x' problem I reported earlier, but I guess it could be the same thing.

Hmmm... onStart and onEnd could be really useful to try and track down what's
going on here. Did anyone get anywhere in implementing those two?

cheers,

Chris

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



Re: [Zope-dev] More Core Session Tracking Woes :-(

2001-03-26 Thread Chris Withers

Christian Scholz wrote:
 
 FYI, you are not the only one.. I also experienced that. That's also the reason
 why I am back to using SQLSession again..

How hard was that to swap in? 

 (actually I was too lazy to track it down..)

Well, if it makes any difference, it doesn't _appear_ to happen in Zope 2.3.1b1,
but there are other reasons (Catalog, buggy Python Scripts) why we can't
currently move our production servers to 2.3.1b1-3...

cheers,

Chris

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



Re: [Zope-dev] More Core Session Tracking Woes :-(

2001-03-26 Thread Chris McDonough

 Well, if it makes any difference, it doesn't _appear_ to happen in Zope
2.3.1b1,
 but there are other reasons (Catalog, buggy Python Scripts) why we can't
 currently move our production servers to 2.3.1b1-3...

Hmmm... this sounds like a bug in expiration code.  I sent Chris a
prerelease CoreSessionTracking 0.8 which has new expiration code.  Hopefully
I can release soon.  I know I've been saying that for a while now... ;-)

BTW, what's the problem with the Catalog preventing you from moving to
2.3.1b3?



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



Re: [Zope-dev] More Core Session Tracking Woes :-(

2001-03-26 Thread Christian Scholz

Hi!

  FYI, you are not the only one.. I also experienced that. That's also the reason
  why I am back to using SQLSession again..
 
 How hard was that to swap in? 

depends. Of course the API is not the same.. So it depends if you've factored out
the session stuff in some dtml or python method which you simply have to change.
(and if you can factor it out, of course.. I basically just looked one variable
up in the session and copied it to REQUEST, so I simply had to change one header file).

Also I haven't written a plugin for my Virtual Site Root yet to make use of the
Core Session Tracking package so I cannot use it in siterooted environments yet
anyway..

cheers,
  MrT

-- 
COM.lounge  http://comlounge.net/
communication  design [EMAIL PROTECTED]

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



Re: [Zope-dev] More Core Session Tracking Woes :-(

2001-03-26 Thread Chris Withers

Chris McDonough wrote:
 
 Hmmm... this sounds like a bug in expiration code.  I sent Chris a
 prerelease CoreSessionTracking 0.8 which has new expiration code.  Hopefully
 I can release soon.  I know I've been saying that for a while now... ;-)

I'm checking this out right now :-)

Christian, mail me if you want a copy...

 BTW, what's the problem with the Catalog preventing you from moving to
 2.3.1b3?

Miscall on my part, sorry ;-) The only failing test we had on 2.3.1b3 was caused
by a problem with Python Scripts in b2 and b3, Philip Mayers posted a patch to
this on the zope list but there's been no word from Evan as to whether it's a
sound patch or not.

Thanks for all your help,

Chris

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



Re: [Zope-dev] Core Session Tracking: onStart and onEnd?

2001-03-26 Thread Chris McDonough

This is part of the new (as yet to be released) code that I sent to you
earlier.

- Original Message -
From: "Chris Withers" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; "Chris McDonough" [EMAIL PROTECTED]
Sent: Monday, March 26, 2001 10:20 AM
Subject: Re: [Zope-dev] Core Session Tracking: onStart and onEnd?


 Chris Withers wrote:
 
  This is an intermittent problem though, so it's probably going to be a
bitch to
  track down :-( There's doesn't seem to be any correlation with the
'Can't Load
  State for x' problem I reported earlier, but I guess it could be the
same thing.

 Hmmm... onStart and onEnd could be really useful to try and track down
what's
 going on here. Did anyone get anywhere in implementing those two?

 cheers,

 Chris

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



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



Re: [Zope-dev] FastCGI question

2001-03-26 Thread Michael Olivier

Thanks, John.  3 followup questions:
-- what is it skipping when you don't run pcgi/pcgi_publisher.py when you 
do this?
-- can mod_pcgi be used for a ZPublisher-only application (not full-up zope)?
-- If so, where can I find info/download on mod_pcgi?

Also would still like to hear other opinions on PCGI vs. FastCGI vs. proxypath.


At 11:35 PM 3/25/2001 -0800, John Eikenberry wrote:

I believe you can stop this just by changing the PCGI_PUBLISHER variable in
your Zope.cgi to a directory, /dev/null or something.

We do this for all our site, using the mod_pcgi apache module. It works
fairly well... at least well enough for us not to consider changing yet.

Michael Olivier wrote:

  At 07:33 PM 3/23/2001 -0800, sam gendler wrote:
  I haven't used Zope to any significant degree in over a year.  When I
  was last using Zope regularly, FastCGI still had some stability issues,
  which made it difficult to use in a production environment. However, I
  have always felt that FastCGI was the better solution when choosing
  between proxy, pcgi and fastcgi, from a theoretical standpoint.  Can
  someone comment as to the efficacy of using FastCGI to implement an
  interface between my HTTP enabled application and current version of
  Zope, or should I use one of the other solutions.
 
  Hi Sam and others --
 
  I was about to ask the same question myself.  I'm also wondering about
  switching solutions to FastCGI or proxy.  I read on the zope web site that
  zope.org is using the proxy approach.  Can someone in-the-know please shed
  some light?
 
  I'm using PCGI (2.0a4) with ZPublisher and while it's worked reasonably
  well for very small traffic levels, I have recently run into an issue 
 where
  lots of extra pcgi_publisher.py processes get started until the system
  grinds to a halt.  I found two old postings from others (John Eikenberry,
  Craig Allen) about this problem, including this one:
 
  http://classic.zope.org/pipermail/zope/1999-April/003926.html
 
  ... and am wondering if it's been solved and if there's a later release
  (Zope 2.3 stable has pcgi 2.0a4 still).
 
  Thanks!
  Michael


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



Re: [Zope-dev] 175 Million Email Addresses for $99 (4523)

2001-03-26 Thread Michael R. Bernstein

"[EMAIL PROTECTED]" wrote:
 
 A half-page ad in the Sunday New York Times can cost more than $50,000 and only 
reaches 4 million people.

SpamCopped.

http://spamcop.net/sc?id=z18008689zb12fa2894091c08b658348efed77122dz

Michael Bernstein.

P.S. Join in the fun! The more people report a particular
spammer, the better the chances that their ISP will shut
them down!

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



Re: [Zope-dev] 175 Million Email Addresses for $99 (4523)

2001-03-26 Thread Chris Withers

"Michael R. Bernstein" wrote:
 
 P.S. Join in the fun! The more people report a particular
 spammer, the better the chances that their ISP will shut
 them down!

Here! Here!

I spamcopped them this morning, too ;-)

cheers,

Chris

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



Re: [Zope-dev] FTP interface being worked on?

2001-03-26 Thread Fred Wilson Horch

Steve Spicklemire wrote:
 
 I posted this to the Wiki... but it's not "in-your-face" like email,
 so I never know if anyone reads it.

Thanks for sending this to e-mail.  (I never read the Wikis -- I mean
to, but never find the time.)

 I'm looking
 at all this from the perspective of someone who is using the current
 xml/zexp code to manage objects in CVS today

Can you tell me how you do that?  Our big problem is that we can't
import over existing objects.  Are we doing something wrong?

Here's our set up:

We have developers all over the world that can check code in and out of
SourceForge.  We'd like our developers to be able to work on our site
using their own local instances of Zope, export everything from their
Zope ODB to their local filesystem, then use CVS to check in all the
changes they've made to SourceForge.  Then to keep in synch, everyone
else can update their local copies of the source tree, and import the
updates into their local instances of Zope.

The problem: imports raise all sorts of conflict errors -- we basically
have to delete everything before importing it.

 It seems to me that the current import/export
 mechanism is actually pretty close to what we need for serialization.

I agree.  We also have the hooks for a file system like representation
already built in with the FTP interface.

So I think an evolution rather than a revolution it called for.

I want to comment on the rest of your message, but will have to do that
later in the week.

Thanks for sharing your ideas.
Fred
-- 
Fred Wilson Horch   mailto:[EMAIL PROTECTED]
Executive Director, EcoAccess   http://ecoaccess.org/
P.O. Box 2823, Durham, NC 27715-2823phone: 919.419-8354

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



Re: [Zope-dev] More Core Session Tracking Woes :-(

2001-03-26 Thread Chris Withers

Chris McDonough wrote:
 
 Hmmm... this sounds like a bug in expiration code.  I sent Chris a
 prerelease CoreSessionTracking 0.8 which has new expiration code.  Hopefully
 I can release soon.  I know I've been saying that for a while now... ;-)

Well, the prerelease seems to solve the problem :-)

cheers,

Chris

PS: Chris, any chance you could stick a version.txt in 0.8? I just got myself
real confused as to which version I was actually running thanks to a combination
of INSTANCE_HOME and the version not showing up on the products page ;-)

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



RE: [Zope-dev] Compiling Zope from source on Windows

2001-03-26 Thread Brian Lloyd

FYI: I've finally had time to finish my present :)


http://www.zope.org/Members/Brian/Misc/ExtensionBuilder/


Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909
Digital Creations  http://www.digicool.com




 -Original Message-
 From: Andy McKay [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, March 22, 2001 12:58 PM
 To: Chris Withers; Brian Lloyd
 Cc: [EMAIL PROTECTED]
 Subject: Re: [Zope-dev] Compiling Zope from source on Windows


 Wouldnt be anything to do with SQL would it? Brian did help me a
 while ago,
 I will have a look and see if I can find anything helpful... ;)
 --
   Andy McKay.


 - Original Message -
 From: "Chris Withers" [EMAIL PROTECTED]
 To: "Brian Lloyd" [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Thursday, March 22, 2001 9:47 AM
 Subject: Re: [Zope-dev] Compiling Zope from source on Windows


  Brian Lloyd wrote:
  
What I'm really looking for is how to compile Zope
from source on Windoze.  Anybody?
  
   I sent some info to Chris Withers recently, who promised
   to make it into a how-to. I'd say it's time to call him
   on it :)
 
  I haven't got it to work yet ;-)
 
  cheers,
 
  Chris
 
  PS: You'll see one of the things that's been sucking my time in a minute
 or two
  on [EMAIL PROTECTED] ;-)
 
  ___
  Zope-Dev maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope-dev
  **  No cross posts or HTML encoding!  **
  (Related lists -
   http://lists.zope.org/mailman/listinfo/zope-announce
   http://lists.zope.org/mailman/listinfo/zope )
 




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



Re: [Zope-dev] Images and Products

2001-03-26 Thread Dieter Maurer

Andre Schubert writes:
  I have a little Problem on using Images in my Product.
  If i'am logged in as Manager i can View the Image, but if logged in as
  Anonymous i can't view the Image.
  The View permission is assigned to Anonymous Role and the Image Foo is
  assing to the View Permission, but i can't view the Image as Anonymous.
  
  Source:
  __ac_permissions=(
  
  ('View', ('index_html','Foo'), ('Manager',)),
As Chris already pointed out:

  ^
does not work.

  Foo = ImageFile('icons/foo.gif',globals())
  
  Link:
  http://www.somewhere.de/myProduct/Foo
Access permissions are controlled by the permission
of "ImageFile.index_html" which requires view permission.

I expect, you have somehow broken the acquisition chain.
Does your product inherits "Acquisition.{Ex|Im}plicit"
or at least "ExtensionClass.Base"?
If not, Zope's permission machinery will not work.


Dieter

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



Re: [Zope-dev] FTP interface being worked on?

2001-03-26 Thread Steve Spicklemire


Hi Fred,

 "Fred" == Fred Wilson Horch [EMAIL PROTECTED] writes:

Fred Steve Spicklemire wrote:

 I'm looking at all this from the perspective of someone who is
 using the current xml/zexp code to manage objects in CVS today

Fred Can you tell me how you do that?  Our big problem is that we
Fred can't import over existing objects.  Are we doing something
Fred wrong?

I use ZCVSMixin (http://www.zope.org/Members/sspickle/ZCVSMixin).

Fred Here's our set up:

Fred We have developers all over the world that can check code in
Fred and out of SourceForge.  We'd like our developers to be able
Fred to work on our site using their own local instances of Zope,
Fred export everything from their Zope ODB to their local
Fred filesystem, then use CVS to check in all the changes they've
Fred made to SourceForge.  Then to keep in synch, everyone else
Fred can update their local copies of the source tree, and import
Fred the updates into their local instances of Zope.

Fred The problem: imports raise all sorts of conflict errors --
Fred we basically have to delete everything before importing it.

ZCVSMixin does the loading of objects into folderish containers
so conflict errors are not a problem. This naturally means that
you can destroy things if you're not careful. (Motto: a tool that
doesn't let you destroy things now  then.. is a weak tool.)

-steve


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



Re: [Zope-dev] FTP interface being worked on?

2001-03-26 Thread Karl Anderson

Chris McDonough [EMAIL PROTECTED] writes:

 I think the only good reasons we have right now for having
 filesystem-compatible serialization are to make Zope content editable via
 common tools in a way that makes sense to people not used to (or comfortable
 with) the object database, and to give people a plausible way to put a Zope
 site under source control.
 
 Are you thinking that we would build client-side tools to recognize an XML
 representation of a subpart of a site?

Client-side tools, no.  I'm thinking that exporting to XML would allow
existing tools to recognize and manipulate a subpart of a site.

I'm basically agreeing with you - "common tools" for manipulating text
sounds like parsers to me.

I'm not sure why XML is considered less readable than an unknown
format for Zope object serialization; I guess I haven't seen what's
being considered.  But it seems to me that for humans, XML might lose
by a little, but for any type of mediated or batch processing, XML
wins by a lot.  Parsers are standard enough that their APIs are easy
to learn if you've played with them before.

Random human-editable text formats sounds like StructuredText; when I
think of StructuredText I think "simple DOM serialization".

Is there a particular set of tools or editing paradigms that we have
in mind when we say that a non-XML representation is suited for client
side tools?

This is the way that Manila seems to be doing it:
http://www.thetwowayweb.com/theXmlFiles

-- 
Karl Anderson  [EMAIL PROTECTED]

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



Re: [Zope-dev] FTP interface being worked on?

2001-03-26 Thread Chris McDonough

  Are you thinking that we would build client-side tools to recognize an
XML
  representation of a subpart of a site?

 Client-side tools, no.  I'm thinking that exporting to XML would allow
 existing tools to recognize and manipulate a subpart of a site.

Which ones?

 I'm basically agreeing with you - "common tools" for manipulating text
 sounds like parsers to me.

 I'm not sure why XML is considered less readable than an unknown
 format for Zope object serialization; I guess I haven't seen what's
 being considered.  But it seems to me that for humans, XML might lose
 by a little, but for any type of mediated or batch processing, XML
 wins by a lot.  Parsers are standard enough that their APIs are easy
 to learn if you've played with them before.

XML doesn't play with diff very well... additionally, XML isn't as easy to
work with as what I think it should look like.  For example, I'd rather
serialize a PythonScript into:

   def foo(self):
   print "hi!"

than...

   ?xml version="1.0"?
 pythonscript
function
   functiondef name="foo"
 argself/arg
   /functiondef
   functionbody
print "hi!"
   /functionbody
 /function
  /pythonscript

The former is easier to understand.

 Is there a particular set of tools or editing paradigms that we have
 in mind when we say that a non-XML representation is suited for client
 side tools?

Yes.. anything that works well with diff and CVS and is recognizable by a
human.  PythonScripts should be serialized to something that looks like a
regular Python script.  Images should look like images, etc.  The directory
tree generated should look as much as possible like a normal filesystem.

I can see a middle ground that's more parser-friendly, but it's sorta a
different goal AFAICT.  An XML rep might let you use something like XSLT to
do some transformation across all the representations of the objects that a
more human-friendly representation wouldn't, but it would lose lots of other
utility which I think is more aligned with the goals of the proposal I put
up... that's not to say that a middle-ground XML representation somewhere
between "ppml" (XML export format) and human-friendly isn't something that's
desirable for lots of folks, it's just not what the proposal was about.



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



Re: [Zope-dev] FTP interface being worked on?

2001-03-26 Thread Fred Wilson Horch

Wanted to follow up on Steve's points.

He wrote in part:
 
 [...] It seems to me that the current import/export
 mechanism is actually pretty close to what we need for serialization.[...]
 
 A) All objects are faithfully encoded and saved on the filesystem
   in a text format that any configuration management system can
   use and track. [...]
 
 B) Whole object hierarchies can be saved in a simple file, moved
   to any other zope instance (via checkin/checkout) and instantiated. [...]
 
 C) It's possible (through a hack[1]) to make simple objects 'diff'able
   so that all the metadata that's in the current xml export rep doesn't
   get in the way too much. [...]
 
 There are also a few not-so-nice properties:
 
 D) The current xml representation use by xml import/export is morally
   binary, in the sense that you can't easily edit/manage it with
   ordinary editors etc.
 
 E) There is no simple way to separate the contents of a containerish
   object from the container.
 
 [...] Imagine the following:
 
 A 'serialization' interface is invented that objects could implement
 that preserve A-C, and, optionally, fix D-E. If no such interface
 is found, the current export method is invoked. [...]

I don't know if we need just one serialization interface that tries to
solve all five issues.

We currently have two serialization interfaces in Zope:

 1) the FTP interface, and
 2) the XML export interface.

Seems to me that the FTP interface could be generalized as the "lossy"
serialization interface that is "morally human readable" and the XML
export interface could be tweaked a bit as "lossless" but "morally
binary".

The FTP interface would be used when you want a representation that can
be edited by hand.  It solves C, D and E, but not A and B.

The XML interface would be used when you want a representation that can
be manipulated programmatically.  It solves A and B, but not C, D and E.

FWIW, I'm working on tweaking the XML export/import code to serialize
object hierarchies as directories and files, rather than exporting a
single file.

Fred

P.S.  The link Karl sent (http://www.thetwowayweb.com/theXmlFiles) is
interesting.
-- 
Fred Wilson Horch   mailto:[EMAIL PROTECTED]
Executive Director, EcoAccess   http://ecoaccess.org/
P.O. Box 2823, Durham, NC 27715-2823phone: 919.419-8354

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



Re: [Zope-dev] Images and Products

2001-03-26 Thread Andre Schubert

Hi,

My Products Inherits Acquisition.Implicit. Anonymous Users have the View
Permission and it's aquired into my Product.
Is there a bugfix that i have forgot to fix ??

-as

Dieter Maurer schrieb:

 Andre Schubert writes:
   I have a little Problem on using Images in my Product.
   If i'am logged in as Manager i can View the Image, but if logged in as
   Anonymous i can't view the Image.
   The View permission is assigned to Anonymous Role and the Image Foo is
   assing to the View Permission, but i can't view the Image as Anonymous.
  
   Source:
   __ac_permissions=(
   
   ('View', ('index_html','Foo'), ('Manager',)),
 As Chris already pointed out:

   ^
 does not work.

   Foo = ImageFile('icons/foo.gif',globals())
  
   Link:
   http://www.somewhere.de/myProduct/Foo
 Access permissions are controlled by the permission
 of "ImageFile.index_html" which requires view permission.

 I expect, you have somehow broken the acquisition chain.
 Does your product inherits "Acquisition.{Ex|Im}plicit"
 or at least "ExtensionClass.Base"?
 If not, Zope's permission machinery will not work.

 Dieter


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