r("http://www.myserver.com/Zope/test/")
s.createDocument()
Then it successfully creates the document.
So how do I successfully pass arguments in to the DTML method so that it can
populate the new document with the correct data?
Cheers
-Andy Dawkins
(New Information Paradigms Ltd)
Try using an argument other than 'login'
Change it to something else because login could easily be a reserved
keyword.
To test this simply change it to xlogin or something similar.
Let me know if that helps.
-Andy
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
I have a question ..
I create a product and i would like to to use my product when I select
it from the objects combo box. But It always puts me into the security
screen !!! and not my index_html. I have several methods in that product
..
To create a new object you must supply an addForm
I have a python script which uses XMLRPC to call an External Method that
packs the database.
Not ideal, but it does allow me to pack the database
a) From Zope
b) From the command line
c) Whilst the server is running
d) During very large imports which make ZCatalog Explode (I wish
CatalogAware
Jason
I'm not sure if it is worthy of putting up on Zope.
Although I'm sure people will correct me if I am wrong.
But I have no problems in letting you have it
packDb.py is the main python script.
You will need to change the line that reads
Have you ever used this from cron? Just so I know before I try it.
No I haven't tried it from cron yet but I see any reasons why you couldn't,
except to make sure all the libs are in a common/accessable place. eg.
Python/lib
-Andy
___
Zope maillist
Whilst in agreement with Chris I would like to throw another situation in
here that CatalogAware doesn't cater for.
If you change a folder name, somewhere higher in the tree, then all the
cataloged objects references are incorrect.
I think this is the same problem that Chris mentioned but a
ZMailIn 0.3.0 is now available here:
http://www.zope.org/Members/NIP/ZMailIn/
Major Revisions:
-- Global ZCatalog to index ZMailIn instances.
-- Support for Multi-Mime type emails.
-- Customisable Message handling via DTML-Methods.
-- CatalogAware + Folderish.
Cheers
-Andy
It's be nice if ZCatalog had a good general purpose
interface, and was a
bit more robust.
(the BTree implementation which has been mentioned a few
times springs
to mind here ;-)
Can you be more specific?
Andy can fill you in on the specifics.
OK...
Specifics,
Vince
What specifically is the problem.
As author of the ZMailIn Products prehaps I can help you solve your problem.
-Andy
Hi Zope,
I tried to install ZMailIn but due to several
x-envelope-to-header problems from different providers I think
it'll not become a viable way of getting articles
Vince
I installed it right away - and I think it should work. When
first trying to mail to the system it said it had some problem
with the x-envelope-to header.
The ZMailIn system doesn't use the x-envelope-to header it uses the
envelope-to header.
If your mail server provides x-envelope-to
Chris
If that will solve peoples problems.
But I haven't had much feedback on the product so its hard to make any
improvements.
-Andy
-Original Message-
From: Chris Withers [mailto:[EMAIL PROTECTED]]
Sent: 21 November 2000 10:14
To: Andy Dawkins
Subject: Re: [Zope] ZMailIn
But there is a difference for the internal methods (restrictions on
security and builtins), as well as similarities with other Zope methods
(the way you call it from DTML or via URL). I was thinking of the analogy
with ZSQL.
BTW, can you use DTML tags in Python Script the same way you
Ethan
errr. I have a problem with that address.
The following error was encountered:
Unable to determine IP address from host name for new.zope.org
The dnsserver returned:
Name Error: The domain name does not exist.
Cheers
-Andy
-Original Message-
From: [EMAIL
Almost got it
dtml-var data newline_to_br
:)
-Andy
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Roland C. Reumerman
Sent: 04 December 2000 12:30
To: [EMAIL PROTECTED]
Subject: [Zope] How to use newline_to_br?
Scenario:
- a tried to show a
Mohan
try this,
dtml-let the_current_user="REQUEST.AUTHENTICATED_USER.getUserName()"
dtml-var the_current_user
/dtml-let
-AndyD
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Mohan
Baro
Sent: 08 December 2000 14:41
To: [EMAIL PROTECTED]
Chris
Yes you can use FTP to edit them.
(Tested with HomeSite)
Its kinda neat. The output looks like:
## Python Script "scripty1"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind
I heard a rumour that with Zope 2.3 you don't need to restart the Zope
server after making changes a (python) Product.
Can anyone confirm this?
If so how can I turn on/make this work ?
-Andy
___
Zope maillist - [EMAIL PROTECTED]
Brain
Cheers, That explains why it wouldn't do it then
:)
-Andy
Brian Lloyd wrote:
I heard a rumour that with Zope 2.3 you don't need to restart the Zope
server after making changes a (python) Product.
Can anyone confirm this?
If so how can I turn on/make this work ?
-Andy
am looking for a method of doing this that the Zope
community agrees as being efficient and recognises as being _the_ solution
to the problem. I want to avoid a 'hack' solution if possible.
-Andy Dawkins
(New Information Paradigms Ltd)
___
Zope-Dev
Dan wrote:
Shared data should go in zope/var, or a subdirectory of that.
Zope/lib should be considered read-only by running products unless
explicitly changed by the user. As you have correctly pointed out,
lots of machines share Zope installations for multiple servers.
A standard interface for
does anybody know where REQUEST['INSTANCE_HOME'] disappeared to between Zope
version 2.1.4 and version 2.1.6.
Furthermore is it likely to reappear or has it been succeeded by some other
key.
Cheers,
-Andy Dawkins
___
Zope-Dev maillist - [EMAIL
People
Has anyone managed to patch the MYSQLDA so that you can access a MySQL
server on a different port?
i.e. port 3307 instead of the default 3306
If so would you care to share the breakthrough with me please?
Andy Dawkins
___
Zope-Dev maillist
Shane
This would be very helpfull to share.
One of the reasons I tried the Berkeley Database was because I kept blowing
this 2Gb limit.
Prehaps if this was released I could finally finish the zope mail archives.
:-)
Cheers
-Andy
-Original Message-
From: [EMAIL PROTECTED]
Dieter Maurer wrote:
Chris Withers writes:
Dieter Maurer wrote:
Andy McKay writes:
what does anyone else think
I would not like it.
Why not? ;-)
I would not like to see this sort order in the management
screens, because I use capitalization to
Andrew
David
Wayne
bart
sophie
is better than sorting:
Andrew
bart
David
sophie
Wayne
That's only because you use NT (ach spit). ;)
Thats not actually true.
It is how python behaves on WinNt, Win9X, Linux, etc
(I have tested this)
-Andy
Your analogies imply that this behavior is a bug or an unintended flaw
in the design. I would argue that it is intentional. Unix file systems
work the same way. Try doing an "ls" with mixed case files and you'll
see what I mean.
It isn't a flaw. It seems as though it was overlooked.
The
* collation (which letters belong together) is highly locale
sensitive (e.g., does a-accent-grave sort with a? etc.)
A Fair point.
The answer is whatever seems _naturally_ correct from a users point of view.
I think the answer is yes.
Elephant
entropy
écrit
élan
i.e. In the order in
Well just to be completely different to everyone else, I like the new look.
The bar at the top takes up a centimeter on my 20in monitor and it doesn't
bother me in the slightest.
I think Brain is right, People have been asking for DC to give Zope a face
lift and now its got one you are all
I'm having some more problems with the ZCatalog in Zope 2.3.0
I've got a name error in the file UnTextIndex.py
Error Type: NameError
Error Value: i
I believe this is occuring when the catalog tries to unindex an object
that isn't currently indexed.
The traceback reports line 332:
File
People
I have a desire to be able to profile my Python Product so that I can
benefit from the advantages of profiling.
Has anybody done this?
Does anybody know how to do this?
I have tried profiling Z2.py but of course that doesn't drop down to the
level of the python product (Possibly running
Martijn Pieters wrote:
Have a look at: Control Panel - Debug Information. There is a 'Profiling'
tab that explains what you have to do to switch it on.
--
Martijn Pieters
Oh my god, That is so sexy
:-)
Cheers Martijn, I owe you a pint.
-Andy
The bug with zope 2.3.0 that I reported with this mail:
http://zope.nipltd.com/public/lists/dev-archive.nsf/ByKey/5FE0F6EF4EFF2299
Has made it in to 2.3.1b1
Can we please get rid of it this time??
Do I need to submit anything to the collector for this to happen?
-Andy
Chris McDonough wrote:
Andy,
Eek!! Please do submit this to the collector again.
Apologies,
- C
I have submitted it to the collector with a patch, so there will be no
excuses next time :)
-Andy
___
Zope-Dev maillist - [EMAIL
[EMAIL PROTECTED] wrote:
Hi,
Here's take II of the funky logo for python scripts (adapted from the Win32
Python distribution)
This one is transaparent where it needs to be...
enjoy :-)
Chris
Totally Groovy
Its made its way in to my Zope installation's
-Andy
Chris Withers wrote:
Is there a workaround in the meantime? This is turning into a real
showstopper for one of NIP's most important projects right now :~(
desperately,
Chris
I the meantime I have changed that method to the following:
def insertReverseIndexEntry(self, entry,
Chris
I also have this error with 2.3.1b2
Here is the line which calls the search:
sr = self.searchResults({'Type' : type, 'sort_on':'lowercase_title_'})
fyi. type = 'TypeTest'
The indexes are as follows:
Status = Text Index
Type = Field Index
Identifier = Field Index
lowercase_title_ = Field
I posted this before but didn't get a reply.
Has any one seen this bug, Or do they know a fix?
ATM this is stopping me using 2.3.1b2 which is a bad thing(tm)
---
Zope Errorr
Zope has encountered an error while publishing this resource.
Error Type: TypeError
Error Value: len() of
People
I have found this small problem but I don't know where it is coming from
or why.
If you create a Python Script in a folder:
---
print container.id
return printed
---
If fails with this error:
Error Type: TypeError
Error Value: call of non-function (type list)
Traceback
Phil Harris wrote:
Andy,
Try
print container.getId()
return printed
hth
Phil
That doesn't work either.
Prehaps I should have been more specific.
Generally _any_ calls on the container result in this error.
I used 'container.id' because this is the simplist one to
I'd file this in the Collector, I have seen another problem with Python
Scripts that seems related on the lists somewhere, I think something
changed out from under Ethan's feet..
This has been collected:
No. 2094
http://classic.zope.org:8080/Collector/2094/view
Cheers
-Andy
YAY
*There was much rejoicing*
Thanks Shane, once again you have solved my problems.
-Andy
Shane Hathaway wrote:
Andy Dawkins wrote:
Zope 3X requires Python 2.2b2.
Are you sure you mean Python2.2b2?
I tried this but seem to get problems with the pyexpat module.
Would
42 matches
Mail list logo