Re: [Zope] ZClasses & inheriting property(sheets) : yes/no?

2000-11-10 Thread Aaron Straup Cope

Thanks!

I have a new question that may (?) be the same old one in a different
form:

The idea is to have two ZClasses, say Foo and Bar. Bar is a nested class 
of Foo. The Foo object should be able create n instances of the Bar
objects and the Bar object should also be able to create n instances of
other Bar objects.

Creating Bar in Foo is no problem.
Creating Bar in Bar is a problem since Zope won't display the interface
for adding objects. Adding new Bars is selected in the permissions
menu/tab for both ZClasses.

Foo inherits ZClass:ObjectManager and Bar is a "child" of Foo. I've tried
grovelling around the mailing-lists and seen discussions about inheriting
OFS:Folder and/or issues of folderish-ness.

I tried making Bar inherit OFS:Folder, but then I just got a popup menu
that lets me create Foo, but not Bar.

I'm confused and starting to feel like a bit of a dumb-ass. Can someone
point me in the right direction? Thanks,


On Fri, 10 Nov 2000, Jim Washington wrote:

> Hi, Aaron
> 
> Yes.
> 
> If your parent ZClass is constructed properly, you should be able to add
> the parent class's management tabs by setting a "view". On the "Views"
> tab, look in the Method list for
> propertysheets/[ParentClassPropertySheetName]/manage.  The properties on
> that sheet are accessible just like any of the child class's properties.
> 
> -- Jim Washington



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




[Zope] ZClasses & inheriting property(sheets) : yes/no?

2000-11-10 Thread Aaron Straup Cope

Hi,

If I create a ZClass that inherits another ZClass, do I also inherit the
latter's properties/propertysheet? From what I've read so far, I thought
the answer was yes but I can't seem to figure out how to *get* at them.

I created a ZClass called "Foo" that inherits a ZClass named "Meta". Meta
had two properties : author and title but neither appear to be set when
I create a new Foo object.

I banged out something in plain-old Python (see below) since I was pretty
sure this was the kind of thing Python was so good for (I am normally a
Perl weeniesh :-) and everything worked fine.

I've been looking around the docs and the how-to's but nothing seems to
discuss the idea of inheriting properties (?) across ZClasses. Is it
possible?

Thanks,

class Meta:
   def __init__(self,title,author,timestamp,keywords,body,public,display):
   self.title = title
   self.author= author
   self.timestamp = timestamp
   self.keywords  = keywords
   self.body  = body
   self.display   = display
   self.public= public



from Meta import Meta
class Library(Meta):
  def
__init__(self,title,author,timestamp,keywords,body,public,display,foo,bar=""):

Meta.__init__(self,title,author,timestamp,keywords,body,public,display)
  self.foo = foo
  self.bar = bar



from Meta import Meta
class LibraryClass(Meta):
  def __init__(self,title,author,timestamp,keywords,body,public,display):
Meta.__init__(self,title,author,timestamp,keywords,body,public,display)

***

# from yadda yadda import ...
lib  = Library("budwork","bud","now",["foo","bar"],"bobdy",1,0,"foopybird")
libclass = LibraryClass("classwork","bud","now",["foo","bar"],"bobdy",1,0)

print "Class Title is " + lib.title
print "LibClass Title is " + libclass.title




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




Re: [Zope] Products, ZClasses and CatalogAware-ness

2000-11-09 Thread Aaron Straup Cope

Thanks. If I a ZClass that is CatalogAware and contains n number of nested
ZClasses, am I correct to assume that the children (and their
children) inherit the original "awareness" ?

On Thu, 9 Nov 2000, Andy McKay wrote:

> [..]
> 
> > Hi,
> >
> > Could someone clarify the following for me:
> >
> > I would like to create a Product that instantiates itself with a ZCatalog
> > and a search interface "built-in". I'd like make all the Product's
> > ZClasses update the catalog whenever they are changed.
> >
> > If I make all the classes catalog-aware and point them to the name of the
> > "root" ZCatalog, will they (re)index the root catalog or a catalog local
> > to the class itself?
> 
> They find the closest item called 'Catalog', which may be the root if there
> is no other item "closer".
> 
> > If the latter, can I force [it] to do the former?
> 
> Fiddle around with what Catalog is the closest.
> 
> --
>   Andy McKay, Developer.
>   ActiveState.
> 
> 


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




[Zope] Products, ZClasses and CatalogAware-ness

