Re: [Zope] sendmail

2000-09-21 Thread Martijn Pieters
On Tue, Sep 19, 2000 at 09:05:12AM -0400, Jason Cunliffe wrote: - Original Message - From: J. Atwood [EMAIL PROTECTED] It looks like the email address you are sending (testing) to is not valid. "host not found" That can't be right. I have tried with a couple of known

Re: [Zope] Folderish DTML Document

2000-09-21 Thread Chris Withers
Andy McKay wrote: Sure it works but Im creating 2 objects a folder and a index_html for every one occurence. Im doubling my database for every object. Ugh! I really wouldn't worry about that... cheers, Chris ___ Zope maillist - [EMAIL PROTECTED]

Re: [Zope] Problem with Tree tag

2000-09-21 Thread Chris Withers
Chalu Kim wrote: Has anyone seen this when running Tree? (Info: ([None, ([140894976, []],)], ['E04='])) AttributeError: 'tuple' object has no attribute 'append' Yup... It's one of the many bugs in the tree tag. I think someone posted a patch for this a while back, search

Re: [Zope] Restricting URL access to objects that are not complete web pages

2000-09-21 Thread Chris Withers
Stephen Simmons wrote: 3. Sections are only used as building blocks for other documents so it must not be possible to retrieve a section via a URL. That is not currently possible in Zope and is one of my pet peaves :-S See the 'Protocol Accessibility' proposal on dev.zope.org for a possible

Re: [Zope] Restricting URL access to objects that are not complete web pages

2000-09-21 Thread Steve Alexander
Stephen Simmons wrote: Any suggestions? Something involving permissions/roles? Hacking before_bobo_traverse()? Something simpler? You could use SiteAccess for this; get it to match the allowed paths and patterns to those documents you want available directly through the web, and return a

Re: [Zope] Massive FTP troubles

2000-09-21 Thread Toby Dickenson
On Thu, 21 Sep 2000 00:03:47 +0200 (CEST), Dieter Maurer [EMAIL PROTECTED] wrote: The only strange thing is, that you get told that a conflict occured for "/em/nav/aiti2.gif" rather than the folder. That is the URL of the request that caused the conflict, not the object in which the conflict

Re: [Zope] Folderish DTML Document

2000-09-21 Thread Toby Dickenson
On Wed, 20 Sep 2000 09:50:16 -0700, "Andy McKay" [EMAIL PROTECTED] wrote: Sure it works but Im creating 2 objects a folder and a index_html for every one occurence. Im doubling my database for every object. Ugh! In straight python you can only create methods for a class by creating function

[Zope] How to preserve context?

2000-09-21 Thread Marcin Kasperski
Within some folder I tried the following standard_html_header: dtml-with "PARENTS[1]" dtml-var standard_html_header /dtml-with ..some standard text I wanted to put on the front of all the documents... (and similar method for

[Zope] __str__, DMTLFolder adn Squishdot

2000-09-21 Thread Chris Withers
Andy McKay wrote: I've given it a __call__ method, but not a __str__. Ive most problems resolve around the objects name, absolute_url, __name__, so perhaps fiddling with __str__ might be an answer. Sorry, but none of that made sense... What are the actual problems you're having with names,

Re: [Zope] Catalog Searching

2000-09-21 Thread Toby Dickenson
On Wed, 20 Sep 2000 14:51:01 +0100, Chris Withers [EMAIL PROTECTED] wrote: Maik Roeder wrote: dtml-in "Catalog()" reverse sort=bobobase_modification_time size=50 Show stuff in Catalog here. /dtml-with That doesn't take advantage of the Catalog's lazy searching, AFAIK, and on a site with a

Re: [Zope] Catalog Searching

2000-09-21 Thread Chris Withers
Toby Dickenson wrote: Maik Roeder wrote: dtml-in "Catalog()" reverse sort=bobobase_modification_time size=50 Show stuff in Catalog here. /dtml-with snip good points But doesn't Catalog() return all objects in the Catalog? Doesn't all the meta-data for those objects have to be loaded into

Re: [Zope] Restricting URL access to objects that are not complete web pages

2000-09-21 Thread Phil Harris
Chris, Stephen, Wouldn't an external method something like the following work for the moment? def getobj(self,url=None): if url==None: return None return self.restrictedTraverse(url) so in dtml you can do something like: dtml-var "getobj(url='/home/myfolder/index_html')" or

[Zope] Can someone give me a roadmap to explore Zope further

2000-09-21 Thread iap_y2fun.com
Dear all, After couple of months study, Zope attracts me very much, I would like to explore further. Can someone give me a roadmap, or points me a way. Thanks a lot. Iap ___ Zope maillist - [EMAIL PROTECTED]

[Zope] Import class in External method

2000-09-21 Thread Francois-Regis CHALAOUX
Hi, I had some weeks ago a nice discussion on " Howto import external class in an external method ". However, I use now the " http://www.zope.org/Members/4am/instancehome " method to run my site. This really cool ;) In these condition, I would like to use something similar to import modules. If

