RE: [Zope] Embedding authentication in a Zope Website

2000-06-20 Thread Chris McDonough
> Chris, > > Thanks for the speedy reply. I appreciate it. > > The questions I have now is how do you: > > 1) give users the opportunity to log in... where do you actually do > authentication? is there a url they must point to? should I > be calling any > python functions, or perhaps writing

Re: [Zope] Embedding authentication in a Zope Website

2000-06-19 Thread Chris McDonough
Knight, The primary way of obtaining the credentials of the currently logged in user is through the AUTHENTICATED_USER attribute of the REQUEST object, ala: Important stuff Unimportant stuff. You probably don't want to hardcode too much of this stuff into DTML, this is what permissions

RE: [Zope] brain hurts regarding dynamic fcn args in Python

2000-06-19 Thread Chris McDonough
Oops, I'm not quite right about this. This FAQ explains it better... http://www.python.org/doc/FAQ.html#4.16 > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 19, 2000 4:51 PM > To: [EMAIL PROTECTED] > Subject: RE: [Zope] brain hurts regardin

RE: [Zope] brain hurts regarding dynamic fcn args in Python

2000-06-19 Thread Chris McDonough
> Is there a (straightforward?) way to dynamically compose function > argument lists? For example, in C, you can write" > > f(arg1, arg2, (conditional expression)?(val for TRUE > state):(val for FALSE state)). This can be emulated in Python by the boolean logic: ( ({conditional expression}) a

RE: [Zope] ZOBD caching products?

2000-06-19 Thread Chris McDonough
This is a 'feature' of the product initialization process. Note that I am just documenting buginess here, I should try to fix this when possible. When a Product can't be initialized (a syntax error, a bad import, whatever), sometimes it will revert back to the state at which it wrote a good *.py

Re: [Zope] Instanciate a ZClass out of Zope

2000-06-19 Thread Chris McDonough
This limitation will effectively go away as soon as ZEO goes open source. Oleg Broytmann wrote: > >You cannot open independent connection to ZODB while Zope is active - > Zope locks the database, and by purpose. You must access ZODB only through > Zope machinery. >Or stop Zope, open ZODB

[Zope] Re: [Zope-dev] sql-statements in DTML-Methods....

2000-06-18 Thread Chris McDonough
Zope differs from PHP and ASP systems in this regard. I don't think anyone using Zope that I've seen inlines SQL inside DTML.The separation of SQL and presentation via DTML is intentional. Though it's not always as expedient, the intent of the separation is to provide you with layers of abst

RE: [Zope] Newbie query, localhost:8080 doesnt work!!

2000-06-16 Thread Chris McDonough
See http://www.zope.org/Members/mcdonc/HowTos/zopeinstall/ZOPE-INSTALL-HOWTO > -Original Message- > From: Rajil Saraswat [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 16, 2000 7:57 PM > To: [EMAIL PROTECTED] > Subject: [Zope] Newbie query, localhost:8080 doesnt work!! > > > Hi , > I

Re: [Zope] Importing data

2000-06-15 Thread Chris McDonough
Have you tried pushing the 'Export' button in the management interface? -- Chris McDonough Digital Creations Publishers of Zope - http://www.zope.org ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope **

Re: [Zope] Zope/Interbase

2000-06-12 Thread Chris McDonough
No... you wanna write a DA? :-) Somebody should. I would try, but I can't right now. It's a very nice database. Graham Chiu wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > I saw the Interbase product on the website where Interbase is being used > to store the Zope database. >

[Zope] ANN: InterbaseStorage alpha release

2000-06-11 Thread Chris McDonough
Hi, The alpha release of a Zope storage that uses the Interbase relational database to store object database information is available at http://www.zope.org/Members/mcdonc/RS/InterbaseStorage. It's a full-featured storage. Guinea pigs^H^H^H^H^H^H^H^H^H^H^H Testers wanted. -- Chris ___

Re: [Zope] Missing "how to"s