2000-11-09 Thread Aaron Straup Cope

Hi,

Could someone clarify the following for me:

I would like to create a Product that instantiates itself with a ZCatalog
and a search interface "built-in". I'd like make all the Product's
ZClasses update the catalog whenever they are changed. 

If I make all the classes catalog-aware and point them to the name of the
"root" ZCatalog, will they (re)index the root catalog or a catalog local
to the class itself? If the latter, can I force [it] to do the former?

Thanks,

+ Product 
  + ZClass 
  + ZClass 
  + ZCatalog 
- search/index_html 
- results
  + ...


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




Re: [Zope] zlib.error : huh?

2000-11-09 Thread Aaron Straup Cope

Oh yeah, cookies. Okay.

Is there a workaround/Product that solves this problem? If it's just
a cookie thing, I don't know what it would be but I figure it doesn't hurt
to ask.

On Thu, 9 Nov 2000, Shane Hathaway wrote:

> Aaron Straup Cope wrote:
> > 
> > I am trying to understand what exactly is going on when Zope returns an
> > Error -5 page.
> > 
> > Normally, this only happens on the left hand navigational menu but today
> > it happened while I was expanding an xml document/tree object from the
> > Examples package for the XML Document product.
> > 
> > I've tried searching Google, the Zope site and the mailing list but to no
> > avail. Could someone please explain what's going on here? Is it me? Is it
> > Zope? How exactly do I prevent these errors from happening?
> 
> Here's my guess: you have a complex XML document.  As you explore the
> document, Zope is setting a cookie that reflects the list of branches
> you have opened.  After opening a large number of branches, you reach
> the limit on the size of a cookie (somewhere in the range of 1024 or
> 4096 bytes), making it so that the compressed data stored in the cookie
> gets truncated.  zlib then emits this cryptic error message.
> 
> Shane
> 
> > 
> > Thanks,
> > 
> > Error Type: zlib.error
> > Error Value: Error -5 while decompressing data: []
> > 
> > Traceback (innermost last):
> >   File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 222, in
> > publish_module
> >   File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 187, in
> > publish
> >   File /usr/local/zope.old/lib/python/Zope/__init__.py, line 221, in
> > zpublisher_exception_hook
> > (Object: Traversable)
> >   File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 171, in
> > publish
> >   File /usr/local/zope.old/lib/python/ZPublisher/mapply.py, line 160, in
> > mapply
> > (Object: tree)
> >   File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 112, in
> > call_object
> > (Object: tree)
> >   File /usr/local/zope.old/lib/python/OFS/DTMLDocument.py, line 177, in
> > __call__
> > (Object: tree)
> >   File /usr/local/zope.old/lib/python/DocumentTemplate/DT_String.py, line
> > 528, in __call__
> > (Object: tree)
> >   File /usr/local/zope.old/lib/python/TreeDisplay/TreeTag.py, line 154, in
> > render
> > (Object: test[0])
> >   File /usr/local/zope.old/lib/python/TreeDisplay/TreeTag.py, line 229, in
> > tpRender
> > (Object: Manageable)
> >   File /usr/local/zope.old/lib/python/TreeDisplay/TreeTag.py, line 637, in
> > decode_seq
> > zlib.error: (see above)
> > 
> > ___
> > Zope maillist  -  [EMAIL PROTECTED]
> > http://lists.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope-dev )
> 




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




[Zope] zlib.error : huh?

2000-11-09 Thread Aaron Straup Cope

I am trying to understand what exactly is going on when Zope returns an
Error -5 page.

Normally, this only happens on the left hand navigational menu but today
it happened while I was expanding an xml document/tree object from the  
Examples package for the XML Document product.

I've tried searching Google, the Zope site and the mailing list but to no
avail. Could someone please explain what's going on here? Is it me? Is it
Zope? How exactly do I prevent these errors from happening?

Thanks,

Error Type: zlib.error
Error Value: Error -5 while decompressing data: []

Traceback (innermost last):
  File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 222, in
publish_module
  File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 187, in
publish
  File /usr/local/zope.old/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
(Object: Traversable)
  File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 171, in
publish
  File /usr/local/zope.old/lib/python/ZPublisher/mapply.py, line 160, in
mapply
(Object: tree)
  File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 112, in
call_object
(Object: tree)
  File /usr/local/zope.old/lib/python/OFS/DTMLDocument.py, line 177, in