RE: [Zope] Clean Zope source patch

2000-09-21 Thread Brian Lloyd
I need to patch Zope source code to make an I18N module of my own work. The function I need to patch is Publish.py in lib/python/ZPublisher (only the publish function). I'd like to to it a 'clean' way, that is, without modifying the actual source code. To achieve this, I can copy the

Re: [Zope] Restricting URL access to objects that are not complete web pages

2000-09-21 Thread Stephen Simmons
Steve, Ideally the publishability of an object would be an internal property of that object, not something that is set externally via rules in SiteAccess. It's been a little while since I last looked at SiteAccess, but wouldn't using SiteAccess force you to store publishable objects in one part

Re: [Zope] Restricting URL access to objects that are not complete web pages

2000-09-21 Thread Steve Alexander
Stephen Simmons wrote: Steve, Ideally the publishability of an object would be an internal property of that object, not something that is set externally via rules in SiteAccess. It's been a little while since I last looked at SiteAccess, but wouldn't using SiteAccess force you to store

[Zope] Using OS user database for user validation in zope?

2000-09-21 Thread Roland Tepp
Hello. Is it possibile to use acl_users component so that instead of using zope database to manage zope usernames i could validate them against my existing NT user database. Thanks. Roland. ___ Zope maillist - [EMAIL PROTECTED]

[Zope] Return an object?

2000-09-21 Thread Tom Deprez
Hi, Can someone tell me how I can get the object with a certain 'id'? Does getObject exists or something? Tom. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related

Re: [Zope] cannot access articles in Squisdot