2000-06-06 Thread Chris McDonough
Pierre, check back on zope.org in a few hours, it's having problems. The howto is still there, I'm sure. Pierre Rougier wrote: > > hi all, > I am looking for the documentation of the "multiple selection" type, but > the "how to" does not exist anymore on zope.org. argh... > Has anyone of u

Re: [Zope] Can't find some products on www.zope.org

2000-06-06 Thread Chris McDonough
Something's hosed on Zope.org. It won't be available for at least a few hours. This is baaad. Sorry. Petr Knapek wrote: > > Hi Zopists, > today I tried to download 2 products for zope from www.zope.org (namely > 'Photo' and 'A Simple Photo Album Product' and the server respond me > that the p

Re: [Zope] dtml-tree help

2000-06-05 Thread Chris McDonough
Pete Kazmier wrote: > > Hi, > > I think this is a simle question but I've been struggling for the last > two days trying to get it to work. I have a heirarchy of folders > (really a custom container class) and files (really a custom object). > I want to emulate the Window's Explorer interface,

RE: [Zope] ZOPE, Xemacs, html-mode, & indentation.

2000-06-05 Thread Chris McDonough
I don't know about xemacs, but gnu emacs has indented-text-mode M - x indented-text-mode > -Original Message- > From: Skip Montanaro [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 05, 2000 3:28 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: [Zope] ZOPE, Xemacs, html-m

RE: [Zope] Proposal for mail-in to Zope

2000-05-31 Thread Chris McDonough
I'm interested in this, although I have a lot on my plate right now and can't help in development. I see objects in Zope being able to handle a call to one of their methods that passes off a chunk of email text and stuffs it in an attribute for later display or catalog. I think you should probab

Re: [Zope] Use of lambda expression in DTML

2000-05-30 Thread Chris McDonough
Nick Drew wrote: >> >> |I can see that argument... it depends on the reader, I suppose. I >> |wouldn't complain much actually if the Python code had functional stuff >> |in it. It's having it in DTML that bugs me, for reasons that >> |have to do >> |with separating HTML-like stuff from the stuf

Re: [Zope] What are the best general books on Object Oriented designprinciples?principles?

2000-05-30 Thread Chris McDonough
Chris, At the end of the article named "Gaining Zope Enlightenment By Grokking Object Orientation", (http://www.zope.org/Members/mcdonc/HowTos/gainenlightenment), you will find a reference to a book by Scott Ambler named "The Object Primer". This is a great starting point. Chris Beaumont wrote:

[Zope] test, please ignore...

2000-05-30 Thread Chris McDonough
Chris McDonough Digital Creations Publishers of Zope - http://www.zope.org ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman

Re: [Zope] Use of lambda expression in DTML

2000-05-29 Thread Chris McDonough
Lalo Martins wrote: > > How could someone understand this when you're finished with it? > > Perfectly clearly for anyone used to functional programming; > I'd even say, clear on first sight. A lot easier to understand > and maintain than a separate method. OK, I give. I think this would be fine

Re: [Zope] defining counters in zope(newbie)

2000-05-29 Thread Chris McDonough
Sudhir, Hi... It's natural to want to do this in DTML... but probably not the best idea. I know it's a lot to chew to have to use Python to do stuff like this (you don't), but it would make your life probably a lot easier to do this in an external method or a Python method. That said (untested

Re: [Zope] Use of lambda expression in DTML

2000-05-29 Thread Chris McDonough
> > What I would like to say is that if your application needs lambda, filter or > > map, your code is getting bejond report or presentation generation (for which > > DTML is intended) and in the realm of data manipulation and business rules. In > > this case your code would be much better placed

Re: [Zope] import folder at other place than root

2000-05-29 Thread Chris McDonough
Peter, you can change this in the Python file lib/python/OFS/ObjectManager.py here: def manage_importObject(self, file, REQUEST=None): """Import an object from a file""" dirname, file=os.path.split(file) if dirname: raise 'Bad Request', 'Invalid file name %

[Zope] test

2000-05-29 Thread Chris McDonough
ignore please ___ 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/z

[Zope] Duplicate messages

2000-05-28 Thread Chris McDonough
Sorry about the continued dupes folks, I'm trying to flush the sendmail mqueue on the mail list server, and its processing rules are not as smart as I would have hoped. Hopefully once the flush is done we'll be back to normal... ___ Zope maillist - [

Re: [Zope] Hot backups

2000-05-28 Thread Chris McDonough
Patrick, as the Data.fs file is always appended to (as opposed to being overwritten in places), I think you should be OK backing it up on the fly. "Patrick J.M. Keane" wrote: > > Is there any facility in Zope for doing a hot backup, without shuting > down zope, taking a backup copy of var -- can

Re: [Zope] Zope.org down

2000-05-28 Thread Chris McDonough
All, Sorry about the downage. We believe Zope.org and friends (the mail list server, et. al.) were unable to be reached from about 7:30PM EST yesterday (Friday) to 11:00AM EST today (Saturday). Another PC on the same subnet as the primary DNS server for zope.org took its address, and the second

Re: [Zope] ?

2000-05-27 Thread Chris McDonough
Yeah, the machine the hosts the mail lists is a little confused right now. I'm working on it... Up until a little while ago, and since Friday evening, mail addressed to the mail list wasn't going anywhere at all. Sorry folks!! This should be fixed in a little bit... "Patrick J.M. Keane" wrote

RE: [Zope] ANN: Perl For Zope

2000-05-25 Thread Chris McDonough
> Ooo Ooo - XSLT? > Presumably I should read your sentence as "You will have the option > of using Perl as well as XSLT methods pretty soon" and not "Thou wilt > need Perl to get XSLT methods" ? :) The former... see http://www.zope.org/Wikis/zope-xml/UseCases __

RE: [Zope] Using relational DB for ZODB storage

2000-05-25 Thread Chris McDonough
Ivan... Hi, It's a "grassroots" effort. Jonothan Farr ([EMAIL PROTECTED]) is heading up the project, and I'm helping. We've gotten a few prototype versions up and running using MySQL and Interbase, but I'd say we're a few weeks away from being able to release an alpha. You can get more inform

RE: [Zope] ANN: Perl For Zope

2000-05-25 Thread Chris McDonough
This will be my last mail on this.. strong opinions ahead, and they aren't representative of anybody but me. > I have to say, I'm not convinced it is. Providing Perl methods is like > drilling a hole through a dyke wall. By getting loads of perl > programmers on board, you suddenly have a large u

RE: [Zope] ANN: Perl For Zope

2000-05-25 Thread Chris McDonough
This is pretty silly. >Very soon we'll be forced, 'cause most Products will be in > Perl (yse, > I've read the FAQ and saw "no Perl Products"; it's temporary, > mark you). ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/list

RE: [Zope] ANN: Perl For Zope

2000-05-25 Thread Chris McDonough
> The only badness I can see coming out of this is this: > > At present, I can consult at a client who is running Zope, and I'm > reasonably confident that I can read and understand all their code. > > When people can write their site half in Perl, I could well > be stuck... > unless I learn Pe

Re: [Zope] ANN: Perl For Zope

2000-05-25 Thread Chris McDonough
Oleg Broytmann wrote: >A year ago I resigned from a web development company because they forced > me to write Perl. I switched to Python and was and is very happy about it. > I don't want to see a line of Perl. And after all DC annonced Perl Methods! >How do you think I can feel about it?

Re: [Zope] ANN: Perl For Zope

2000-05-25 Thread Chris McDonough
Isn't this covered in the FAQ? Honestly I'm sort of surprised that there is such a strong reaction to this. When you talk about Perl for Zope, you're talking about three things: Perl through the web methods Perl external methods Glue code to make these things work properly I presume you're wor

RE: [Zope] Subclassing from Custom Python Classes

2000-05-24 Thread Chris McDonough
This is a good question that I'm not sure of the completely technically correct answer to. But here's my best shot. Part of what composes a "Zope object" is that the object inherits characteristics from the "Persistence.Persistent" class. This base class overrides Python's normal __setattr__ an

RE: [Zope] How to know the number of parents of an element ???

2000-05-24 Thread Chris McDonough
Errr... untested.. but should work. ... > -Original Message- > From: Frédéric QUIN [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 24, 2000 12:38 PM > To: [EMAIL PROTECTED] > Subject: [Zope] How to know the number of parents of an element ??? > > > Hi all, > > > Is there any func

RE: [Zope] Subclassing from Custom Python Classes

2000-05-23 Thread Chris McDonough
> >> You should also note that your subclass must obey the ZODB > >> persistence rules, which basically state that mutable sub-objects > >> should be treated immutably. For example, > >> > >> self.bird='parrot' # OK > >> self.map['bird']='parrot' # NOT OK, will not trigger persistence > >>

Re: [Zope] Executing an external program

2000-05-22 Thread Chris McDonough
s/execute via the browser. > > -=Brad=- > > ___ > 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:/

Re: [Zope] Zclass inheritence

2000-05-22 Thread Chris McDonough
drop DTML method. The Base class > list contains the same selection of bases - no Zclasses among them. > > Same deal under 2.1.4. I think debuging mode is operating on the both of > them, for what it's worth. > > Which bit of code should I start looking through, first? :-) -

RE: [Zope] Re[4]: [Zope] Zclass inheritence

2000-05-21 Thread Chris McDonough
John, I don't know about STX_Document, but can you confirm that you can't use any other ZClass as a base class? I'm using... errr... 2.1.6 here, and I can make a ZClass and have it show up in the base class list without fanfare other than satisfying the UI bug gods. > > This fails to help usin

[Zope] RE: Re[2]: [Zope] Zclass inheritence

2000-05-21 Thread Chris McDonough
> Er.. A ZClass based product doesn't have a convenient > __init__.py that I > can tweak, nor is there anything in the zclass management > interface that I > can use, either. What have I missed here? I just tried this... You don't have to do anything magical with ZClasses to have them show up

RE: [Zope] Zclass inheritence

2000-05-21 Thread Chris McDonough
> What does a product need to do in order to be a base class > for a ZClass? It needs contain a class that is registered as a base class in the product's __init__.py "initialize()" method via "context.registerBaseClass()" e.g. context.registerBaseClass(ZCatalog.ZCatalog) See lib/python/Pro

RE: [Zope] Memory creep

2000-05-21 Thread Chris McDonough
John, If you can figure out how to use them, the pair of methods implemented on the Control_Panel named "manage_debug" and "manage_profile" might help you... e.g. http://yourserver/Control_Panel/manage_debug . I can't give much in the way of explanation of them, there might be some good archived

RE: [Zope] Calling External Method...

2000-05-21 Thread Chris McDonough
> EEK! You're right! OK, that's fixed for now, but I thought > I saw in this > mailing list that an external method was required to have a > docstring. What > role does the docstring play, exactly? My ultimate goal is > to be able to > run the C++ program from Zope, returning the results to

RE: [Zope] Calling External Method...

2000-05-20 Thread Chris McDonough
> > DTML Method that calls the External Method: > > > > > > Geez, this is a pretty bad idea security-wise. Your xCGI Python function has a docstring and is therefore web-callable, so basically you're letting anyone who can access your Zope instance run any program on your serve

Re: [Zope] help with rpms on RedHat6.2

2000-05-19 Thread Chris McDonough
oss posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) -- Chris McDonough Digital Creations Publishers of Zope - http://www.zope.org ___

Re: [Zope] how do you pronounce 'ZOPE'?

2000-05-18 Thread Chris McDonough
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 ) -- Chris McDonough Digital Creations Publishers of Zop

<    1   2   3   4   5   6