[Zope-dev] xmit_channel
Does ZServer/medusa/ftp_server.py need a handle_connect method in xmit_channel. Unless I add def handle_connect(self): pass to xmit_channel I keep getting connect event errors using FTP. -- Robin Becker ___ 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] Command Line Database Packing ?
Federico Di Gregorio wrote: Scavenging the mail folder uncovered Keith Larson's letter: Hello , Is there a way to run a script that could pack the database from the command line ? wget your.zope.server:port/Control_Panel/Database/manage_pack?days=n and substitute the right port for port and the number of days for n. I'm really hoping you'll have to supply a username and password in there somewhere 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] Command Line Database Packing ?
hehe Yea u do! -Original Message- From: Chris Withers [mailto:[EMAIL PROTECTED]] Sent: Friday, October 27, 2000 9:14 AM To: Federico Di Gregorio Cc: Keith Larson; Zope Dev Subject: Re: [Zope-dev] Command Line Database Packing ? Federico Di Gregorio wrote: Scavenging the mail folder uncovered Keith Larson's letter: Hello , Is there a way to run a script that could pack the database from the command line ? wget your.zope.server:port/Control_Panel/Database/manage_pack?days=n and substitute the right port for port and the number of days for n. I'm really hoping you'll have to supply a username and password in there somewhere 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 ) ___ 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] Command Line Database Packing ?
Of course Zope has a script for this now as well http://www.zope.org/Members/phd/cron-zope/pack-db_fs -Original Message- From: Keith Larson [mailto:[EMAIL PROTECTED]] Sent: Friday, October 27, 2000 9:25 AM To: 'Chris Withers'; Federico Di Gregorio Cc: Keith Larson; Zope Dev Subject: RE: [Zope-dev] Command Line Database Packing ? hehe Yea u do! -Original Message- From: Chris Withers [mailto:[EMAIL PROTECTED]] Sent: Friday, October 27, 2000 9:14 AM To: Federico Di Gregorio Cc: Keith Larson; Zope Dev Subject: Re: [Zope-dev] Command Line Database Packing ? Federico Di Gregorio wrote: Scavenging the mail folder uncovered Keith Larson's letter: Hello , Is there a way to run a script that could pack the database from the command line ? wget your.zope.server:port/Control_Panel/Database/manage_pack?days=n and substitute the right port for port and the number of days for n. I'm really hoping you'll have to supply a username and password in there somewhere 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 ) ___ 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] Unit testing, ZUnit - It is in the fishbowl, please comment
The proposal below is in the fishbowl, at http://dev.zope.org/Wikis/DevSite/Proposals/UnitTestingProducts The approach will be, developing the standalone ZUnit Product while the proposal is in the fishbowl, then push for the proposal (integrating it with App/Product*.py). Expect a first release of ZUnit next week or in the other. In the meanwhile, please comment in the proposal's discussion page :-) (or here) I added some comments on this to: http://dev.zope.org/Wikis/DevSite/Proposals/UnitTestingProductsDiscussion Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.com ___ 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] DTML Entity Syntax, was (no subject)
Johann Loibl wonders: What does the following line means? href="dtml.url-mail_password_form; how to work with '' ? This means to substitue the value stored in the variable "mail_password_form" as an "absolute URL". It's known as "DTML Entity Syntax". Check out: http://www.zope.org/Members/AlexR/EntitySyntax BTW, this is a pretty basic question, and is best addressed to the generic Zope List: [EMAIL PROTECTED] Later, Jerry S. ___ 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] I'm having troubles with MySQL MONTHNAME() function
Hello: I'm from Argentina, as you shoud now, I speak spanish. I'm usig MySQL, as you sould also now, it's in English. I have to give de time informatio in letters. Like 'Febrero' (02, February). I found two ways, but non of them gives me good results. The first way is to ask to the database a select statemment with it's own MONTHNAME() functio. But I couldn't translate to Spanish that is what I need. The other way is to make a little function that compares the month number (selected with te MONTH() function). In this case I had the same trouble: I can't compare a DateTime MySQL function var with an other var. I can't do this: dtml-if " Month(DATE)==' 1' Diciembre dtml-elif " Month(DATE)==' 2' Febrero etc Thanks to anyone who can help me, or read me. And please, forget my english. Andres Sanchez Gomez ___ 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] I'm having troubles with MySQL MONTHNAME() function
Actually, what you need to do is place the MONTH MySQL function INSIDE your SQL Method, like so: select month(mydate) as mDate from myTable and evaluate it from zope as: dtml-if "mDate=='1'"Enero .. .. -=-=-=-=-=-=-=-=-=-=-=- ESPANOL FOLLOWS (oops) -=-=-=-=-=-=-=-=-=- De hecho, lo que tienes que hacer es poner la function MONTH de MySQL DENTRO de tu metodo SQL, de la siguiente manera: select month(mydate) as mDate from myTable y evaluarlo desde zope asi: dtml-if "mDate=='1'"Enero .. .. Julio F. Schwarzbeck [EMAIL PROTECTED] On Fri, 27 Oct 2000, Andres Sanchez Gomez wrote: Hello: I'm from Argentina, as you shoud now, I speak spanish. I'm usig MySQL, as you sould also now, it's in English. I have to give de time informatio in letters. Like 'Febrero' (02, February). I found two ways, but non of them gives me good results. The first way is to ask to the database a select statemment with it's own MONTHNAME() functio. But I couldn't translate to Spanish that is what I need. The other way is to make a little function that compares the month number (selected with te MONTH() function). In this case I had the same trouble: I can't compare a DateTime MySQL function var with an other var. I can't do this: dtml-if " Month(DATE)==' 1' Diciembre dtml-elif " Month(DATE)==' 2' Febrero etc Thanks to anyone who can help me, or read me. And please, forget my english. Andres Sanchez Gomez ___ 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] Calander.
On Thu, 26 Oct 2000, Jason C. Leach wrote: I'm looking for a Zope calander kind of like you see on the ZopeNewbies page. Anyone seen a product like this hanging around. Actually, I'm developing one now, and it's getting pretty decent.. =) Take a look at the Calendar product contained in the latest ZopeGUM release, http://www.zope.org/Members/morphex/ZopeGUM. The calendar product is pretty stable, but I wouldn't use it in a production enviroment just yet. If not, perhaps I'll have to whip one up. :) If you're interested in participating in the development of this Calendar product, you're more than welcome! The project will eventually be located at SourceForge, as soon as they fix the CVS problems they're having.. Regards, Morten ___ 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/PIL collision - what to do?
In article [EMAIL PROTECTED], Jens Vagelpohl [EMAIL PROTECTED] wrote: import PIL image = PIL.Image.open('foo.png') that way you do not have two names "Image" colliding in the names Zope sees Thanks to everybody who responded. I tried doing this after a number of other attempts but it claimed not to be able to find a module called »PIL« -- then I restarted Zope and it worked. Anselm -- Anselm Lingnau . [EMAIL PROTECTED] You could shoot Microsoft Office off the planet and this country would run better. You would see everyone standing around saying, `I've got so much time now.' -- Scott McNealy ___ 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] ZMailIn
[EMAIL PROTECTED] wrote: Has anyone thought of using SendMail (or any other e-mail program) to send e-mail to Zope and have that e-mail be loaded directly into a specific folder (say, based on the e-mail address or subject line)? You could probably build something using ZMailIn: http://www.zope.org/Members/NIP/ZMailIn cheers, Chris ___ 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] trapping login errors/exceptions
Henny van der Linde wrote: In this construction the call to do_login always raises the exception Unauthorized instead of presenting the standard login screen. How do I trap login errors in an elegant way? You can't, with the standard Zope acl_users. IIUC, LoginManager allows you to do exactly what you're talking about. cheers, Chris ___ 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] Hosting?
You could DIY: I bought myself a server (256Mb RAM, 20Gb RAID1, Athlon Thunderbird 850Mhz) and I'm getting it colocated at one of the best-wired places in the UK. The bandwidth can be upped on a month-by-month basis. This way you get full control over everything. My costs: server ?650 (that's about $500 I think) hosting ?37.50 / month for 1 Gb / 512k burst (about $30) time to set it all up :S Of course, the hosting gets *much* cheaper as you buy more, but this scheme suits the way I intend to grow. I believe hardware and bandwidth is even cheaper in the states, so why not consider something like that? seb. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Paul Winkler Sent: 26 October 2000 20:16 To: Zope mailing list Subject: [Zope] Hosting? Hi, I'm wondering if anyone can recommend a commercial Zope hosting service for me. I've looked at the resources page on zope.org, and I have a couple feelers out, but I'd like to ask the community for recommendations as well. Requirements: I need a system that can handle a potentially very heavy load, though at first it will be quite small - we're a startup and have no customers yet. Location: We're in the northeast USA and most of our users will probably be in the US as well, so I'd prefer a service in North America. Zope: 2.2 at least, and access to install new products and external methods. I'm currently on codeit.com, but they have zope 2.1 and I need zope = 2.2 so I can use my custom product derived from PTK 0.9. Storage: We're doing things with digital images - *big* ones - so we need to start at about 100 MB and will need to grow; we'll be storing a *lot* of data for our users. Eventually (probably not until later in 2001) we'll need MUCH more - possibly up to 1 GB eventually. (Beyond that point we will probably just rent a server at rackspace.com or somewhere but first we need to be able to develop a big enough customer base to pay for it.) Data transfer: Several times greater than storage. Users will upload large files which we will then download to our local network, so that's at least 2x our storage needs, plus there's the transfer involved in just using the site. Pricing: since our storage requirements will be continually growing, I'd like a payment plan that enables us to pay for the storage we need and add more as needed. -- .paul winkler.. slinkP arts: music, sound, illustration, design, etc. web page: http://www.slinkp.com A member of ARMS: http://www.reacharms.com ___ 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] advice re virtual hosting
Hi all, just need to check the received wisdom regarding the various possible combinations for doing virtual hosting with zope. I have two domains, one is 'mine' and I want that to go to the root of my zope installation. the other domain is for an internal client and I want that to go to a folder within my zope (so they can acquire some of my content). i.e. www.blue.com -- zopeserver/ www.red.com -- zopeserver/red/ Whats the best way? There seem to be three or four options, apache on 80 with zope on 8080 using virtual hosts on both (either?), squid on 80 and zope on 8080 and finally zope alone on 80. The site will be relatively low traffic for the root branch but higher public traffic for the clients branch. Whats the 'best' way? I got apache to front zope with proxypass and with proxying on and seemed to get better performance. What about flexibility? What about rewriting versus virtual hosts? Ah so many juicy options! I have a colocated box and the isp is holding two domains pointed at the same ip address so I guess name based vhosts are the way by default but is it better to try and get zope to do it alone on 80 (is this possible?) or is it always better to have apache do it. I don't forsee any need for genuinely static content that cannot be served from zope. Your advice gratefully received. Jonathan ___ 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] advice re virtual hosting
Hey Jonathan, I don't know about the 'best' way, but you certainly can use SiteAccess. You point the main url to your Zope installation (and that is nothing) and you put a SiteRoot in the red folder and it will take care of www.red.com. http://www.zope.org/Members/4am/SiteAccess2/vhosting J At 10:59 AM +0100 10/27/2000, Jonathan Cheyne wrote: Hi all, just need to check the received wisdom regarding the various possible combinations for doing virtual hosting with zope. I have two domains, one is 'mine' and I want that to go to the root of my zope installation. the other domain is for an internal client and I want that to go to a folder within my zope (so they can acquire some of my content). i.e. www.blue.com -- zopeserver/ www.red.com -- zopeserver/red/ Whats the best way? There seem to be three or four options, apache on 80 with zope on 8080 using virtual hosts on both (either?), squid on 80 and zope on 8080 and finally zope alone on 80. The site will be relatively low traffic for the root branch but higher public traffic for the clients branch. Whats the 'best' way? I got apache to front zope with proxypass and with proxying on and seemed to get better performance. What about flexibility? What about rewriting versus virtual hosts? Ah so many juicy options! I have a colocated box and the isp is holding two domains pointed at the same ip address so I guess name based vhosts are the way by default but is it better to try and get zope to do it alone on 80 (is this possible?) or is it always better to have apache do it. I don't forsee any need for genuinely static content that cannot be served from zope. Your advice gratefully received. Jonathan ___ 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 and Python 2.0
Hi folks, I've just downloaded Zope source code to rebuild it on a FreeBSD-4.1 box. Is Zope-2.2.2 so tightly coupled to Python-1.5.2 that It doesn't run with Python 2.0... I've got a system-wide installation of Python 2.0 and the ./start scripts fails. I made a local installtion of Python 1.5.2 just to run Zope. I changed the path the Python interpreter in the start shell script but it looks like Medusa's asyncore.py can't find tjhe FCNTL module... What the hell is going wrong? I also had to comment out a nasty #include "mymath.h" in 'lib/Components/cPickle/cPickle.c' to get it built properly... - Xavier ___ 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] wondering about rendering
A simple question that's been bugging me: Regarding a "FooDocument/BarMethod": How do I reference the content of FooDocument inside BarMethod? At the moment, I'm using dtml-var "this()" which seems to call the __str__ method of FooDocument; or dtml-var "_.getitem(_['id'],1)" where I want to render dtml too. My questions are: 1) is 'this()' intended to be used like this? 2) is there a nicer way of doing the getitem() shenanigans? It seems like a common enough task to warrant a shortcut. I feel I may be being extra dumb here. That's just me thinking aloud. My actual problem, however, is that although content_a/view_1 returns a view of content_a, I'd like to apply in turn a new view to the result, e.g. content_a/view_1/tableise The concept being that content (content_a, content_b) can be rendered in different ways (view_1, view_2) but is always displayed inside a table (tableise). If I do a dtml-var "_.getitem(_['id'],1)" in both view_1 and tableise, I get infinite recursion, of course. But I can't think of how else I might do it. Putting dtml-var "this()" in tableise makes all the HTML in view_1 render html-safe (lt; gt; etc). I was tableise to display view_1's HTML but not render its DTML. Any idea, anyone? Thanks, seb ___ 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] ZClass and SQL Table
Hi Cesar, Try ZPatterns: http://www.zope.org/Members/pje/ZPatterns it allows you to 'dress' your old SQL system with ZClasses (subclassed by DataSkins..) -steve "CG" == =?iso-8859-1?Q?C=E9sar?= A K Grossmann iso-8859-1 writes: CG Hi CG I have an old system based on a SQL database, and wanna to CG make a Web version of it. CG Are there any way to represent the SQL tables as ZClasses? I CG mean, the attributes of the ZClasses be stored in a SQL table? CG TIA -- CG +-+-+ CG | César A. K. Grossmann | Capacitação Solidária | | CG [EMAIL PROTECTED] | http://www.uol.com.br/umminuto/ | | CG http://members.xoom.com/ckant/ | Clique e doe - é de graça | CG +-+-+ CG http://www.halcyon.com/sciclub/cgi-pvt/instr/instr.html A CG long-forgotten loved one will appear soon. CG Buy the negatives at any price. CG ___ Zope maillist CG - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** CG No cross posts or HTML encoding! ** (Related lists - CG http://lists.zope.org/mailman/listinfo/zope-announce CG 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] Problems with ZPhoto, ZPhotoAlbum, and ZAlbumPage
Hi Dave, Add a 'defined_views' property to the photo album. Make it a 'tokens' property with values 'explore fancy simple'. This will get you closer! -steve "Dave" == Dave Belfer-Shevett [EMAIL PROTECTED] writes: Dave Hey there folks. I've just downloaded and installed these Dave Products into my Zope instance. I'd talk to any of the Dave support groups / lists / etc for these Products, but I can't Dave find anythign aside from the author link, and a few small Dave hints on the download page. Dave I -think- I'm setting up an Album properly. Here are the Dave steps, someone please tell me if this is not correct Dave (There's an error that happens that I'll report in a Dave moment...) Dave 1) Install all the packages 2) Import ZPhotoAlbum via the Dave Control panel 3) Go to whatever directory I want to run from Dave 4) Add a ZPhotoAlbum object (we'll call it 'abc' for now) 5) Dave go into 'abc' folder (note the only thing in it right now is Dave 'Vocabulary' 6) Add a ZAlbumPage (calling it 'page1') 7) go Dave into 'page1' folder 8) Add a ZPhoto Dave Okay, here's where it gets fuzzy. My initial impression is Dave "okay, tha'ts it. Just keep adding ZPhotos to populate the Dave album". But when going to url.url.com/abc/ I just get the Dave default 'index.html'. Dave Tinkering, I found the 'Restore DTML' button up on the Dave toolbar for the PhotoAlbum. Dave So I click that, and get a lot more content in the folder in Dave the management screen. Dave Now when I go to url.url.com/abc/, I see my index, the Dave AlbumPage, and the ZPhoto that I added. Dave Here's where the problem happens. There are 2 buttons at Dave the bottom of the page called 'fancy view' and 'explore Dave view'. They should allow different views of the indexes. Dave But when I click on one, I get: Dave Zope Error Dave Zope has encountered an error while publishing this Dave resource. Dave Error Type: NameError Error Value: defined_views Dave here's the traceback: Dave Traceback (innermost last): File Dave /home/shevett/zope/lib/python/ZPublisher/Publish.py, line Dave 222, in publish_module File Dave /home/shevett/zope/lib/python/ZPublisher/Publish.py, line Dave 187, in publish File Dave /home/shevett/zope/lib/python/Zope/__init__.py, line 221, in Dave zpublisher_exception_hook (Object: CatalogAware) File Dave /home/shevett/zope/lib/python/ZPublisher/Publish.py, line Dave 171, in publish File Dave /home/shevett/zope/lib/python/ZPublisher/mapply.py, line Dave 160, in mapply (Object: switch_view) File Dave /home/shevett/zope/lib/python/ZPublisher/Publish.py, line Dave 112, in call_object (Object: switch_view) File Dave /home/shevett/zope/lib/python/OFS/DTMLMethod.py, line 172, Dave in __call__ (Object: switch_view) File Dave /home/shevett/zope/lib/python/DocumentTemplate/DT_String.py, Dave line 528, in __call__ (Object: switch_view) File Dave /home/shevett/zope/lib/python/DocumentTemplate/DT_Util.py, Dave line 337, in eval (Object: view not in defined_views or not Dave view_id) (Info: defined_views) File string, line 0, in ? Dave NameError: (see above) Dave Any suggestions? Dave ---. Web-based problem management: Dave www.stonekeep.com Dave Belfer-Shevett Dave . Dave [EMAIL PROTECTED] / I like you... I'll kill you Dave last... (from 'Handy \ -- work phrases') | Dave \__/ Dave ___ Zope Dave maillist - [EMAIL PROTECTED] Dave http://lists.zope.org/mailman/listinfo/zope ** No cross Dave posts or HTML encoding! ** (Related lists - Dave http://lists.zope.org/mailman/listinfo/zope-announce Dave 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] Multiple Propertysheets from the same Python class ?
I am trying to make a "template" for creating different types of portals. Especially I am looking to develop my own DemoPortal (Portal) ZClass where I can subclass other Memberand PortalProperties from Python and more easily create a ZClass (like the Portal ZClass) that subclasses my Python classes. Question is: Can the contents of the Portal ZClass in DemoPortal by fully exportet to Python code and subclassed inside Zope (like the ZDG describes) ? I understand Python can put classes inside classes which would be necessary. But how do you define different property sheets within one Python class ? The DemoPortal has a MemberClass with 2 propertysheets (CommonProperties and SystemProperties) which I guess must be kept separate. Is this at all possible to do from Python, or am I barking up the wrong tree here. Regards Steinar ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. Admin Orion System AS ** ___ 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] dtml-with using string reference and acquisition
Hi, I am having a problem with using a string reference to an object. The scenario is as follows : I have the tree structure - testfolA display_method testfolB testfolC if display_method looks like the following, everything is fine : dtml-var standard_html_header dtml-call "REQUEST.set('go_here','testfolB')" dtml-with "_[go_here]" dtml-var id /dtml-with dtml-var standard_html_footer it returns testfolB as I would expect. now if I change dtml-call "REQUEST.set('go_here','testfolB')" to now read dtml-call "REQUEST.set('go_here','testfolB.testfolC')" I get a Key_error that the URL does not exist. So I understand that testfolB.testfolC is not explicitly on the namespace stack, where as testfolB is, so that calling dtml-with "testfolB.testfolC" would work since it is a sequential object traversal, but unfortunately I have to create the second level object through a string reference that is passed in through a form. In some instances it may be more than 2 levels deep. Is there a way to traverse a string name of an object in one hit, or do I need to use String.split and traverse through each object name doing a "_[ or "_.callitem( ? Any help would be very much appreciated. regards Matt Bion ___ 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] More ZFormulator
Hi Jerry, What version of ZFormulator are you running (and in what version of Zope?) I just tried ZFormulator-0.2 with Zope-2.2.2 and it seemed to work OK. Maybe it doesn't work with older zopes? -steve "JS" == Spicklemire, Jerry [EMAIL PROTECTED] writes: JS Hi Zope Fans, JS Re. the problems I mentioned in an earlier post, it may be JS related to an error that turned up when I tried to run the JS ZF_Demo module. It seems to be unable to locate: JS "ApplicationDefaultPermissions" JS Does that ring any bells? JS A Google Search of Zope.org turns up several references, and JS it seems to be a part of core Zope, but I have no idea how it JS could be unavailable. Might the way Zope is started have an JS impact on which pieces-parts are accessible? JS The error shows: JS Traceback (innermost last): File JS /i01/Zope-2.1.3-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, JS line 214, in publish_module File JS /i01/Zope-2.1.3-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, JS line 179, in publish File JS /i01/Zope-2.1.3-solaris-2.6-sparc/lib/python/Zope/__init__.py, JS line 202, in zpublisher_exception_hook (Object: JS ApplicationDefaultPermissions) File JS /i01/Zope-2.1.3-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, JS line 151, in publish File JS /i01/Zope-2.1.3-solaris-2.6-sparc/lib/python/ZPublisher/BaseRequest.py, JS line 304, in traverse File JS /i01/Zope-2.1.3-solaris-2.6-sparc/lib/python/OFS/Application.py, JS line 249, in __bobo_traverse__ (Object: JS ApplicationDefaultPermissions) File JS /i01/Zope-2.1.3-solaris-2.6-sparc/lib/python/ZPublisher/HTTPResponse.py, JS line 511, in notFoundError NotFound: (see above) JS Thanks, Jerry S. JS ___ Zope maillist JS - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** JS No cross posts or HTML encoding! ** (Related lists - JS http://lists.zope.org/mailman/listinfo/zope-announce JS 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] Reverse SendMail Question
On Thu, 26 Oct 2000 [EMAIL PROTECTED] wrote: Has anyone thought of using SendMail (or any other e-mail program) to send e-mail to Zope and have that e-mail be loaded directly into a specific folder (say, based on the e-mail address or subject line)? In the latest version of ZopeGUM there is a poor example located in the gum module.. (in combination with the messagefilter module). http://www.zope.org/Members/morphex/ZopeGUM Regards, Morten ___ 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] ZMailIn
It sounds like you're thinking about a project management thing. Depends what you want to do with it, and what your zope setup is, but if you've got enough control over the zope box you're using, you could consider worldpilot + imap. You could customise it to your specific needs, plus have the all the benefits of a webmail type application. Might be worth a look. seb. [EMAIL PROTECTED] wrote: Has anyone thought of using SendMail (or any other e-mail program) to send e-mail to Zope and have that e-mail be loaded directly into a specific folder (say, based on the e-mail address or subject line)? You could probably build something using ZMailIn: http://www.zope.org/Members/NIP/ZMailIn ___ 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] PIL/Zope Problem
Hi to all, i read all the documentation and made all things to let interact PIL and Zope and i cannot find the way to make it work. If i try to import PIL from pyton interpreter it works perfectly with: *** Python 1.5.2 (#1, Jul 17 1999, 22:10:16) [GCC egcs-2.91.66 19990314/Linux (egcs- on linux2 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam import PIL data=PIL.Image.open("/home/httpd/listanozze/docs/images/prove/ccc.jpg","r") print data.format JPEG print data.info {'adobe_transform': 1, 'progression': 1, 'adobe': 100, 'jfif': 258} print data.size (450, 309) ** as you can see it works. But when i try to access PIL.Image.open from an external method in Zope i get: *** Error Type: AttributeError Error Value: Image Troubleshooting Suggestions The URL may be incorrect. The parameters passed to this resource may be incorrect. A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. Traceback (innermost last): File /home/httpd/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /home/httpd/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 179, in publish File /home/httpd/Zope-2.1.6-src/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: ElementWithAttributes) File /home/httpd/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 165, in publish File /home/httpd/Zope-2.1.6-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: pippo) File /home/httpd/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: pippo) File /home/httpd/Zope-2.1.6-src/lib/python/OFS/DTMLMethod.py, line 150, in __call__ (Object: pippo) File /home/httpd/Zope-2.1.6-src/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: pippo) File /home/httpd/Zope-2.1.6-src/lib/python/DocumentTemplate/DT_Util.py, line 335, in eval (Object: resize_image(foto)) (Info: foto) File string, line 0, in ? File /home/httpd/Zope-2.1.6-src/lib/python/Products/ExternalMethod/ExternalMethod.py, line 255, in __call__ (Object: resize_image) (Info: ((ZPublisher.HTTPRequest.FileUpload instance at 8565c90,), {}, None)) File /home/httpd/Zope-2.1.6-src/Extensions/image_op.py, line 7, in resize_image (Object: ElementWithAttributes) AttributeError: (see above) * My external Method say: import PIL def resize_image(self, foto): if foto: data=PIL.Image.open(foto) data=data.resize((128, 128)) return data.size else: return "Nothing" *** Can anyone help me?? Thanks Bye, MArcello ___ 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] ownership problems
I have created an account with Manager role and tried to add a LocalFS (v0.9.6) object to the root folder. I have set all possible rights for the Manager role. Zope version: Zope 2.2.1 (source release, python 1.5.2, linux2) Python version: 1.5.2 (#1, Feb 1 2000, 16:32:16) [GCC egcs-2.91.66 19990314/Linux (egcs- System Platform: linux-i386 This is what I get: !-- Traceback (innermost last): File /.../lib/python/ZPublisher/Publish.py, line 222, in publish_module File /.../lib/python/ZPublisher/Publish.py, line 187, in publish File /.../lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook File /.../lib/python/ZPublisher/Publish.py, line 171, in publish File /.../lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_addLocalFS) File /.../lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_addLocalFS) File /.../lib/python/Products/LocalFS/LocalFS.py, line 1248, in manage_addLocalFS File /.../lib/python/OFS/ObjectManager.py, line 253, in _setObject (Object: ApplicationDefaultPermissions) File /.../lib/python/AccessControl/Owned.py, line 276, in manage_fixupOwnershipAfterAdd (Object: nonono) File /.../lib/python/Products/LocalFS/LocalFS.py, line 869, in objectValues (Object: nonono) AttributeError: (see above) -- Adding other object types is no problem. ___ 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] How do I change dtml template on the fly in Python product?
I have asked this question somewhat differently in another thread but here I go again from another angle, as it might have been my approach that was wrong to begin with. I have a Python product that allready does what I want it to, but I want to be able to create different views of the products content. (Model View Controller principle). To do this I have created a folder with different views (Or skins if you would prefer the Gnome/KDE way of saying it.) views view1 list.dtml view.dtml edit.dtml view2 list.dtml view.dtml edit.dtml In my class I have made a value that hold the name of the selected view, I call this: self.selView I want to make it possible to use the different sets of dtml files to create a different look and feel to the data. I want to write my "index_html" method so that it returns a rendered version of "list.dtml" corresponding to the selected view, by the name of the folder holding the selected view. something like this (which doesn't work): def index_html(): return HTMLFile('views/' + self.selView+ 'list') Is that the best way to do it? Regards Max M ___ 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] PIL/Zope Problem
Hi , I use this external Methode to generate thumbs from an image an write both in an mysql database. May this helps you from PIL.Imageimport BICUBIC, BILINEAR, NEAREST from cStringIOimport StringIO import _mysql import MySQLdb import PIL def write(filename, pid): db=MySQLdb.connect(db="shop",user="zope",passwd="") c=db.cursor() imgfile=open(filename,'rb') sql_reset_img1="update PRODUCT set PIMAGE=NULL where PID="+ pid sqlstr="update PRODUCT set PIMAGE='" + _mysql.escape_string(imgfile.read()) +"' where PID="+ pid # do reset... c.execute(sql_reset_img1) # do the "update" load... c.execute(sqlstr) imgfile.close() im = PIL.Image.open(filename) fmt = im.format if fmt == 'PNG': fmt = 'JPEG' size = (int('75'),int('75')) x, y = im.size if x size[0]: y = y * size[0] / x; x = size[0] if y size[1]: x = x * size[1] / y; y = size[1] size = x, y im.draft(None, size) im = im.resize(size) im.size = size im.save('/home/zope/tempimage/temp.jpg', fmt) tempfile=open('/home/zope/tempimage/temp.jpg','rb') sql_reset_img2="update PRODUCT set PTHUMB=NULL where PID="+ pid sqlstri="update PRODUCT set PTHUMB='" + _mysql.escape_string(tempfile.read()) +"' where PID="+ pid # do reset... c.execute(sql_reset_img2) # do the "update" load... c.execute(sqlstri) tempfile.close() return 'image was written to db successfull' Jens - Original Message - From: "Marcello Lupo" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, October 27, 2000 2:38 PM Subject: [Zope] PIL/Zope Problem Hi to all, i read all the documentation and made all things to let interact PIL and Zope and i cannot find the way to make it work. If i try to import PIL from pyton interpreter it works perfectly with: *** Python 1.5.2 (#1, Jul 17 1999, 22:10:16) [GCC egcs-2.91.66 19990314/Linux (egcs- on linux2 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam import PIL data=PIL.Image.open("/home/httpd/listanozze/docs/images/prove/ccc.jpg","r") print data.format JPEG print data.info {'adobe_transform': 1, 'progression': 1, 'adobe': 100, 'jfif': 258} print data.size (450, 309) ** as you can see it works. But when i try to access PIL.Image.open from an external method in Zope i get: *** Error Type: AttributeError Error Value: Image Troubleshooting Suggestions The URL may be incorrect. The parameters passed to this resource may be incorrect. A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. Traceback (innermost last): File /home/httpd/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /home/httpd/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 179, in publish File /home/httpd/Zope-2.1.6-src/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: ElementWithAttributes) File /home/httpd/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 165, in publish File /home/httpd/Zope-2.1.6-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: pippo) File /home/httpd/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: pippo) File /home/httpd/Zope-2.1.6-src/lib/python/OFS/DTMLMethod.py, line 150, in __call__ (Object: pippo) File /home/httpd/Zope-2.1.6-src/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: pippo) File /home/httpd/Zope-2.1.6-src/lib/python/DocumentTemplate/DT_Util.py, line 335, in eval (Object: resize_image(foto)) (Info: foto) File string, line 0, in ? File /home/httpd/Zope-2.1.6-src/lib/python/Products/ExternalMethod/ExternalMethod .py, line 255, in __call__ (Object: resize_image) (Info: ((ZPublisher.HTTPRequest.FileUpload instance at 8565c90,), {}, None)) File /home/httpd/Zope-2.1.6-src/Extensions/image_op.py, line 7, in resize_image (Object: ElementWithAttributes) AttributeError: (see above) * My external Method say: import PIL def resize_image(self, foto): if foto: data=PIL.Image.open(foto) data=data.resize((128, 128)) return data.size else: return "Nothing"
[Zope] dtml-var reload ?
is it possible to reload only a dtml-var value without reloading an entire page ??? if yes, how?? plz help ;) Luc TONIN --Développeur Web--Multithématiqueshttp://www.multithematiques.comChaines thématiques sur câble et satelliteCanal Jimmy, Cinecinemas, Cineclassics, Planete, Forum, Season, Wishline, Centre Jean Monet 03 82 24 00 42Longlaville +333 82 24 00 4254400 Longwy
RE: [Zope] More ZFormulator
Steve asked: What version of ZFormulator are you running (and in what version of Zope?) I just tried ZFormulator-0.2 with Zope-2.2.2 and it seemed to work OK. Maybe it doesn't work with older zopes? Oops, I should know better by now, than to ask for help without including the details. Zope 2.1.6 on Solaris 2.6 for Sparc, and Zope 2.2.1 on Linux 2.2 for Intel. The installs seemed to go smoothly on both systems, and I am able to create Form objects. However neither will let me add any form elements. The user authentication dialog pops up, and of coures I'm already authenticated at the initial access to the management interface. I'm both owner and manager of everything, but the authentication rejects my input. ZFormulator has been available since late 1999, so I would expect the older versions to be OK. Thanks, Jerry S. JS Re. the problems I mentioned in an earlier post, it may be JS related to an error that turned up when I tried to run the JS ZF_Demo module. It seems to be unable to locate: JS "ApplicationDefaultPermissions" JS Does that ring any bells? JS A Google Search of Zope.org turns up several references, and JS it seems to be a part of core Zope, but I have no idea how it JS could be unavailable. Might the way Zope is started have an JS impact on which pieces-parts are accessible? ___ 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] Securing ftp access?
Our local CERT-type person mailed me the following and I replied as follows. Could I have given a better answer? I notice that zope comes with an FTP server which, by default, runs on port 8021. There's one running on "stingray", as I write, which seems to accept any and all combinations of usernames/passwords (valid or otherwise), although *I* don't seem to be able to do/see anything with any of the ones I've tried. Hmmm. Hadn't noticed that before. Even if you disable the FTP Access permission for the role Manager (as well as Anonymous) it's still the same. But, as you note, you can't do very much. Anyway, that's an aside. What my question is is "how can this service be used such that usernames/passwords are transmitted securely?" Don't know. Does SSL (whether Zope is behind Apache or not) only apply to http stuff? My understanding is that Zope incoporates the Medusa server. There is a reference on the Medusa web page (http://www.nightmare.com/medusa/) to "SSL and Medusa with STunnel". An exercise left for the ambitious reader? Meanwhile I observe that if you set a Domains restriction for a particular user (done via the acl_users Folder) it applies to both ftp and http clients (and presumably WebDAV too) - though at first it doesn't seem so via ftp because you can login, but you can't actually do anything (just like Richard reports with any username/password). So, an imperfect answer to your question might be "disallow ftp access from outside our local domain and then keep your fingers crossed". TIA. Paul -- The Library, Tyndall Avenue, Univ. of Bristol, Bristol, BS8 1TJ, UK E-mail: [EMAIL PROTECTED] URL: http://www.bris.ac.uk/ ___ 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] WorldPilot
Seb Bacon wrote: Depends what you want to do with it, and what your zope setup is, but if you've got enough control over the zope box you're using, you could consider worldpilot + imap. WorldPilot's code is not the most customisable I've ever seen :-( cheers, Chris ___ 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] dtml-var reload ?
Luc Tonin wrote: is it possible to reload only a dtml-var value without reloading an entire page ??? ...nice question marks ;-) ...not nice posting HTML to a plain text only list. The answer is no anyway. A page is completely assembled on the server side before being sent to the client. So, if a value changes in a dtml-var, then you need to resend the enite page to the browser. This is the way HTTP works and so there's nothing Zope-specific about not being able to do this. cheers, Chris ___ 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] with a __call__
Max Møller Rasmussen wrote: I want to write my "index_html" method so that it returns a rendered version of "list.dtml" corresponding to the selected view, by the name of the folder holding the selected view. something like this (which doesn't work): def index_html(): return HTMLFile('views/' + self.selView+ 'list') You actually want to write a __call__ method (something) like this: def __call__(self, REQUEST=None, **kw): "" return apply(HTMLFile('views/' + self.selView+ 'list'),(self,REQUEST),kw) index_html=None ...this last bit is needed so index_html isn't acquired from an object above. cheers, Chris ___ 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] Calling form elements by name
Danny William Adair wrote: I should have posted your version, it's more explicit: --- dtml-in Items sort=Position dtml-let Prefix="'FormElement_'" thePos="_.str(Position)" nameAsAString="Prefix+thePos" dtml-var nameAsAStringbr dtml-var "_['FromElement_1']"br I believe I see why this doesn't work: Try changing: dtml-var "_[nameAsAString]"br To: dtml-var "_['nameAsAString']"br Otherwise, it will try to find a variable named whatever is in the variable nameAsAString. -- E PLURIBUS LINUX ___ 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] Forbidding overrides?
Something I remember from my early Zope days that could be solved, but I can't seem to find an answer: say I have a simple site where people can do simple things within their folder. However, I want my banners/logo whatever on their pages, so I've setup index_html to put my own stuff in and include their body_text. How can I prevent smartasses from creating index_html documents in their folder? More generally, is it possible to disallow certain folder methods or properties to be overriden from a point in the tree? -- Cees de Groot http://www.cdegroot.com [EMAIL PROTECTED] GnuPG 1024D/E0989E8B 0016 F679 F38D 5946 4ECD 1986 F303 937F E098 9E8B Forge your CipherSaber and list it: http://www.xs4all.nl/~cg/ciphersaber/ ___ 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] More ZFormulator
Hi Again, It turns out that the problems I was seeing are related to the Proxy Layers that are in place to keep our IntraNet safe. ZFormulator doesn't work at all when I bypass the Proxy entirely, only works partially when the Proxy is invited to play, and only works fully when the directories that the Proxy is aware of are involved. This is OK, as long as the generated forms function correctly when a user sees them with the Proxy completely in control. We'll see . . . Thanks again! Jerry S. ___ 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] Re: More ZFormulator
Found it: line 312: Form.py should be: __roles__ = ('Manager',) ___ 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] RE: More ZFormulator
Steve says: Found it: line 312: Form.py should be: __roles__ = ('Manager',) Thanks Steve! Steve's motto is, "We don't need no stinkin' Docs!". BTW, we disagree about this . . . ___ 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] Gadfly auto-increment datatype option?
Hi, Does ZGadfly supports the auto-increment option of a column? Thanx, Júlio Silva _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. ___ 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] Don't need no stinkin' docs.. (was Re: More ZFormulator)
Hmm... "JS" == Spicklemire, Jerry [EMAIL PROTECTED] writes: [... skip ...] JS Steve's motto is, "We don't need no stinkin' Docs!". Interesting point. JS BTW, we disagree about this . . . I'm not sure we do... really! I think my motto is more like: """ I'd rather have source code than bad/incorrect docs. I'd naturally rather have source code + good docs, but I'd sooner get something *done* today than wait for good docs tomorrow. ;-) Also.. I'd rather have source code and no docs than something closed with (apparantly) great docs since you can always have great docs that don't match the real (implimentation)/world, and *that* can steal weeks from your (otherwise) precious time/life.""" back to your regularly scheduled questions (and answers!) -steve ___ 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] php and zope
Take a look at my HOWTO: http://www.zope.org/Members/Mamey/PHP I'll be updating it soon with improvements that allow authorization and cookies. On Fri, Oct 27, 2000 at 11:21:56AM +0200, Laurent Tranchant wrote: hello everybody, I am new on this list, and I on zope. I have installed zope with apache on linux Suze 6.4, and I want to use it with PostGreSQL. My first question is very simple : can I use php code in DTML documents ??? I don't think so, but if someone can help me... ___ 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 ) -- -- Andres Corrada-Emmanuel Email: [EMAIL PROTECTED] -- ___ 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] Webdav Questions
Zopistas, I am working under Windows NT 4 and connecting to my Zope Server via the webfolders icon in "My Computer." I enter the IP address and port of my server, select finish, and a list of folders on the Zope server appears. However, I find that I am unable to edit, or even copy, any of the Zope objects. I keep getting an error message "An error occured while trying to copy some or all of the selected files". Here are my questions? 1. How is authentication being handled by my Zope server? Am I automatically authenticated to the server as the user I am logged on as on the local NT workstation? It never prompts me to identify myself via username and password. 2. Can the world at large view my Zope site via WebDAV? It seems that I can connect to the server from multiple machines, even logged on as users who are not in the Zope acl_users folder...Is this the default behavior? I have looked through the How-to's and performed searches on "Zope and WebDAV" in Google but haven't turned up much useful information. Can anyone offer any tips, or point me in the right direction on this? Thanks in advance, Darin Lee ___ 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] trapping login errors/exceptions
Hi, Henny van der Linde wrote: In this construction the call to do_login always raises the exception Unauthorized instead of presenting the standard login screen. How do I trap login errors in an elegant way? You can't, with the standard Zope acl_users. IIUC, LoginManager allows you to do exactly what you're talking about. cheers, Chris Thanks. I already thought about using Loginmanager but we still use Zope 2.1.6. I'm very commited, to and happy with Zope but I was amazed that you can't trap Unauthorized exception like that. I'ts seems such a basic functionality. cheers, Henny ___ 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] OT: PythonLabs Team Moves to Digital Creations!
Now here's something readers of this list might be interested in ... Original Message Subject: PythonLabs Team Moves to Digital Creations Date: Fri, 27 Oct 2000 20:42:42 -0500 From: Guido van Rossum [EMAIL PROTECTED] To: [EMAIL PROTECTED] (Python mailing list),[EMAIL PROTECTED], [EMAIL PROTECTED] Newsgroups: comp.lang.python To all Python users and developers: Less than half a year ago, I moved with my team to BeOpen.com, in the hope of finding a new permanent home for Python development. At BeOpen, we've done several good things for Python, such as moving the Python and Jython development process to SourceForge, and the successful release of Python 2.0. Unfortunately, BeOpen.com's original plans for PythonLabs didn't work out as hoped, and we weren't able to reach mutual agreement on workable alternative plans -- despite trying for months. I am proud to have found a new home for my entire team: starting today, Tim Peters, Barry Warsaw, Jeremy Hylton, Fred Drake and myself are working for Digital Creations. We will be spending part of our time on core Python development (including Jython and Mailman) and part of our time on Python infrastructure improvements that also benefit Zope. Python will remain Open Source; Digital Creations has no desire to monetize or brand the Python language or specific Python distributions. All future work we do on Python as Digital Creations employees will be owned by a non-profit organization yet to be created. We think of this new organization as the Python Software Foundation. In the meantime (while the PSF is under construction) I will own such copyrights personally. We're excited to be working for Digital Creations: they are one of the oldest companies active in the Python community, one of the companies most committed to Python, and they have a great product! Plus, we know they have deep financial backing. We trust that Digital Creations will provide a stable home for Python for many years. Digital Creations has also offered to take over hosting of the python.org and starship sites. On behalf of the Python community, we're grateful for this support of the two prime community sites for Python, and we expect to be implementing the transitions shortly. These are exciting times for the PythonLabs team -- and also for Python and its community. Mainstream successes for Python are showing up everywhere, and we're proud to be a part of such a smart and friendly community. A great year lies ahead! --Guido van Rossum (home page: http://www.python.org/~guido/) ___ 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] GUF error: Unauthorized...
On Fri, 20 Oct 2000, Cesar A. K. Grossmann wrote: raised an exception (('Unauthorized', 'crypt', traceback object at The userAuthenticate method is trying to call a method called 'crypt' and failing. Where, and how, is this method defined? If it is implemented in Python code (eg. you added a 'crypt' function to the GenericUserFolder class), then make sure your function has a doc string or you will get an exception like this. The userAuthenticate, userDomains, userList, adn userRoles DTML Methods are configurated to proxy the Manager role. -- Stuart Bishop Work: [EMAIL PROTECTED] Senior Systems Alchemist Play: [EMAIL PROTECTED] Computer Science, RMIT University ___ 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 )