Chris, Stephen,
Wouldn't an external method something like the following work for the
moment?
def getobj(self,url=None):
if url==None:
return None
return self.restrictedTraverse(url)
so in dtml you can do something like:
or
etc.
maybe?!!?
Phil
[EMAIL PROTECTED]
- Or
Depending on the object in question id could be a method, so you might want
to try:
hth
Phil
- Original Message -
From: "Tim Hicks" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 13, 2000 12:23 PM
Subject: [Zope] Simple dtml-unless problem
> I have the follow
You need to set the content type being returned, something like:
hth
Phil
[EMAIL PROTECTED]
- Original Message -
From: "Steinar Rune Eriksen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 13, 2000 11:15 AM
Subject: [Zope] Return data from External Methods
>
Marcello,
I'd say the simplest way is to create an external method, something like
(untested):
def addToTextFile(self, thingToAdd = None):
if thingToAdd:
f=open('thefile','w')
f.write(thingToAdd+'\n')
f.close()
or similar for changing/updating etc.
If you are short
You could always use one of the session management products on the Zope
site.
My particular favourite is SQLSession, but others exist which do a similar
job.
hth
Phil
[EMAIL PROTECTED]
- Original Message -
From: "Pierre-Julien Grizel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: T
Another option might be to proxy the Zope server through Apache on port 80.
- Original Message -
From: "Coleman, Bryan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 12, 2000 12:43 PM
Subject: [Zope] Important Security Concerns
> I almost have my company convince
Eric,
Take a look at the XMLDocument product, available from Zope.org.
It already parses the xml into zope objects (they may not be exactly what
you want though), but it may give you a start into what you want.
hth
Phil
[EMAIL PROTECTED]
- Original Message -
From: "Eric L. Walstad" <[
Douglas,
You seem to be doing as expected, however a few points to note:
see below:
- Original Message -
From: "Douglas Eadline" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 08, 2000 3:12 AM
Subject: [Zope] NEWBIE HELP can not get Zope to start
>
> I have tried
I can't say I see too much difference between the way Zope and ASP
accomplish things,
Zope has External Methods and Products,
ASP has COM objects which I'd say are a darn sight harder to grok.
Fact is that if these developers say you can do everything in VB/Jscript in
an ASP page then they are
Which one?
It may already be built by one of us Zopista types.
- Original Message -
From: Vincent
To: [Zope Org] (E-mail)
Sent: Thursday, August 24, 2000 11:37 AM
Subject: [Zope] building a Python module on Winnt
Hi,
How can I build a python module on Windows NT ?
Thanks
Vincent
Vincent,
You will need to change the rgistry entry for the service:
Open regedit and goto
hkey_local_machine/system/currentcontrolset/services//parameters.
Then double click on the 'start' parameter in the right hand window, when
the edit box comes up simply add a -D to the end of the options o
I seem to remember a entry to the collector about this, I think your stuck
with having a 'static' sort key.
or you could do something like
.
.
.
.
.
If you see what I mean.
Phil
- Original Message -
From: "Jean Jordaan" <[EMAIL PROTECTED]>
T
???
- Original Message -
From: "Jean Jordaan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "RC Compaan (E-mail)" <[EMAIL PROTECTED]>
Sent: Wednesday, August 23, 2000 2:52 PM
Subject: [Zope] method
> Hi all
>
> The answer to my previous question makes this one occur to
> me:
def testFolder(self):
self=self.this()
if hasattr(self,'id of object to check for'):
sub1=self.folder1
exec "object2create = 'folder11'"
try:
if sub1.object2create:
return 'Object exists'
except AttributeError:
sub1.manage_addFolder
Is docsByTitle a DTML Document?
If so then try making it a DTML Method.
It seems to be taking the properties from itself rather than it's container,
if yu see what I mean.
hth
Phil
[EMAIL PROTECTED]
- Original Message -
From: "Jean Jordaan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Try ringing vignette then, eh!
- Original Message -
From:
Sylvain Legrand
To: [EMAIL PROTECTED]
Sent: Wednesday, August 23, 2000 12:44
PM
Subject: [Zope] Hi guys, I'm looking for
the Vignette's SDK documentation
Andrew,
You *almost* seem to be enjoying this ;)
- Original Message -
From: "Andrew Kenneth Milton" <[EMAIL PROTECTED]>
To: "Jason Cunliffe" <[EMAIL PROTECTED]>
Cc: "Andrew Kenneth Milton" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, August 21, 2000 3:26 PM
Subject: Re: [Zope]
Chris,
Go on rewrite that tree-tag, go on I dare you. Make it better, go on, I bet
you can't.
8^)
Phil
[EMAIL PROTECTED]
- Original Message -
From: "Chris Withers" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 21, 2000 9:47 AM
Subject: [Zope] My problem or tree
George,
in the root of tyour zope-space (tm), put a DTML Method called index_html
which has these contents:
or alternatively
The second does mean an extra call to the server, but has other advantages.
hth
Phil
[EMAIL PROTECTED]
- Original Message -
From: "George Osvald" <[EMAIL P
What a bloody good question:
This has had me stumped all week!
Why isn't _ available in the tree tag?
Phil
- Original Message -
From: "Chris Withers" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 18, 2000 1:32 PM
Subject: [Zope] Okay, firstly, I notice dtml-tree doe
you need to put them in zope_dir/lib/python/shared/your_dir
Then in your external method:
import your_dir.myclass
hth
Phil
- Original Message -
From: "Francois-Regis CHALAOUX"
<[EMAIL PROTECTED]>
To: "Receipt Notification Requested" <[EMAIL PROTECTED]>
Sent: Wednesday, August 16, 2000
Acquisition
- Original Message -
From: "Peter Bengtsson" <[EMAIL PROTECTED]>
To: "Phil Harris" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, August 16, 2000 10:03 AM
Subject: Re: [Zope] DTML: fetch an object by its url?
>
- Original Message -
From: "Scott Shepherd" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 16, 2000 5:06 AM
Subject: [Zope] DTML: fetch an object by its url?
> In DTML is it possible to get an object using its url? Something like
>
> ...
>
> Similar to
>
>
All,
PHPlib (http://phplib.netuse.de) has a piece of javascript that creates MD5
hashes from the entries in a form:
so you would never have to pass passwords in clear text, as long as the hash
agrees with the one created server side, login is successful.
the PHPlib docs describe it better than
Sean,
I *think* you have to call manage_upload of the object itself.
So if you have a DMTLMethod called doc then it would have to be:
doc.manage_upload([file,REQUEST])
hth
Phil
[EMAIL PROTECTED]
- Original Message -
From: "Sean McGrath" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
oops,
Should hae been:
hth
Phil
[EMAIL PROTECTED]
- Original Message -
From: "Indra Gunawan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 14, 2000 2:38 AM
Subject: [Zope] A very newbie question
> I need to know the value of (sequence-index mod 3)=0
> in somethi
Indra,
Try:
hth
Phil
[EMAIL PROTECTED]
- Original Message -
From: "Indra Gunawan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 14, 2000 2:38 AM
Subject: [Zope] A very newbie question
> I need to know the value of (sequence-index mod 3)=0
> in something like
>
Steinar,
Did you call pythoncom.CoInitialize()?
If not you need to.
hth
Phil
[EMAIL PROTECTED]
- Original Message -
From: "Steinar Rune Eriksen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 11, 2000 12:49 PM
Subject: [Zope] Python + COM (from external method)
>
Scott,
By default Zope runs in debug mode, edit the script and remove the -D and it
should run as a daemon.
Phil
- Original Message -
From: Scott Burton <[EMAIL PROTECTED]>
To: Zope List <[EMAIL PROTECTED]>
Sent: Thursday, August 10, 2000 11:32 PM
Subject: [Zope] Redhat 6.2 problems
>
All,
Doing the text pulling from COM is *SLOW* to say the least, You'd probabnly
be better converting them to RTF and then using something like OmniMark to
convert to XML.
That way you'd have the best of both worlds, including something you can
render to HTML when zDOM/zXSLT becomes a reality.
Vincent,
It's perfectly possible:
this is the management page
this is the normal members page
This is the joe public page
hth
Phil
[EMAIL PROTECTED]
- Original Message -
From: "Vincent" <[EMAIL PROTECTED]>
To: "[Zope Org] (E-mail)" <[EMAIL PROTECTED]>
Sent: Thursday, August 03, 20
No, it's not just you.
- Original Message -
From: "Ewald Wasscher" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 02, 2000 12:26 PM
Subject: [Zope] zope.org down?
> Hi all,
>
> Is it just me having problems or is www.zope.org down or being DOS-ed
> etc?
>
> Ewald
i-ko-ld.de/blah/blah.
Phil Harris
[EMAIL PROTECTED]
- Original Message -
From: "Andreas Rippel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 02, 2000 9:42 AM
Subject: [Zope] ZSearch generated default report file fails on result set
cardinal
tell you nothing unless you are using an
xmlrpcclient to do the looking.hthPhil Harris[EMAIL PROTECTED][EMAIL PROTECTED]-
Original Message -From: Steve Alexander <[EMAIL PROTECTED]>To: Phil Harris
<[EMAIL PROTECTED]>Sent:
Tuesday, August 01, 2000 9:45 PMSubject: Re: [Zop
favicon.ico is the name of the icon file that MS IE uses to customize
favorite listings.
Your site must be being added to a few peoples favorites lists.
You have two basic options:
1. live with it
2. use it, stick a file called favicon.ico in the root of your site.
Do a search on the MS site f
tav,
try
manage_changeProperties(page_owner=AUTHENTICATED_USER.getUserName())
- Original Message -
From: "tav" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, July 28, 2000 12:14 PM
Subject: Re: [Zope] anyone skilled in the ways of changing page properties?
> Chris Withers w
Richard,
I'd recommend getting the Zope Quick Reference (ZQR) from
http://zdp.zope.org (the zope documentation project).
I'ts invaluable.
Phil
[EMAIL PROTECTED]
- Original Message -
From: Richard P. Muller <[EMAIL PROTECTED]>
To: Chris Withers <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
S
When using the dtml-sendmail tag you need to structure it like this:
To: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Subject: Testing from my machine
mail body
hth
Phil
[EMAIL PROTECTED]
- Original Message -
From: "Brad Moulton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAI
Use a C compiler
- Original Message -
From: * Lucky <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 27, 2000 2:11 AM
Subject: [Zope] Compiling C souce code
How can I compile the C source code of SeachIndex.Splitters in order to
generate the
Splitters.pyd file ?
There is a patch to Apache that you could apply that passes the client IP
along in a different HTTP header, if that helps.
It's at http://modules.apache.org/search?id=124.
On the other hand you could use Squid as the Proxy as it has a config
directive for just this occasion.
HTH
Phil
[EMAIL PR
Search for Member Information
- Original Message -
From: Dennis Baker <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, July 22, 2000 12:08 AM
Subject: [Zope] A Better Way (Stupid DTML code)
> Ok, there has to be a better way of doing this, I
Peter,
If you mean that IE renames the file to xxx.ar instaed of xxx.tar.gz then
all you have to do is rename it after you have downloaded and all will be
well.
hth
Phil
- Original Message -
From: "Peter Bengtsson" <[EMAIL PROTECTED]>
To: "Tom Scheidt" <[EMAIL PROTECTED]>
Cc: <[EMAIL P
Andy,
You don't give us much to go on, but I'll just say that I've been using Zope
on NT for about 18 months and have seen no real instability problems at all.
The worst that happens is when I reboot the machine :)
Fill in some more detail, NT Service Pack level, Zope ver, NT build number
whate
Col!
- Original Message -
From: Jeff K. Hoffman <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, July 11, 2000 10:12 PM
Subject: [Zope] ANNOUNCE: Going Virtual Interbase Adapter v0.1
> Going Virtual, LLC is proud to announce the first
> release of i
Zope doesn't actually 'produce' HTML in most cases.
The HTML in question was almost certainly written by hand or by a third
party product (DreamWeaver etc).
- Original Message -
From: "peter be" <[EMAIL PROTECTED]>
To: "Svante.Kleist" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: 09
What version of MySQL is it?
- Original Message -
From:
Darin Lee
To: [EMAIL PROTECTED]
Sent: 08 July 2000 22:35
Subject: [Zope] MySQLDA Won't build
Help,
I cannot get the MySQL Database Adaptor to
build.
Error:
gcc -shared _mysqlmodule.o
Chad,
Before I attempt an answer to your question, can I ask you a favour?
Please don't send HTML encoded mail to the list, lesser mortals use crappy
mailers and have trouble reading it 8¬)
Thanks in advance.
If I understand you correctly you want the form to goto a full browser
rather than re
est" document to be "". And it doesn't
> >work, giving me an error message of:
> >
>
> try
>
>
>
>
> It can get complex quickly though - I'm sure I remember something on
> thew Zope list about this, I think it was a word of wisdom from Phil
Is it global to the page, or local to the page ?!?!?
- Original Message -
From: "Andrew Kenneth Milton" <[EMAIL PROTECTED]>
To: "Chris Withers" <[EMAIL PROTECTED]>
Cc: "josh on" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, June 07, 2000 3:05 PM
Subject: Re: [Zope] stupid que
Try:
hth
phil
[EMAIL PROTECTED]
- Original Message -
From: "michael angelo ruberto" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: 06 June 2000 23:18
Subject: [Zope] sort_order???
> hello,
>
> ok, here is my code:
>
>
>
> | |
URL> | |
>
>
> what's
Pete,
This doesn't really fix the underlying problem, but if you'd like to carry
on working with Zope you can rename the file /var/Data.fs and Zope
will recreate a new (good) Data.fs for you.
hth
phil
[EMAIL PROTECTED]
- Original Message -
From: "Pete Kazmier" <[EMAIL PROTECTED]>
To: <
Try turning off caching on your browser
- Original Message -
From: "Jilani Khaldi" <[EMAIL PROTECTED]>
To: "Zope ML" <[EMAIL PROTECTED]>
Sent: 06 June 2000 00:00
Subject: [Zope] Can't edit saved file
> Hi,
> I can't edit modified and saved files and everytime I open the folder
> and p
Paul,
What do you need to know?
I've got about 5-6 Zope instances running here for different purposes, on a
few different machines, so ask away.
Phil
[EMAIL PROTECTED]
Learning Technology
University of Wales College of Medicine
- Original Message -
From: "Paul Smith" <[EMAIL PROTECTE
Hi all,
Following a post by Dave Winer on ZopeNewbies:
http://weblogs.userland.com/zopeNewbies/discuss/msgReader$617
I took up the challenge and am glad to report that Zope validates 100%
against the test webapp.
See ya
Phil
[EMAIL PROTECTED]
___
Hi all,
My intellect was piqued recently by a discussion on the list about editors
for Zope etc.
I remember some people saynig that VIM was good, to which my response was,
'Yeah but there's no FTP built in'.
Someone then responded with a few scripts to do it.
Well I thought they were a bit cum
Jose,
Try going to http://localhost:8080/__no_before_traverse__/manage
hth
Phil
[EMAIL PROTECTED]
- Original Message -
From: "J M Cerqueira Esteves" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Jose Manuel Sebrosa" <[EMAIL PROTECTED]>
Sent: Friday, June 02, 2000 4:45 AM
Subject: [
Luis,
see:
http://zope.nipltd.com/public/lists/zope-archive.nsf/47ba74c812dbc5dd8025687
f0024bb5f/341813706896c719802568e1007a5a9c?OpenDocument&Highlight=0,currentc
ontrolset
Which will probably mangle in the mailer, so if it don't work:
goto http://zope.nipltd.com/public/lists/zope-archive.ns
Seconded,
Surely for most purposes the language used to implement is irrelevant. Code
in whatever you want, stick PHP/Smalltalk/whatever language into Zope if it
means more people can use it, and save me having to write my own stuff ;)
The important thing is the framework!
Phil
[EMAIL PROTECT
I'd say the easiest way is to give them different ports:
give zope1 port 8080 and zope2 port 9080
If you've installed the Zopes as NT services you need to change the
parameters to the services in regedit:
goto hkey_local_machine/currentcontrolset/services/zope2 and change/add a
parameter to cha
- Original Message -
From: "Patrick J.M. Keane" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 30 May 2000 07:25
Subject: [Zope] Question about sorting
>
> Does sort only sort in one direction? I am looking to sort news items
> so that the newest items are on top, and when sor
I'd be interested when it's done.
Phil
[EMAIL PROTECTED]
- Original Message -
From: "Pierre-Julien Grizel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 30 May 2000 16:42
Subject: [Zope] dtml-tree and REQUEST.form
>
> Hi,
>
>
> I'm currently implementing a tree using... dtml-tree.
Hi
I've found a bug in GenericUserFolder.
Basically if you try and do any restriction by domain then it will fail
every time.
The problem is that on line 151 of GenericUserFolder.py, it tries to use
addr_match and host_match, which I assume was meant o be the same as the one
in the standard Use
Seconded, REBOL is cool!
- Original Message -
From: "Graham Chiu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 26 May 2000 23:37
Subject: Re: [Zope] ANN: Perl For Zope
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> In article <[EMAIL PROTECTED]>, Jim Fulton
> <[EMAIL PROTE
Yeah,
I made one in Python a while back, but it's not quite the same as having it
built into the editor itself.
Something like the Emacs Ange-FTP in GVIM and I'd be a total convert.
- Original Message -
From: "John A Chaves" <[EMAIL PROTECTED]>
To: "Phil
I'd like to third that but Can't because GVIM doesn't have a FTP client.
If your using Win32 take a look at HTMLKit (www.chami.com). It's a free
HomeSite thingy, it's brilliant.
- Original Message -
From: "Wright, Geoff" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 26 May 2000 20:
Try something like:
- Original Message -
From: "Frédéric QUIN" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 24, 2000 5:37 PM
Subject: [Zope] How to know the number of parents of an element ???
> Hi all,
>
>
> Is there any function or method to get the number of
_ is the default namespace which you can treat sort of like a dictionary, so
this means you can index into it with the name 'things'.
so _['id'] means give me the id of the current namespace.
well sort of.
- Original Message -
From: "Timothy Wilson" <[EMAIL PROTECTED]>
To: "Rik Hoekstr
J,
You may not be as dumb as you think.
If I recall correctly, id is one of those strange fish which is sometimes
string and sometimes method.
So if in your case it is a method then id=='anything' will always be false.
Try id()=='index_html'.
hth
Phil
[EMAIL PROTECTED]
- Original Messag
create an other object (DTML Method) called bigfolder with these contents
(untested):
- Original Message -
From: "Alexander N Gould" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 24, 2000 12:43 PM
Subject: [Zope] newbie question: case sensitive folder problem
> Ho
Brenton,
What version of MySQL are you using?
Later versions have changed slightly and you need to edit MySQLmodule.c to
compensate.
I think if you remove the '&' in the lines mentioned in the error message it
should work ok, well it did for me.
hth
Phil
[EMAIL PROTECTED]
- Original Mess
LAST_INSERT_ID is the MySQL way to find out the last inserted id, how
exactly didn't it solve your problem?
phil
- Original Message -
From: "Andy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 18 May 2000 00:44
Subject: [Zope] ZSQL-Methods: last inserted id
>
> I wonder how I can fi
101 - 171 of 171 matches
Mail list logo