> 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
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
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
> 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
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
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 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
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
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
**
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.
>
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
___
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
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
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,
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
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
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
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:
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
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
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
> > 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
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 %
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
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 - [
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
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
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
> 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
__
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
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
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
> 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
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?
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
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
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
> >> 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
> >>
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:/
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? :-)
-
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
> 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
> 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
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
> 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
>
> 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
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
___
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
501 - 548 of 548 matches
Mail list logo