__call__
(Object: tree)
  File /usr/local/zope.old/lib/python/DocumentTemplate/DT_String.py, line
528, in __call__
(Object: tree)
  File /usr/local/zope.old/lib/python/TreeDisplay/TreeTag.py, line 154, in
render
(Object: test[0])
  File /usr/local/zope.old/lib/python/TreeDisplay/TreeTag.py, line 229, in
tpRender
(Object: Manageable)
  File /usr/local/zope.old/lib/python/TreeDisplay/TreeTag.py, line 637, in
decode_seq
zlib.error: (see above)



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




[Zope] Products : dependencies (or who's on first?)

2000-11-01 Thread Aaron Straup Cope

Okay, here goes : 

I installed the PTK product some time ago, decided that it wasn't where I
needed to be right now and moved on to something else.

Today I finally decided to delete it from my Products folder. Shortly
afterwards, I noticed that both my existing FlexFAQ and ZDiscussion
objects were "broken" (with the little broken icons in the manager
view.) and Zope was spewing errors to STDOUT complaining that it "Could
not load oid" (I'm sorry, I don't have the traceback...doh!)

I could add new FF/ZD objects but I couldn't access the old ones.

I deleted ZDbase and ZDiscussion and restarted Zope. I couldn't import a
fresh copy of ZDiscussions.zexp (see error below) but suddenly my old set
up is working again. Except I can't create new ZD* objects since the
Product isn't installed. ( I can create new FF objects.)

In the meantime, when I restart Zope it prints errors about not being able
to install the "Wizard" product or the "Demo Portal" Products (see
below.) In the meantime, the "PTKDemo" and "PTKBase" Products keep showing
up the Products table even though I keep trying to delete them.

Can someone please help me understand what on earth is going on? Is the
ZODB corrupted? Have I inadvertently set up some level of dependency
across Products? I have done Google searches and seen that this has
cropped up on the mailing list before, but I can't seem to figure out how
to address the problem or insure that doesn't happen again.

I am still pretty new to all of this and I am having a hard time
understanding the relationship between alot of seemingly abritrary
errors. Any help would be very much appreciated. 

Thankseep!

a) Starting Zope

2000-11-01T20:01:04 ERROR(200) Zope Couldn't install Wizard
Traceback (innermost last):
  File /usr/local/zope.old/lib/python/OFS/Application.py, line 477, in
install_products
(Object: ApplicationDefaultPermissions)
(Info: Wizard)
  File /usr/local/zope.old/lib/python/App/Product.py, line 447, in
initializeProduct
(Object: Products.Wizard)
  File /usr/local/zope.old/lib/python/OFS/ObjectManager.py, line 264, in
_setObject
(Object: Traversable)
  File /usr/local/zope.old/lib/python/OFS/ObjectManager.py, line 272, in
manage_afterAdd
(Object: Traversable)
  File /usr/local/zope.old/lib/python/ZClasses/ZClass.py, line 421, in
manage_afterAdd
(Object: Wizard)
  File /usr/local/zope.old/lib/python/ZClasses/ZClass.py, line 375, in
_register
(Object: Wizard)
Duplicate Class Ids

b) Importing ZDiscussions.zexp

Traceback (innermost last):
  File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 222, in
publish_module
  File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 187, in
publish
  File /usr/local/zope.old/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
(Object: Traversable)
  File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 171, in
publish
  File /usr/local/zope.old/lib/python/ZPublisher/mapply.py, line 160, in
mapply
(Object: manage_importObject)
  File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 112, in
call_object
(Object: manage_importObject)
  File /usr/local/zope.old/lib/python/OFS/ObjectManager.py, line 509, in
manage_importObject
(Object: Traversable)
  File /usr/local/zope.old/lib/python/OFS/ObjectManager.py, line 264, in
_setObject
(Object: Traversable)
  File /usr/local/zope.old/lib/python/OFS/ObjectManager.py, line 272, in
manage_afterAdd
(Object: Traversable)
  File /usr/local/zope.old/lib/python/ZClasses/ZClass.py, line 421, in
manage_afterAdd
(Object: ZDTopic)
  File /usr/local/zope.old/lib/python/ZClasses/ZClass.py, line 375, in
_register
(Object: ZDTopic)
Duplicate Class Ids: (see above)




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




RE: [Zope] Zope & Apache/ProxyPass : environment variables

2000-10-31 Thread Aaron Straup Cope

Thanks. It appears, though, that there is no way to do this without
appending a query string to the redirected URL. Is this correct?