2000-09-21 Thread Chris Withers
Tomaso Scarsi wrote: Error Type: AttributeError Error Value: 'string' object has no attribute '__basicnew__' and on the console running zope 2000-09-14T14:20:37 ERROR(200) ZODB Couldn't load state for '\000\000\000\000\000\001[i' This isn't a Squishdot problem. It looks like your Zope

[Zope] FreeBSD and ZMySQLDA product

2000-09-21 Thread Marcos González Castro
Hello, I'm trying to install the ZMySQLDA product in a virtual server of an ISP. I have had no problems with the Zope installation but I've had many problems with the product. Actually I was able to install de ZMySQLDA and the MySQLdb but Zope shows me this error when I try to make a database

[Zope] SMIL and mime types

2000-09-21 Thread tom smith
I'm trying to use zope to create SMIL files... So I have a DTML Method with called smil.smi... smil.smi--- smil xmlns:qt="http://www.apple.com/quicktime/resources/smilextensions" qt:chapter-mode="clip" STUFF SNIPPED OUT dtml-call

Re: [Zope] How-to trap login error ?

2000-09-21 Thread Andy McKay
That works fine, but Id rather use the Zope authentication / authorization system thats there than try to write my own along with the inevitable problems that can occur. Chris - you correct the comment says something about this could use standard_error_message I did a quick hack of changing

[Zope] Close your eyes . . .

2000-09-21 Thread Spicklemire, Jerry
and pretend that Zope can do this today! http://standardbrains.editthispage.com/ This is where we're headed with DAV, XML / DOM, Zope Studio, etc. Sorry the demo only works (today) with MS IE v. 5+. If you can get to a desktop with this installed, it is such a trip to swipe some

Re: [Zope] Version Control in Zope / Managing releases

2000-09-21 Thread Doug Hellmann
Shane Hathaway wrote: I would say there are simply too many developments happening for anyone to keep up. I can understand why my little proposal has been overlooked--it doesn't seem very exciting. :-) There *is* too much going on, but I'm *very* excited by this proposal. Using versions

[Zope] Re: [Zope-dev] Assigning Permissions To Roles

2000-09-21 Thread Chris McDonough
try: self.manage_role('myRole', ['View management screens', 'View']) You may also want to check out this document: http://www.zope.org/Members/mcdonc/PDG/6-1-Security.stx - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday,

[Zope-dev] Assigning Permissions To Roles

2000-09-21 Thread Kevin Howe
I am having trouble getting Roles to work via my Python Product. Creating a local role works fine: self._addRole('myRole') But how do I tell the Role what permissions it has programmatically? After looking in Role.py, I tried the following: self.manage_role('myRole', ['View

[Zope-dev] RFC: ApplicationObject proposal

2000-09-21 Thread Chris McDonough
Please comment on the new fishbowl proposal for an "Application" object: http://dev.zope.org/Wikis/DevSite/Proposals/ApplicationObject Your input is appreciated! -- Chris McDonough Digital Creations, Publishers of Zope http://www.zope.org ___

[Zope-dev] Re: [Zope] Restricting URL access to objects that are not complete web pages

2000-09-21 Thread Steve Alexander
Stephen Simmons wrote: My thoughts were to use an html_header that tracks how deeply components are nested so that inner components turn off the page wrapper. This achieves 1 and 2. This also achieves 3 if sections raise an exception if their page wrapper is not turned off. You only

RE: [Zope-dev] acl_users

2000-09-21 Thread Brian Lloyd
In AccessControl/User.py, acl_users is used as the name of user folder objects in their classes, and in the constructor, code checks for an existing "acl_users" object to prevent dual-adding user folders. This could be changed to check whether __allow_groups__ has an id, and then

[Zope-dev] using a DA

2000-09-21 Thread Andre Schubert
Hi, i have a problem on using a DA in my Product. I have a Postgresql DA in my root-folder. If my Product is installed in the root-folder and i use: self.con_obj = DA.DA('id','','pgsql','',query) return self.con_obj() When i install my Product in a sub-folder of the root-folder and i call the

Re: [Zope-dev] Please help - Persistent dictionary keys

2000-09-21 Thread Martijn Pieters
On Thu, Sep 21, 2000 at 08:00:29AM -0500, John D. Heintz wrote: Thanks for the reply Martijn, I do want the objects of Test2 class to be compared by identity, like I'm assuming Test1 objects are. If I have to define __cmp__ and __hash__ then I will basically be making them up because

Re: [Zope-dev] FYI: preliminary Zope 2.3 plan online...

2000-09-21 Thread Ty Sarna
In article [EMAIL PROTECTED], Brian Lloyd [EMAIL PROTECTED] wrote: Hi all - For those interested, I've finally gotten the current plan for the next planned Zope feature release online on dev.zope.org: http://dev.zope.org/Resources/zope_230_plan.html The discussion pages for at least

Re: [Zope-dev] I feel your Wiki Pain ;-)

2000-09-21 Thread Martijn Faassen
Toby Dickenson wrote: On Fri, 15 Sep 2000 11:27:33 -0400 (EDT), Ken Manheimer [EMAIL PROTECTED] wrote: (Not sure that will scale, but creating new lists for each proposal definitely won't scale. I dont see this as a problem: You only create a new list when the traffic for that proposal

Re: [Zope-dev] FYI: preliminary Zope 2.3 plan online...

2000-09-21 Thread Shane Hathaway
Ty Sarna wrote: Brian Lloyd [EMAIL PROTECTED] wrote: http://dev.zope.org/Resources/zope_230_plan.html The discussion pages for at least two of the wikis are broken. This is especially troubling considering that it looks like you're planning on moving forward with a proposal with serious

RE: [Zope-dev] FYI: preliminary Zope 2.3 plan online...

2000-09-21 Thread Brian Lloyd
For those interested, I've finally gotten the current plan for the next planned Zope feature release online on dev.zope.org: http://dev.zope.org/Resources/zope_230_plan.html The discussion pages for at least two of the wikis are broken. This is especially troubling considering that

[Zope-dev] [Fwd: __str__, DMTLFolder adn Squishdot]

2000-09-21 Thread Chris Withers
Andy McKay wrote: Andy McKay wrote: I've given it a __call__ method, but not a __str__. Ive most problems resolve around the objects name, absolute_url, __name__, so perhaps fiddling with __str__ might be an answer. Sorry, but none of that made sense... What are the actual

[Zope-dev] Observable Interface?

2000-09-21 Thread Chris Withers
Does anyone know what happened to it and how far its implementation got? cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists -

[Zope-dev] Re: __str__, DMTLFolder adn Squishdot]

2000-09-21 Thread Andy McKay
Yeah I'll do what works for now and make a science project out of it one rainy weekend. Part of the problem could be the API for instantiation of folderish objects and DTML objects. A DTML method is created: DTMLMethod(file, __name__=id). A folder is ob = Folder() ob.id = str(id) Or

[Zope-dev] adding local roles to folders within a Product

2000-09-21 Thread Steve Alexander
I have a ZClass-based product. The folder (should I be calling this an Application Object? :-) ) that contains all the product methods and objects that are accessible via the web has some local roles defined on it. I'm making a sort of Wizard to instantiate a new application instance. This

[Zope-dev] Re: adding local roles to folders within a Product

2000-09-21 Thread Steve Alexander
Steve Alexander wrote: I want to define the local roles on the "prototype" folder that is inside my Product. However, when I go to Control_Panel/Products/MyProduct/prototype/manage_access, I get the "map permissions to permissions" screen, rather than the "map permissions to roles, and

Re: [Zope-dev] Observable Interface?

2000-09-21 Thread Tres Seaver
Chris Withers [EMAIL PROTECTED] asked: Does anyone know what happened to it and how far its implementation got? The preliminary implementaion, DefaultObservabale, landed as a mix-in class in Zope 2.2: $ZOPE_HOME/lib/python/OFS/DefaultObservable.py Mix it in to one of your Python base