I'd like to be able to perform all authentication in Apache-land on the
SSL and, if successful, hand the request off the Zope. The thing is, I
still need to know who's actually authenticated once they readch
Zope-world and assinging REMOTE_USER to a request parameter doesn't make
me very comfortable.

Alas...

On Tue, 31 Oct 2000, TFE WSD JARVIS JOHN wrote:

> Yes, but you have to do in it a round about way.
> (Actually, I've seen mention of a patch to Apache that 
> does this, but I don't think it's neccessary)
> 
> Here's the setup I'm using:
> RewriteEngine On
> RewriteRule ^/Zope(.*)   http://localhost:8080/$1?client_ip=%{REMOTE_ADDR}
> [QSA,L,P]
> RewriteRule ^/p_/(.*)http://localhost:8080/p_/$1 [L,P]
> RewriteRule ^/misc_/(.*) http://localhost:8080/misc_/$1 [L,P]
> 
> In this case, REMOTE_ADDR will be available in the 
> REQUEST namespace under "client_ip"
> 
> HTH
> 
> > -Original Message-
> > From:   Aaron Straup Cope [SMTP:[EMAIL PROTECTED]]
> > Sent:   Tuesday, October 31, 2000 5:47 AM
> > To: [EMAIL PROTECTED]
> > Subject:[Zope] Zope & Apache/ProxyPass : environment variables
> > 
> > Hi,
> > 
> > Does anyone know if it is even *possible* to pass environment variables
> > (specifically REMOTE_USER) to Zope when it is set up behind
> > Apache/ProxyPass.
> > 
> > I've looked around the list archives, and the Apache docs and tried a
> > bunch of different configs but nothing works. I'm starting to wonder if
> > it's all in vain.
> > 
> > Thanks,
> > 
> > 
> > 
> > ___
> > Zope maillist  -  [EMAIL PROTECTED]
> > http://lists.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists - 
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope-dev )
> 


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




[Zope] Zope & Apache/ProxyPass : environment variables

2000-10-30 Thread Aaron Straup Cope

Hi,

Does anyone know if it is even *possible* to pass environment variables
(specifically REMOTE_USER) to Zope when it is set up behind
Apache/ProxyPass.

I've looked around the list archives, and the Apache docs and tried a
bunch of different configs but nothing works. I'm starting to wonder if
it's all in vain.

Thanks,



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




Re: [Zope] OT: documentation systems.

2000-10-19 Thread Aaron Straup Cope

I've been using the RadioUserland (nee Frontier) outliner to document the
Zope system I am building. It saves the outline files as XML documents so
I get to have a full-featured outliner to organzie my thoughts and a
(sort of) universal file format to share with people.

http://radio.userland.com

There's alreast atleast one XML stylesheet for the outline documents :

http://www.whump.com/www/xmlone/source/outline/outline.xsl

On Thu, 19 Oct 2000, Terry Kerr wrote:

> Hi,
> 
> What documentation systems to people use for developing offline hardcopy
> and online user documentation for applications that they develop?  I am
> writing an extensive application using zope, and it needs a lot of user
> documentation.  The system I use won't necessarily have to be web
> based...I just wants something that is effect.
> 
> terry
> 
> 
> --
> Terry Kerr ([EMAIL PROTECTED])
> Adroit Internet Solutions Pty Ltd (www.adroit.net)
> Phone:   +613 9563 4461
> Fax: +613 9563 3856
> Mobile:  +61 414 708 124
> ICQ: 79303381
> 
> 
> 
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
> 
> 


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




Re: [Zope] ZSQL Method & AUTHENTICATED_USER

2000-10-18 Thread Aaron Straup Cope



Thanks. It was a syntax issue. I think I tried every single variation on
passing variables to the method except that one. Sorry for the bother,
folks... :-)

On 18 Oct 2000, Jon Prettyman wrote:

> I'm pretty sure that all variables have to be passed in explicitly
> with SQLMethods.  Namespaces are not passed in.
> 
> Try specifying username as an argument in the ZSQLMethods edit form
> and pass it in like this:
> "lookup_by_username(username=REQUEST.AUTHENTICATED_USER.getUserName()">
> 
> (Untested)
> 
> -jon
> 
> Aaron Straup Cope <[EMAIL PROTECTED]> writes:
> 
> > Hi,
> > 
> > I'm trying to perform a simple MySQL lookup based on the
> > AUTHENTICATED_USER. When I test the ZSQL method from the management
> > interface, everything works fine. However, when I try to call the method
> > from a DTML document, [it] returns nothing.
> > 
> > Is this a namespace issue? I'm stumped and hoping that I'm not staring
> > right past the problem. Can anyone point out what it is I am doing
> > wrong? Thanks,
> > 
> > a) DTML Document : foo
> > 
> > 
> >  
> >   
> >  
> > 
> > 
> > b) ZSQL Method : people.lookup_by_username
> > 
> > select * from people where username = " > "REQUEST.AUTHENTICATED_USER.getUserName()">"
> > 
> > 
> > 
> > ___
> > Zope maillist  -  [EMAIL PROTECTED]
> > http://lists.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists - 
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope-dev )
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
> 
> 


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




[Zope] ZSQL Method & AUTHENTICATED_USER

2000-10-18 Thread Aaron Straup Cope

Hi,

I'm trying to perform a simple MySQL lookup based on the
AUTHENTICATED_USER. When I test the ZSQL method from the management
interface, everything works fine. However, when I try to call the method
from a DTML document, [it] returns nothing.

Is this a namespace issue? I'm stumped and hoping that I'm not staring
right past the problem. Can anyone point out what it is I am doing
wrong? Thanks,

a) DTML Document : foo


 
  
 


b) ZSQL Method : people.lookup_by_username

select * from people where username = ""



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




[Zope] Determining permissions in a Product

2000-10-17 Thread Aaron Straup Cope

Hi,

Is there a clever way of determining/debugging the required permissions
and/or roles for a given Product? I know that it's pretty straightforward
if the product is released as a capital-P Product, but I am less sure
about looking through a .exp file.

I am trying to get FlexFAQ2 set up with the minimum set of permissions. If
I understand the docs correctly, I have enabled the right flags but still
I get prompted for a username/password when I try to add an item.

Obviously, I would like to solve this problem I would be very interested
to hear about more general approaches to problem solving products.

Thanks,



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




[Zope] proxied proxies with Zope & Apache

2000-10-13 Thread Aaron Straup Cope

Hi,

I have Zope set up running with Apache/SSL using mod_proxy and the
SiteRoot product. Everything works fine.

The thing is, if I understand stuff correctly, all the requests to
https://hostname.com get handed off to Zope. I would like to be able use
the same hostname for plain old Apache-isms (cgi php etc) because the
users of the site shouldn't have to rememeber YA-hostname.

I would like to be able to do the following :

https://hostname/foo-->https://zope.hostname/foo -->http://hostname:8080/foo
https://hostname/bar-->/htdocs/bar

a) hostname:443
ProxyPass  /foo  https://zope.hostname/foo

b) zope.hostname:443
ProxyPass /   http:hostname:8080/

(where the SiteRoot in the Zope tree points to https://zope.hostname)

When I try to do this, regardless of whether I use mod_proxy or
mod_rewrite, Apache returns a 403 error :

"You don't have permission to access /documents on this server."

Should the Zope SiteRoot point to https://hostname instead of
https://zope.hostname?

I know that I could set up multiple ProxyPass statements (and
corresponding SiteRoot objects) in the Apache conf file, but I would
really prefer to set up a standalone Zope https setup (mostly for
administrative purposes) and then proxy those aspects of Zope that are
pubic automagically to the default Apache setup.

I am dreaming? The rewrite/proxy stuff is still like voodoo for me most
days so any advice or suggestions would be welcome. Thanks,


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




Re: [Zope] Newbie question : ZopeTime & permissions

2000-10-10 Thread Aaron Straup Cope

Yes, it was a misunderstanding regarding basic user permissions and the
Anonymous role on my part.

I did not want to allow the Anonymous role *any* permissions, and the
site I am working in is contained in a folder beneath the root Zope
folder. 

The problem was that I had disabled the "Access contents
information" privilege for the Anonymous user (whose permissions I forgot
are inherited by all other users) at the root level, thus preventing Joe
User from being able to access internals(?) like
ZopeTime even if [it] had permissions at a sub-directory level.

If I've got it wrong, I would be grateful if someone would correct
me. Otherwise, I hope that helps other newbies who find themselves in a
similar situation.

On Sun, 8 Oct 2000, Dieter Maurer wrote:

> Aaron Straup Cope writes:
>  > My problem is that I can't seem to figure out, specifically, which
>  > permissions to give a user that will allow them to read ZopeTime().
> Strange...
> 
> "DateTime.DateTime" objects (and therefore "ZopeTime") are
> explicitely unprotected (and can be used by everyone).
> 
> I tried your example as "Anonymous" (Zope 2.2.2) and
> it worked as expected (i.e. no NameError).
> 
> 
> Dieter
> 


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




Re: [Zope] Newbie question : ZopeTime & permissions

2000-10-06 Thread Aaron Straup Cope

Doh! Sorry.

Error Type: KeyError
Error Value: ZopeTime

On Fri, 6 Oct 2000, knight wrote:

> Aaron, you left out the error. What was it...
> 
> On Fri, 6 Oct 2000, Aaron Straup Cope wrote:
> 
> > Hi,
> > 
> > My name is Aaron.
> > 
> > I am trying to set up zope with (atleast) three roles : manager, admin,
> > user.
> > 
> > I'd like to give the last two the bare minimum Security permissions
> > possible and adding them as needed later on. 
> > 
> > My problem is that I can't seem to figure out, specifically, which
> > permissions to give a user that will allow them to read ZopeTime().
> > 
> > (see below)
> > 
> > For the admin user, I have set the Access content information and View *
> > options globally. I've tried guessing at some others, but there are alot
> > of possible combinations to try so I thought maybe I would just ask.
> > 
> > Related, is there a detailed description of the default Security
> > settings? I've checked the mailing lists and the Zope docs and if it's
> > there, I guess I missed it.
> > 
> > Thanks,
> > 
> > 
> > 
> > 
> > 
> > 
> > Traceback (innermost last):
> >   File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 222, in
> > publish_module
> >   File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 187, in
> > publish
> >   File /usr/local/zope.old/lib/python/Zope/__init__.py, line 221, in
> > zpublisher_exception_hook
> > (Object: Traversable)
> >   File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 171, in
> > publish
> >   File /usr/local/zope.old/lib/python/ZPublisher/mapply.py, line 160, in
> > mapply
> > (Object: test)
> >   File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 112, in
> > call_object
> > (Object: test)
> >   File /usr/local/zope.old/lib/python/OFS/DTMLDocument.py, line 177, in
> > __call__
> > (Object: test)
> >   File /usr/local/zope.old/lib/python/DocumentTemplate/DT_String.py, line
> > 528, in __call__
> > (Object: test)
> >   File /usr/local/zope.old/lib/python/DocumentTemplate/DT_Util.py, line
> > 337, in eval
> > (Object: REQUEST.set('ts', ZopeTime()))
> > (Info: REQUEST)
> >   File , line 0, in ?
> > NameError: (see above)
> > 
> > 
> > ___
> > Zope maillist  -  [EMAIL PROTECTED]
> > http://lists.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists - 
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope-dev )
> > 
> > 
> 
> 


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




[Zope] Newbie question : ZopeTime & permissions

2000-10-06 Thread Aaron Straup Cope

Hi,

My name is Aaron.

I am trying to set up zope with (atleast) three roles : manager, admin,
user.

I'd like to give the last two the bare minimum Security permissions
possible and adding them as needed later on. 

My problem is that I can't seem to figure out, specifically, which
permissions to give a user that will allow them to read ZopeTime().

(see below)

For the admin user, I have set the Access content information and View *
options globally. I've tried guessing at some others, but there are alot
of possible combinations to try so I thought maybe I would just ask.

Related, is there a detailed description of the default Security
settings? I've checked the mailing lists and the Zope docs and if it's
there, I guess I missed it.

Thanks,






Traceback (innermost last):
  File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 222, in
publish_module
  File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 187, in
publish
  File /usr/local/zope.old/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
(Object: Traversable)
  File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 171, in
publish
  File /usr/local/zope.old/lib/python/ZPublisher/mapply.py, line 160, in
mapply
(Object: test)
  File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 112, in
call_object
(Object: test)
  File /usr/local/zope.old/lib/python/OFS/DTMLDocument.py, line 177, in
__call__
(Object: test)
  File /usr/local/zope.old/lib/python/DocumentTemplate/DT_String.py, line
528, in __call__
(Object: test)
  File /usr/local/zope.old/lib/python/DocumentTemplate/DT_Util.py, line
337, in eval
(Object: REQUEST.set('ts', ZopeTime()))
(Info: REQUEST)
  File , line 0, in ?
NameError: (see above)


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