[Zope] SV: [Zope] HTML EDITORS

2000-05-28 Thread Peter Bengtsson

Homesite 4.5.1 is very recommended one one very good reason and that is 
that you can in detail define  their color and closing tag.
For example: You can specify that  ends with a 
You can of course also specify how to color code different tags to seperate 
DTML from HTML

-Ursprungligt meddelande-
Fran:   Luis Cortes [SMTP:[EMAIL PROTECTED]]
Skickat:den 27 maj 2000 05:14
Till:   [EMAIL PROTECTED]
Amne:   [Zope] HTML EDITORS

Hello,

Has anyone found a really good HTML EDITOR that plays nice with dtml tags?

Do anybody have anything they can really recommend?

Thanks for the advice,
Luis.

___
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 )




Re: [Zope] GOOD

2000-06-30 Thread Peter Bengtsson


> Zope Team should incorporate that software into Zope too. As well as
> they should put their "Available Object" white box, you know what I mean
> ? ->ABOVE<- the files. See, when you have 900 files in one directory,
> you need to scroll down each time.. so I suggest to put that box, you
> know the box I mean ? Place it at the top of the page.

Well, GOOD use of Zope is not to have 900 files in one directory, but to use
acquisition and different folders for different objects or projects or
sites.
When I work with the Zope interface I realize that I spend more time on
clicking the objects than the "Available Object" white box.

What you could do is copy the HTML code to the "Available Object" white box
and implement that into the menu (menu.dtml).
Use some extra javascript to ensure that the focus is put in the workspace
frame.

A GOOD thing about Zope being Open Source is that you can tamper the
interface for your needs if you want to.

Me, for example, have created a list of all objects (not only the folders)
below the tree in the menu frame. And I have the title of the object pop up
in the status row of the browser.
The purpose of that was that I sometimes forget what I named the object I
created, when I am about to use it in a method of document in another
folder.

Even simpler would be to change the HTML source of the management interface
yourself and cut'n'paste the "Available Object" white box above the list of
objects.

> ___
> 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] "Powered By Zope" logo

2000-07-04 Thread Peter Bengtsson



Dear Zpeople
 
 
The "Powered by Zope" logo in the footer is slow to 
load for some reason, and I don't like the colour of it (nice, but not one the 
site I'm working on at the moment.
Basically, where do I find the source for this: 

 
Yes, I know that I can create my own, but why 
bother when one already exist.
 
Yours truly, Peter
 
 


Re: [Zope] How do I call a parameter from inside of the same form?

2000-07-05 Thread Peter Bengtsson

I can only help you with this if the select thing is multiple.

<__untested but should work__>











- Original Message - 
From: Sean G Richards <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 05, 2000 3:59 PM
Subject: [Zope] How do I call a parameter from inside of the same form?


> Hello,
> I am trying to build an SQL statement in a form, and then pass the
> statement onto a Z SQL method, for execution.
> something like
> 
> < form action="search_results" method="get">
> 
> 
> 
> 
>Jennifer
> Anne
>Alice
> 
> 
>  value="  where_statement type=string>">
> 
> 
> 
> 
> I understand that this isn't the correct way to do this, I am just
> trying to convey what I want to do, and maybe someone can help me!
> Also, what would I do if the  box was multiple, where I could
> select more than one option?  Well, if this is possible in Zope please
> let me know.
> Thank you and have a nice day!
> 
> Sean Richards
> 
> 
> ___
> 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 )




Re: [Zope] Error tracing...

2000-07-06 Thread Peter Bengtsson

The tracing error should be comment in the error message page.
View Source.

Make sure you start up zope with -D for debugging reason.
- Original Message - 
From: Peter Arvidsson <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 06, 2000 6:55 PM
Subject: [Zope] Error tracing...


> How do I trace errors in Zope? I get the following error message:
> "Empty entry when integer expected "
> It gives a hint of the problem but I cant see what value is empty.. how
> do I control the values? Is there some way to write out variables or do
> I just have to guess???
> 
> 
> ___
> 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] Python or DTML

2000-07-06 Thread Peter Bengtsson

I know that Python is integrated _very_ closly to the Zope core, but to use
a Python module you'll have to create an External Method and a file in the
Extensions folder;
and this might be slower than using DTML. Right?

Basically, how much faster is DTML to Python (assuming the codes outputs the
same thing)?
The reason I ask is that I (probably as everybody else) want an as fast site
as possible, but still use the power of Python.

And also, whats the performance difference of using External python modules
compared to the Python Method product?


Peter Bengtsson - bloody good programmer

Under UK Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of £500 damages/incident, £1500 for
repeats.


___
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/python startup error

2000-07-06 Thread Peter Bengtsson

I had that same error before as well.
That had nothing to do with Zope, rather Python itself. The problem was that
I had not installed TCL properly, and I reinstalled it.

But, true, your drivers must have been confused when you installed this
"shed-load" of Zope products.
Try to reinstall Python (the one with IDLE) and let the installtion use the
suggested paths for Python and TCL.

I had some "problems" with the PythonWin. After having opened a fully
functioning Python code in PythonWin, I could no longer use the following
code.
import sys
sys.path.insert(0,'C:\Program\Zopesite\Extensions')

... so I commented this out and it worked perfectly fine as before in Zope.
Strange.

Cheers, Peter


- Original Message -
From: tom smith <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 06, 2000 5:01 PM
Subject: [Zope] zope/python startup error


> newbie question.
>
> when zope starts I get the attached error dialog. Any ideas how I can fix
> this since zope is running on a remote server? It seemed to start going
> wrong after installing a shed-load of products into zope.
>
> cheers
>
> tom
>
> ps. to go into greater detail...
>
> ...I have two copies of Python...one in Zope's "lib" folder, and another
in
> "Program files". Do I "need" both? Are they getting their PYTHONPATHs
mixed
> up?
>
> Ideally I'd like just one Python, but with the IDLE editor AND the Windows
> extensions (ODBC),is this possible and how would I do it. Can I add IDLE
and
> ODBC to zope's python without breaking zope.
>
>
>
>


___
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] second step (many of You are going to laungh ;-)

2000-07-21 Thread Peter Bengtsson

Use the QuickStart tutorial included in the Zope.
Or. Go back to zope.org and download various tutorials

A really useful thing to do, is to understand how Zope is built and what you
can do with it. There are lots of good article links on the .org site.
- Original Message -
From: Vincent <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, July 19, 2000 8:21 PM
Subject: [Zope] second step (many of You are going to laungh ;-)


> Hi,
>
> I just download Zope today, and I am wondering how I am going to start
> toding something.
>
> May somebody tell me whath is the first step to do to put a custom HTML
page
> into ZOPE ?
>
> (I started the server, I can access the 'manage' tools ->
> server:8080/manage),
>
> I guess I need to creat my HTML page with notepad, ultraedit or whatever,
> but the next step ?
> Creat a ZOPE object linked to this HTML page ? No idea how to do that...
>
>
> Thanks a lot
>
> Vincent
>
>
> ___
> 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 )




Re: [Zope] zzLocale 0-0-3a released on Zope Japan

2000-07-21 Thread Peter Bengtsson

IN SWEDISH - ABOUT SWEDISH

Finns det ett intresse av fler an mig att jobba med detta?
Om, det gor det, hur manga blir vi, och hur ska vi lagga upp arbetet?

Smidigast vore ju att ge deltagare access till .dtml filer, med version'ing,
pa en och samma server.
Syftet ar nog mest att skriva om sidor som klienter kan tenkas anvanda.

Intresserad?

- Original Message -
From: Yves-Eric Martin <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 21, 2000 10:53 AM
Subject: [Zope] zzLocale 0-0-3a released on Zope Japan


> Hi Zopistas,
>
>
> This is the second alpha release of zzLocale, a Zope locale support
> Product.
>
> zzLocale provides a framework for Zope interface internationalization
> (Zope and Products management screens). The localization is done on a
> per request basis, which allows developers from different countries to
> work on the same Zope while each of them having an interface in his
> native language.
>
> With zzLocale, Product developers can easily provide localized
> interfaces for their Products. All that is needed is to put the
> localized interface DTML templates in a "locales/[lang]" subdirectory of
> the Product, and zzLocale does the rest.
>
> This version of zzLocale is pretty useable, and usually falls back
> nicely when something goes wrong. However, it is still alpha, and we
> would not recommend using it on a production server.
>
> This release includes a complete (I mean, as complete as current
> zzLocale features permit) French interface, and a partial Japanese one.
> Tranlators are welcome to provide other languages. Please send us your
> translated templates so that we can include them in the next release.
>
>
>   For more information and download:
> http://www.zope.ne.jp/users/yemartin/zzLocale
>
>
>
>   Regards,
>
>
> --
> Yves-Eric Martin
> Digital Garage Inc.
> [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 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 and Mac

2000-07-21 Thread Peter Bengtsson

Have had similar problems, but not on Mac, but on Windows98.
My problem has been that IE saves files from zope.org with a different
extension than that show on the Products page. This has caused archives to
be incomplete, hence broken products.

If you download a xxx.tar.gz, make sure it's called so on your Mac desktop
as well.
Maybe a Windows problem?
- Original Message -
From: Tom Scheidt <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 21, 2000 2:59 PM
Subject: [Zope] Zope and Mac


> Hi,
>
> I'm having problems installing products from a Macintosh. I downloaded
them
> onto my hard drive and uncompressed the .tgz files with Stuffit Expander.
I
> then FTPed them with Fetch to my server, then restarted Zope. The products
> were listed in the Product Management folder, but they had broken icons
and
> were not showing up in the "Add" list. I did not have this problem when
> doing the exact same thing on a PC. Any ideas how to fix this? Thanks.
>
>
> Tom Scheidt | www.falsemirror.com | [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 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] Snapshots and Demo of Products

2000-07-28 Thread Peter Bengtsson

To the webmasters of www.zope.org and others.

When I browse the directory of Products on the zope.org site I realize that
the thing I'm missing the most is screenshots and demos of various products.

On Product pages on zope.org the default sections are:
- name
- description
- changes
- contact
- license
and download

I urge these to be default sections as well:
- screenshots
- demo

This improves the user friendliness of the whole website and might make
surfers more likely to download and install the product when they can SEE
what it is.

This is especially important for the Zope product itself. I have noticed
that the first thing I do when I browse zope competitors homesites, is to
look at screenshots.


So if webmasters of zope.org can push for this and product developers can
open their photoshop or gimp and save themselves a couple of jpegs, that
would be great!




Peter Bengtsson - bloody good programmer


___
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] Zcounter permission problems

2000-07-28 Thread Peter Bengtsson

I use the - http://www.zope.org/Members/srichter/Products/ZCounter -
ZCounter product on my Zope site.

I create a Zcounter easily and I call i mycounter for example.

I then call for it like this  (as
taken from the above URL)

When I open a new browser window (not Ctrl+N), so that login is "reset", the
page where I use mycounter requires login in Zope.
How do I prevent this? How do I make it work like a regular hit-counter
without needs for login?
Or more simply, how do I change the proper permission settings to the
'mycounter'?




Peter Bengtsson - bloody good programmer


___
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] Passing 'document_title' to 'standard_html_header' from a method?

2000-07-31 Thread Peter Bengtsson

http://www.zope.org/Members/michel/HowTos/DTMLMethodsandDocsHowTo
"They [methods] do not act like most other Zope objects because they are
methods of the folder that contains them. "

Very important reading. I've forgotten most of it, but what I remember is
important.

- Original Message -
From: Jonathan <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 31, 2000 1:06 PM
Subject: [Zope] Passing 'document_title' to 'standard_html_header' from a
method?


> Hi all,
>
> I can't seem to get the 'document_title' from a method into a
> standard header (when using '' in the header
> file the generated page uses the title of the header file itself.
>
> Using 'title_or_id' in the header file for a method uses the title or
> id from the folder it is in, not the title from the method itself.
>
> Any ideas? I didn't really find a solution in the archives; it does
> work with DTML Documents, but not with DTML Methods?
>
> Thnx,
> 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] Take possession over DTML Documents/Methods

2000-08-02 Thread Peter Bengtsson

Hello I use you Poll product [http://www.zope.org/Members/mega/poll]
The only two documents I can control is the index and results page, which is
fine.
But how do I do if I want to change and modify how other things work, such
as the way the results are presented and what happens after you've clicked
'Vote'.
The reason I'm asking is that I want to translate everthing shown to the
user in Swedish and I also want it to work with the rest of my sites content
(CSS and layout). I managed this well with index and results.

I can't change the product itself because I am being hosted by a friend and
I can't ask him to modify products to suit me.
I had the same problem with the URL Directory product
 http://www.zope.org/Members/Roug/SimpleURLs ]. I didn't want to use the
thank_you_html page (found in Control Panel) so I changed (with my
administrators consent) that to thankyou_html and put in my own
thankyou_html document in the relevant folder.

In other words, how do I take possession of the documents/methods of your
otherwise lovely product?


Peter Bengtsson - bloody good programmer




___
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] User roles in different folder (Copy roles?)

2000-08-03 Thread Peter Bengtsson

I have given my friends a folder of their own on my Zope site.
/root
/friends
/friend_ONE
/friend_TWO
/friend_THREE

All my friends are Manager of their own folder.
Now, me and my friends have folder called /images. And I want everybody with
a friend folder of their own and me to have access to the /images folder.
All they can do is upload images.
/root
/friends
/friend_ONE
/friend_TWO
/friend_THREE
/images

How do I use the User permissions in each /friend folder to give them access
to the /images folder?
I don't have many friends so I can hand code it if I must. (prefer not to,
if the marry and change name later on)

[ Shame on my for I haven't read through the e-books I ordered from
Beehive.de ]

Peter Bengtsson - bloody good programmer




___
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] Importable Xron

2000-08-09 Thread Peter Bengtsson

I want to use the Xron product but I don't understand how to use it.
(http://www.zope.org/Members/lstaffor/Xron/)

All this Zope Zen jargon makes me dissy. What I don't understand is where
and why to put reschedules at certain places. Subclasses and DTML
Methods...etc.

Can you please include a importable zexp on the download page of Xron.

I want to do one single simple thing for now.
Send the  constant information about various site stats.
These should be sent weekly or hourly or monthly.
I also want to have more than one instance of Xron.


Can somebody give me examples. Especially how you set the date and time.
(I have no experience of cron and I live in GMT+0)


Grateful, Peter



Peter Bengtsson - OD Consultancy


___
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] Simple DTML date-stamp

2000-08-10 Thread Peter Bengtsson

 should do what you are after.
 Should return 15:35 for
example.

Take a look at
http://www.zope.org/Members/AlexR/CustomDateFormats
for date and time formats.

I've had som problems with returning the modification date of the right
object if you do like this in standrard_html_footer

Use:

Current page last modfified: 


This should maybe be coupled together with a dtml-try or simply dtml-if, but
I haven't run into problems with it without.

> Just starting to set things up, and I would like a
> standard_html_footer with a date-stamp.
>
> As a start, I tried:
>
> 
> Last modified: 
> 
> 
> 
>
> Why does this break?
> Minimal format breaks in the same way:
>
> 
> Last modified: 
> 
> 
> 
>
>
> In either case, View generates:
>
> Zope Error
> Zope has encountered an error while publishing this resource.
>
> KeyError
>
> Sorry, a Zope error occurred.
>
> Traceback (innermost last):
>   File C:\Program Files\TotipotentZope\lib\python\ZPublisher\Publish.py,
> line 222, in publish_module
>   File C:\Program Files\TotipotentZope\lib\python\ZPublisher\Publish.py,
> line 187, in publish
>   File C:\Program Files\TotipotentZope\lib\python\Zope\__init__.py, line
> 221, in zpublisher_exception_hook
> (Object: ApplicationDefaultPermissions)
>   File C:\Program Files\TotipotentZope\lib\python\ZPublisher\Publish.py,
> line 171, in publish
>   File C:\Program Files\TotipotentZope\lib\python\ZPublisher\mapply.py,
> line 160, in mapply
> (Object: standard_html_footer)
>   File C:\Program Files\TotipotentZope\lib\python\ZPublisher\Publish.py,
> line 112, in call_object
> (Object: standard_html_footer)
>   File C:\Program Files\TotipotentZope\lib\python\OFS\DTMLMethod.py,
> line 167, in __call__
> (Object: standard_html_footer)
>   File C:\Program
> Files\TotipotentZope\lib\python\DocumentTemplate\DT_String.py, line 502,
> in __call__
> (Object: standard_html_footer)
>   File C:\Program
> Files\TotipotentZope\lib\python\DocumentTemplate\DT_Var.py, line 276, in
> render
> (Object: date)
> KeyError: date
>
> ___
> 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] Wrap or not wrap i Zope source

2000-08-10 Thread Peter Bengtsson

[ 
I posted this query to the zope-dev mailing list at the begining of this week, but 
with no response.
Maybe my friends at the zope mailing list can help me before I crash my Zope 
installation.
]

What I want to do is simple. But doing it can be tough.
Modify the source of Zope so that one can select either wrap=off or
wrap=virtual in the textarea box of the documentEdit.dtml

I bet you all recognize these HTML bits (documentEdit.dtml):

   
   
   
And I want to add:


This submitbutton should trigger the simple following DTML
(documentEdit.dtml):

 WRAP="virtual"

 WRAP="Off"


I have checked the python source, but I'm definitly not a wiz or very good
with OOP.
The documentEdit.dtml document "actions" the form to manage_edit() found in
DTMLDocument.py and DTMLMethod.py:

def manage_edit(self,data,title,SUBMIT='Change',dtpref_cols='50',
dtpref_rows='20',REQUEST=None):
"""
Replaces a Documents contents with Data, Title with Title.

The SUBMIT parameter is also used to change the size of the editing
area on the default Document edit screen.  If the value is
"Smaller",
the rows and columns decrease by 5.  If the value is "Bigger", the
rows and columns increase by 5.  If any other or no value is
supplied,
the data gets checked for DTML errors and is saved.
"""
self._validateProxy(REQUEST)
if self._size_changes.has_key(SUBMIT):
return
self._er(data,title,SUBMIT,dtpref_cols,dtpref_rows,REQUEST)
self.title=str(title)
if type(data) is not type(''): data=data.read()
self.munge(data)
if REQUEST:
 
   message="Content changed."
return
self.manage_main(self,REQUEST,manage_tabs_message=message)


The _er method is found in DTMLMethod.py

def _er(self,data,title,SUBMIT,dtpref_cols,dtpref_rows,REQUEST):
dr,dc = self._size_changes[SUBMIT]

rows=max(1,atoi(dtpref_rows)+dr)
cols=max(40,atoi(dtpref_cols)+dc)
e=(DateTime('GMT') + 365).rfc822()
resp=REQUEST['RESPONSE']
resp.setCookie('dtpref_rows',str(rows),path='/',expires=e)
resp.setCookie('dtpref_cols',str(cols),path='/',expires=e)
return self.manage_main(
self,REQUEST,title=title,__str__=self.quotedHTML(data),
dtpref_cols=cols,dtpref_rows=rows)

I GUESS that it is in this method I do my changes (together with parameters
in manage_edit() [DTMLDocument.py and DTMLMethod.py])

Maybe something like this:
if wrap_cookie is 'off':
resp.setCookie('wrap_cookie','virtual',path='/',expires=e)
newwrap_status='virtual'
else:
resp.setCookie('wrap_cookie','off',path='/',expires=e)
newwrap_status='off'
...and...
return self.manage_main(
self,REQUEST,title=title,__str__=self.quotedHTML(data),
dtpref_cols=cols,dtpref_rows=rows,wrap_or_not=newwrap_status)

I don't dare to do anything yet, because I feel a bit unfonfy about changing
source at this level.
Can you please give me some hints or advice or maybe you already have this
done.

Peter Bengtsson - bloody good programmer
[ do I dare to keep my funny signature after this email? ]


___
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 culture (Was: [Zope] Simple DTML date-stamp)

2000-08-14 Thread Peter Bengtsson

> > I currently function in two worlds, Win98 and Linux.
> > Would I be right to say that 90% of Zopers live in world
> > number two?
>
> I dunno. Lots of Linux yes, but a lot of other *nix too and at least a
> proportion of WinNT and 2K.
>

Why not set up a Poll on zope.org to find out about these things.
Like a weekly poll.
Here - DC - are some other questions I can consider to participate in:
- What platform do you use for your Zope?
- Do you use Apache (ZAP) infront of your Zserver?
- Are you subscribing to the mailing list?
- Do you check the mailing list archive before you post to the mailninglist?
- Are you webmaster of the server you run Zope on?
-
-

This would also make people go back to zope.org more often, and all its
benefits.
Count me in for help!


___
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] How to use RESPONSE.redirect ?

2000-08-15 Thread Peter Bengtsson


Should do it!
or maybe



> 
> 
> If I do
> 
> The current form isn't being passed ?
> 
> Any ideas..
> 
> TIA
> Stuart
> 
> 
> ___
> 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 )




Re: [Zope] DTML: fetch an object by its url?

2000-08-16 Thread Peter Bengtsson


What's the difference between:
 (for current folder)
or  (for current object)

and


> 
??


> 
> - 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
> > 
> > ...
> > 
> > but what I have is the object's zserver url, not its name in the 
> > current namespace.
> > 
> > TIA,
> > Scott
> > 
> > ___
> > 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 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] __call__ error message - I gave up

2000-08-16 Thread Peter Bengtsson

Maybe you've got the syntax wrong. Have you tried these, and what they
return.


   



   



   



   



   



   


I honestly don't know the difference. If my DTML doesn't work I tend to
trial-and-error my way to it, and not bother why things happen and don't
happen.


Don't give up!!

Cheers, Peter

> What I like to do is pretty simple, but I don't get it. The following code
> snippet is simple and what I want to is straightforward:
>
> 
>   
> 
>
> All DTML Documents in a Folder should be put together in one document. It
> works fine, if there is no reference to another object. But when I put
> something like
>  in one of this DTML Document I get the appended
error
> message.
>
> Any Idea
>
> Jens
>
> 
> Error Type: AttributeError
> Error Value: __call__
>
>
> Traceback (innermost last):
>   File E:\Programme\WebSite\lib\python\ZPublisher\Publish.py, line 222, in
> publish_module
>   File E:\Programme\WebSite\lib\python\ZPublisher\Publish.py, line 187, in
> publish
>   File E:\Programme\WebSite\lib\python\Zope\__init__.py, line 221, in
> zpublisher_exception_hook
> (Object: Traversable)
>   File E:\Programme\WebSite\lib\python\ZPublisher\Publish.py, line 171, in
> publish
>   File E:\Programme\WebSite\lib\python\ZPublisher\mapply.py, line 160, in
> mapply
> (Object: index_html)
>   File E:\Programme\WebSite\lib\python\ZPublisher\Publish.py, line 112, in
> call_object
> (Object: index_html)
>   File E:\Programme\WebSite\lib\python\OFS\DTMLMethod.py, line 172, in
> __call__
> (Object: index_html)
>   File E:\Programme\WebSite\lib\python\DocumentTemplate\DT_String.py, line
> 502, in __call__
> (Object: index_html)
>   File E:\Programme\WebSite\lib\python\DocumentTemplate\DT_In.py, line
691,
> in renderwob
> (Object: objectItems('DTML Document'))
>   File E:\Programme\WebSite\lib\python\OFS\DTMLDocument.py, line 167, in
> __call__
> (Object: subdocument)
>   File E:\Programme\WebSite\lib\python\DocumentTemplate\DT_String.py, line
> 502, in __call__
> (Object: subdocument)
> AttributeError: (see above)
>
>
> ___
> 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 )




Re: [Zope] Zope.Org Style Developers Portal Question

2000-08-22 Thread Peter Bengtsson

>
> Hi. One of my clients needs to build a portal for developers
> to share information.  Showed them www.zope.org and they
> liked it.  Home much time would it take for a novice to
> go from a raw zope distribution to put in place the core
> functionality/look/feel of the zope.org portal?

As an example
I created a complete Timesheet tracking system for my (not so big) company
yesterday, using cabbie's TimeTracker (Timesheet) product.
It works fine, but I need to to some minor tweaks to it.
The kewl thing is that I spent 25 mins on it totally. 15 of those 25 mins
was spent on adding some style to the site. Nice colors and goodlooking
fonts.

If you have more than 25 mins to spend, do so on additional stuff and extra
features such as style and design.
Simple. Why do stuff you don't have to do, when some1 else's done it for
you?

Credits to all Zope Product Authors and the Zope team itself!

>
> -Tim
>
> Tim Bass, Silk Road
> http://www.silkroad.com/
>
> Network-Centric Subject Matter Expert, AFCIC/SYN
> Network-Centric Subject Matter Expert, DOE/CIO
>
> http://calendar.yahoo.com/public/timothy_james_bass
>
> Voice: 703 222 4243
> Fax:   703 222 7320
>
> ___
> 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 )




Re: [Zope] Not like ASP complaint - any good answers

2000-08-25 Thread Peter Bengtsson

Sean

Just ignore them. I used to be an ASP developer myself not long code ago.

What do you mean "intermingle"?
If you want to loop though a list or db-table row, you will have to
"intermingle" your good old  and  tags.
There is no way of getting around that in ASP as far as I know, unless
something amazing has happens since I left the community.

Yes, markup tends to be mixed with external/python methods. I guess that is
out of conveniece only.
You could:



...if you really want to make the externalmethod() generic...


  

  



What ever you like! Take control over your code. Don't let the code take
controll over your options.
Zope coding feels like "do it either way". ASP coding feels like "do the one
and only way".


Maybe "your" ASP developers, have seen external/python methods written by
people who use the method for themselfs (not caring about reusing the method
again), but has decided to let other developers use it.
Maybe?

Take care, be strong, Peter


> All,
>
> I have had a number of e-mails from developers
> using Microsoft ASP in recent days. The paraphrased consensus
> in the e-mails is that the external
> methods/python methods approach to mixing markup
> with code in Zope is more clunky than in ASP where
> you can intermingle the two at will.
>
> Has anyone written anything on this topic I could
> point them to?
>
> regards,
> Sean
>
>
>
> http://www.pyxie.org - an Open Source XML Processing library for Python
>
>
> ___
> 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 )




Re: [Zope] Imagemap in an image object

2000-08-25 Thread Peter Bengtsson

Have you tried this?:

If you have and this returns and error, give us the error.




> Greetings,
> 
> is there an easy way to add imagemapping to an image object or do I
> have to create a new class for such a purpous?
> 
> Thank you
> 
> Radim
> 
> ___
> 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] Check if Image is uploaded solution

2000-09-21 Thread peter bengtsson

I'll post this on Zope Tips.

I've struggled with this for almost an hour soon, and since no good answer 
was provided in the mailinglist or the weblogs, I post it.

-
How to check if an Image has been uploaded from a file form or not.





 0">
  Image posted

  No image posted

-


Reflections on this?


-- 
/ Peter

___
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] IEMethod and Owner permissions

2000-09-28 Thread Peter Bengtsson



Hello
 
I'm using the IEMethod product installed on Zope 
2.1.6
In a folder object's security tab, I have set Owner 
to be allowed to change IEMethod, but an ACL User in that folder (being Owner) 
can't.
 
When logged in as this Owner user, I can't change 
(File) my changes in the IEMethod.
 
Any similar security setting for DTML Documents or 
DTML Methods works with this logic.
 
Ideas? Solutions?


Re: [Zope] Uploading images my way

2000-09-29 Thread Peter Bengtsson

> How can I upload/change an image in my zodb using custom forms. A call to
> "manage_upload" seems to always take me to a feedback form saying "Your
> changes have been saved.". How can I upload using customized forms _only_?
> 



For the myID in the form you type in the ID of the object. Always remember to 
"_.getitem" this, since it's an object.

together with 

 method=post enctype="multipart/form-data">





NOTE.
If you want to do the 

> tia Danny



___
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 and Win32 (Imaging.dll)

2000-09-29 Thread Peter Bengtsson

I've followed all README's and searched the mailing archive.
Been to pythonware.com, downloaded Imaging1.1, installed the Photo product, but still 
can't get it working.

I think I now need the Imaging.dll file, which is not provided on pythonware.com.

Does anyone have whatever it takes to get Photo working in Zope.

This is the Photo traceback I get.

Traceback (innermost last):
  File "C:\Program\ZopeSite\lib\python\OFS\Application.py", line 397, in 
import_products
product=__import__(pname, global_dict, global_dict, silly)
  File "C:\Program\ZopeSite\lib\python\Products\Photo\__init__.py", line 42, in ?
import Photo
  File "C:\Program\ZopeSite\lib\python\Products\Photo\Photo.py", line 87, in ?
from PIL.Imageimport BICUBIC, BILINEAR, NEAREST
  File "C:\Program\Python\Lib\PIL\__init__.py", line 5, in ?
import Image, ImageFile, ImageEnhance, ImageDraw,  _imaging, GifImagePlugin, 
JpegImagePlugin, PngImagePlugin, BmpImagePlugin
ImportError: No module named _imaging


So, it looks like Image, ImageFile, ... up until _imaging is imported successfully.
Other PIL hints? 



___
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] Hexcolors and DTML

2000-09-30 Thread Peter Bengtsson

This might be a math-python question but...
All I want to do is to print out the hexvalue of all black/white colors for a "fading 
HTML table".

#ff, #fefefe, #fdfdfd, ... #020202, #010101, #00

I can do a loop from 1 to 255, but I don't know where to go from there.

BTW, are there non-websafe greycolors? Can the loop be for only websafe ones?


___
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] A hint on FSSession

2000-10-03 Thread Peter Bengtsson


> Why use javascript to access cookies?  You can set and get them purely
> using zope.  http://www.zope.org/Members/BwanaZulia/cookies.  Also, why
> not install a session product (HappySession, FSSession, SQLSession...),
> it'll probably make your life easier in the long run...
> 
> seb
> 

Yes, and if you choose to use FSSession, remember to rename the object to something 
other that "FSSession". 
Having an object called "FSSession" in more than one place can f**k things up in the 
namestack, so to be on the safe side, rename (note "rename") the FSSession object to 
something more unique after having created one.

This caused me a lot of brain damage, and I had it explained by a friend after may 
failed attempts to understand the error messages.


___
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] Detecting Roles not working

2000-10-04 Thread Peter Bengtsson

Stolen somewhere from this list, and I don't remember from who.



...is cool to have as well if you ever need it.
Let's you not use specific names of ACL's such as "Staff" or "CopyWriter".



> 
> 
> This works for me, no pun intended :)
> 
> Dan
> 
> Kapil Thangavelu wrote:
> > 
> > Jonathan Cheyne wrote:
> > >
> > > Hi all
> > >
> > > I have built the basis of a site with full, form-based webediting of
> > > objects. Coming round to cleanup time and I wanted to remove certain
> > > visible functions from the default object views unless you have already
> > > logged in (with various possible roles)
> > >
> > > in the index_html of my zclass i have
> > >
> > > 
> > > edit this
> > > 
> > > so if the user is anonymous or logged in without the Staff role assigne
> > > they should not see the "edit this" link ...
> > >
> > > Doesn't work! It basically never returns a 'true' response thus never
> > > displays the edit this link even when logged in.
> > 
> > try (untested)
> > 
> >  > 
> > or (tested)
> > 
> > 
> > 
> > Cheers
> > 
> > Kapil
> > 
> > ___
> > 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 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 in Windows is faster than Linux ???

2000-10-06 Thread Peter Bengtsson

Don't you all Zope mailinglist participants think that Aitor Grajal owe us all an 
excuse in the form of a NEW TEST with the Win32 ZServer running properly?
;-)
Especially to all Linux supporters for the badwill of the emails title.

I would really be interested in its correct results.

Cheers everyone

> > Failed requests:137
> 
> No - look at your results. Every request failed on the win32
> box (and they all succeeded on linux). You have some sort of 
> problem in your windows setup, and you'll always get higher
> throughput for errors than you can for completed requests...
> 
> 
> Brian Lloyd[EMAIL PROTECTED] 
> Software Engineer  540.371.6909  
> Digital Creations  http://www.digicool.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 )




Re: [Zope] Any examples of use of manage_addFile()?

2000-10-13 Thread Peter Bengtsson

Here you go.



This uploads a file in the current working directory.

thisID [ the id ] and thisTitle [ the Title ] are optional, and I don't know if you 
have to put '' double-apostrofies for the ID then.
You try.




- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 13, 2000 6:29 PM
Subject: [Zope] Any examples of use of manage_addFile()?


> I want to create a user-interface so that users can upload files to my Zope
> site.  I have done this with DTMLDocuments, however I don't quite understand how
> to get the file itself into the Zope site via ...
> 
> self.manage_addProduct['OFSP'].manage_addFile()
> 
> ..that is in Python.
> 
> I looked through the HOWTO's but didn't find anything.  Does someone have an
> example of a Form/DTMLMethod/Python script that does this sort of thing?
> 
> Thanks in advance,
> 
> Ron
>  ./.
> 
> 
> 
> ___
> 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] Python regular expression help

2000-10-13 Thread Peter Bengtsson

[ this might be more of a Python question, but it's got a lot to do with the web and 
is to be used in Zope ]

I want to replace all occurences of email address's and URLs in a textstring, to mailto:%s">%s and %s.
Must admit that I am not an regex expert, and I wasn't able to find a "precompiled" 
regex for neither email nor URL.

Or is there anything available from the zope/python stack? 



___
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 Discussion Forum @ DevShed.com

2000-10-16 Thread Peter Bengtsson

here here! 

I definitly agree! Forum's are much easier to categorize and browse for answers than 
the mailing list.
Categorization should be per subject, not per experience.

If Zope.org doesn't want to set one up, then let the best man win. (i.e. make it fast)



> http://www.devshed.com/cgi-bin/ubb/forumdisplay.cgi?action=topics&forum=Zope
> &number=10&DaysPrune=60&LastLogin=
> 
> I found this awhile ago and it has been pretty inactive (until last week
> when I started posting.. :) ). It would be great to see some of the list
> subscribers here and other members of the Zope community get involved. It is
> something that I think is much needed on Zope.org (A bulletin board
> system... I am SURE that I could suggest one!) as it helps Newbies and
> provides a more solid, long lasting and manageable discussion.
> 
> Maybe something for ZDP if not for Zope.org.
> 
> Comments? Suggestions?
> 
> Thanks,
> J
> 
> 
> 
> 
> ___
> 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] None-debug mode on win2k

2000-10-29 Thread Peter Bengtsson

Zopistas,

I have searched the mailinglist and look under the carpets and READMEs. 
Maybe I'm just blind but how do I run Zope in none-debug mode ??
In other words; how do I add the -D param?

I run Zope2.2.2 on a win2k pro as a service.



___
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-Pages

2000-10-30 Thread peter bengtsson

I have also been able to do almost everything I do in PHP in Zope, just like
yourself.
One of the major problems with Zope is its lack of developers, this is not
true for Perl or PHP.
Not to bothered but "larger" companies might be.

I haven't tested the available PHP How-Tos; is it possible to use it just
like a Python- or Perl Method object??
Would be really useful if true.


hi vince,

with the exception of xml parsing (i think it's doable though
complicated), i don't think php offers anything that zope won't do.
i've been writing dtml methods and documents that do everything i once
did with php.

imho (only).

ciao!
greg.

> Hi Zope,
>
> I wondered, whether it's possible and sensible to have php-Pages
> in Zope sites ... any thoughts and comments on this matter?
>
> Cheers,
>
> Vince
>
>  '''
>  ô¿ô
>   -
>
> ___
> 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 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] Editing images

2000-11-12 Thread Peter Bengtsson

Click the Image object you have created and then click the Upload tab (at the top).
That let's you edit the image content. That almost changes the Content-Type, width and 
height.


Lycka till!



> Hello zopistas,
> 
> I have some images in an image folder within Zope. Now I need to edit
> these images but I can't figure out how?
> 
> I guess that the images are withing the Data.fs but how to get them
> out? If I do an export they wind up in a .zexp which I don't now how
> to expand outside of Zope...
> 
> Please help!!
> 
>   
> 
> -- 
> Best regards,
>  Anders  mailto:[EMAIL PROTECTED]
> 
> Science is everything we understand well enough to explain to a computer. Art is 
>everything else. - David Knuth
> 
> 
> 
> ___
> 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] Forcing Content-Type of Image object

2000-11-12 Thread Peter Bengtsson

I don't want Zope to find out what content type an Image has. I want to be able to 
force that programmatically myself from DTML.

Here are some code examples that doesn't work:





Image.py contains this:
def manage_addImage(self, id, file, title='', precondition='', 
content_type='',REQUEST=None):

I have searched the mailing list and looked at Image.py but can't find it.
Help, please

Best regards, Peter


___
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] len() of unsized object error

2000-11-18 Thread Peter Bengtsson

If found this TypeError description in many places in the mailing list archive, but no 
solution to my sendmail problem.

Code:

To: <>
From: <>
Subject: Registration at 





If I do this...:
dtml-sendmail mailhost="MailHost"
To: <>
From: <>
Subject: Registration at 



/dtml-sendmail

... it doesn't return any errors and looks fine.


Traceback (innermost last):
  File C:\Program\ZopeSite\lib\python\ZPublisher\Publish.py, line 222, in 
publish_module
  File C:\Program\ZopeSite\lib\python\ZPublisher\Publish.py, line 187, in publish
  File C:\Program\ZopeSite\lib\python\Zope\__init__.py, line 221, in 
zpublisher_exception_hook
(Object: Traversable)
  File C:\Program\ZopeSite\lib\python\ZPublisher\Publish.py, line 171, in publish
  File C:\Program\ZopeSite\lib\python\ZPublisher\mapply.py, line 160, in mapply
(Object: index_html)
  File C:\Program\ZopeSite\lib\python\ZPublisher\Publish.py, line 112, in call_object
(Object: index_html)
  File C:\Program\ZopeSite\lib\python\OFS\DTMLMethod.py, line 172, in __call__
(Object: index_html)
  File C:\Program\ZopeSite\lib\python\DocumentTemplate\DT_String.py, line 528, in 
__call__
(Object: index_html)
  File C:\Program\ZopeSite\lib\python\OFS\DTMLMethod.py, line 168, in __call__
(Object: manage_html)
  File C:\Program\ZopeSite\lib\python\DocumentTemplate\DT_String.py, line 528, in 
__call__
(Object: manage_html)
  File C:\Program\ZopeSite\lib\python\DocumentTemplate\DT_With.py, line 146, in render
(Object: PARENTS[0])
  File C:\Program\ZopeSite\lib\python\DocumentTemplate\DT_With.py, line 146, in render
(Object: dochtml)
  File C:\Program\ZopeSite\lib\python\OFS\DTMLMethod.py, line 168, in __call__
(Object: signup_dtml)
  File C:\Program\ZopeSite\lib\python\DocumentTemplate\DT_String.py, line 528, in 
__call__
(Object: signup_dtml)
  File C:\Program\ZopeSite\lib\python\DocumentTemplate\DT_With.py, line 146, in render
(Object: members)
  File C:\Program\ZopeSite\lib\python\DocumentTemplate\DT_Let.py, line 147, in render
(Object: madepassword="members.makepassword_pym(6)")
  File C:\Program\ZopeSite\lib\python\Products\MailHost\SendMailTag.py, line 188, in 
render
(Object: MailHost)
  File C:\Program\ZopeSite\lib\python\Products\MailHost\MailHost.py, line 220, in send
(Object: MailHost)
  File C:\Program\ZopeSite/bin/lib\smtplib.py, line 465, in sendmail
  File C:\Program\ZopeSite/bin/lib\smtplib.py, line 349, in mail
  File C:\Program\ZopeSite/bin/lib\smtplib.py, line 118, in quoteaddr
  File C:\Program\ZopeSite/bin/lib\rfc822.py, line 451, in parseaddr
  File C:\Program\ZopeSite/bin/lib\rfc822.py, line 496, in getaddrlist
  File C:\Program\ZopeSite/bin/lib\rfc822.py, line 504, in getaddress
  File C:\Program\ZopeSite/bin/lib\rfc822.py, line 484, in gotonext
TypeError: (see above)



___
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] getattr in Python Method problem

2000-11-26 Thread Peter Bengtsson

In the folder where dosomething_pym (Python Method) is located, is also a string 
property set called 'en' with the value 'English'
The Python Method object is called with no parameters, but is defined with the 'self' 
parameter inside the Python Method object.

In a DTML Method this works fine:

and returns
"English"

This is what I try in the Python Method:
lang=getattr(self,'en')

but this raises an error!
Error Type: AttributeError
Error Value: validate

I have searched the mailing list but in vain. 
Some people say it should be
lang=getattr(self,'en')(self,REQUEST)

But that raises the same error.

Best regards, Peter


___
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] FTP in HTML-Kit? (Or other editor on MS-Windows)

2000-12-04 Thread Peter Bengtsson

Allaire Homesite 4.5.1 has proven very powerful for me and my Zope FTP connection.
There is a little patch (works great!) that customizes the code for DTML great.
Homesite is shareware, but believe me, nothing happens after the 30 days pass.

/P

> 
> 
> Searching a tool to edit DTML on MS-Windows, I read:
> 
> http://www.zope.org/Members/cba/HTML_Kit
> 
> It says that HTML-Kit can edit files through FTP. I found that it can only 
> retrieve files, without being able to browse directories, and that it cannot 
> save back files with FTP. Absolutely not a competitor for GNU Emacs.
> 
> Or did I miss something? 



___
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] Newbie question: adding a tinyTables object

2000-12-18 Thread Peter Bengtsson

Go to the Control Panel and click on Products. The TinyTable product is probably going 
to have a little "broken box"-icon. 
Click on it and wish that it will tell you the error so that you can fix it.

Good luck, Peter

> I'm running Zope on a Win98 machine; downloaded, unstuffed, and 
> installed tinyTablesPlus folder in the lib\python\Products directory. 
> TinyTablesPlus shows up in the product list of the 
> Control_Panel/Products folder of my Zope installation. But it does 
> not show up in the Available Objects pull-down menu in my Zope 
> content folders. I can't figure out how to Add a TinyTables object.
> 
> Can anyone help?
> 
> Richard
> 
> ___
> 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] Collector Product ??

2001-01-13 Thread Peter Bengtsson

I'm looking for a bug-tracking-software-system.
Does DC give out their Collector (http://classic.zope.org:8080/Collector) Product for 
free for us? Where can it be downloaded?
Is there anybody out there who would care to share their product with me? ;)

Any hints? Peter



___
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] convert a String ...

2001-01-14 Thread Peter Bengtsson

To "convert" a string to an object, you use the getitem() function.

## example 1:
Your: 
#returns:
Your: Peter Bengtsson

## example 2:

Your: 
# returns:
Your: Peter Bengtsson

There's more

You could also do this:

 or 

The different between _['foo'] and _.getitem('foo') is tricky. 
Check out (somewhere in the middle):
http://www.zope.org/Documentation/How-To/AdvancedDTML
> 
> Hi,
> 
> how is it possible to convert a string into my own zclass type?
> I get a String from a form and want to do some operation like
> string.manage_addFile(... on it. So what to do ??? Perhaps some out there is
> able to help ...
> 
> Thanks,
> 
> Marc
> 
> 
> ___
> 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 )




Re: [Zope] url_quote written differently

2001-01-25 Thread Peter Bengtsson

sorry. Bad example.

I just don't want to do it that way. I'm passing it as a parameter, and it has just 
got to happen :)
>From inside a external python method it would be something like this:

from DocumentTemplate import DT_Util
text_html_quoted= DT_Util.html_quote(text_with_html)

Look at the timeobject.
You can either...

...or...


Something like that, please, folks.

Cheers

>  the url_quote is a parameter to
> dtml-var.
> --
>   Andy McKay.
> 
> 
> - Original Message -
> From: "peter bengtson" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, January 25, 2001 11:01 AM
> Subject: [Zope] url_quote written differently
> 
> 
> > 1a)  is one way of writing it.
> >
> > 2a)  is another way of writing it
> >
> > 1b)  is a second way of writing it
> >
> > 2b) ? How do I do this one??
> >
> >
> > I have tried this, but that didn't work:  > text'%id.url_quote()"> , but that didn't work either.
> > What's the syntax? Anybody?
> >
> > Cheers, Peter
> >
> >
> > ___
> > 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] Re: Refcounts, ZODB Cache and memory leaks?

2005-04-26 Thread Peter Bengtsson
Dylan Jay  dylanjay.com> writes:

> If anyone has experience with finding these kind of rouge references I'd
> really appreciate any tips.

I have no idea how to patch tings with LeakFinder to find your problems because
LeakFinder, albeit a great piece of code, attempts an incredibly difficult task.
Most likely, your memory leaks is due to an assignment of really large lists on
complex objects (eg. more complex than strings or numbers).

Look for any constructs where you extract large lists and do operations on them.
Once you have, if you ever, contain these, return to the mailing list and we can
try to solve it together.


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] automagic reindexing of objects

2005-06-17 Thread Peter Bengtsson
Personally I think one should stay the hell away from transactions.
They're not for you to fiddle with.
I understand your question and even though I think it's a bit crazy I
can see a benefit (simplicity for the programmer).

How about a trickery solution like this:

class CatalogPathAware:
def index_object(self, *a, **k):
print self.__class__.__name__, "in for indexing!"

class _MyProduct(CatalogPathAware):
def __init__(self, id, title=''):
self.id = id
self.title = title
def setTitle(self, title):
# could be much more complicated
self.title = title

class MyProduct(_MyProduct):
def setTitle(self, title):
_MyProduct.setTitle(self, title)
self.index_object()

inst = MyProduct("instanceA")
inst.setTitle('Peter')

print inst.title


You would basically rename your existing class from "Whatever" to
"_Whatever" and continue as before. This does mean however that you
have to explicitly write a function for each setter.

On 6/17/05, Jürgen Herrmann <[EMAIL PROTECTED]> wrote:
> 
> [ Jonathan wrote:]
> >
> > - Original Message -
> > From: "Jürgen Herrmann" <[EMAIL PROTECTED]>
> >> i make heavy use of indexes in my extension classes. these all inherit
> >> from catalogpathaware, so i have to call object.reindex_object() on
> >> each changed instance. calling it from attribute getters/setters f.ex.
> >> is not a good idea, because changing 3 attributes will reindex the
> >> object
> >> 3 times.
> >>
> >> what i'd like to have is that such objects are reindexed automatically
> >> before comitting a transaction.
> >
> > You can't index before committing.  I think you need a different strategy:
> > how about creating all of the new objects and then call the
> > catalog/indexing
> > mechanism.  We do this for one of our large volume catalogs (1m+ records),
> > by having an object class/catalog that are not 'aware' and then manually
> > (well, thru a python routine) cataloging/indexing the objects.
> 
> hmm, it's not about newly created objects. i want to have automatic
> REindexing, in cleartext - i want to make it easy for the programmer:
> he/she should just call an attribute setter or maybe change a relation
> and just before the transaction would be committed to the storage, i'd
> like to cycle through all dirty objects and reindex them, if they're
> catalogpathaware (or implement reindex_object()...).
> 
> >
> > HTH
> >
> > Jonathan
> 
> juergen
> ___
> 
> >> XLhost.de - eXperts in Linux hosting <<
> 
> Juergen Herrmann
> Weiherweg 10, 93051 Regensburg, Germany
> Fon:  +49 (0)700 XLHOSTDE [0700 95467833]
> Fax:  +49 (0)721 151 463027
> 
> ICQ:  27139974  -  IRC: [EMAIL PROTECTED]
> WEB:  http://www.XLhost.de
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Getting information about current method

2005-06-17 Thread Peter Bengtsson
On 6/17/05, Jan-Ole Esleben <[EMAIL PROTECTED]> wrote:
> Hi!
> 
> I am new to this list and rather new to Zope, so maybe this is a
> stupid question; unfortunately I haven't been able to find an answer
> to it anywhere:
> 
> is there a generic way to find out from Python code which method has
> been called (in other words: find out where the current method is
> located in the ZOPE hierarchy and what its name is)? If I call an
> External Method via a DTML method, of course the REQUEST object
> contains the path to the DTML method because the External Method
> hasn't been called via HTTP. I haven't been able to figure out any
> other way of getting this information.
> 
I don't get it. Do you want to know the name of the DTML method from
inside the External method?
Perhaps I'll be able to help if you tell us more about the intention
of this code.


> Thanks in advance,
> Ole
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Getting information about current method

2005-06-17 Thread Peter Bengtsson
Then, in your External method, try::

 import inspect
 print inspect.stack()[1]


On 6/17/05, Jan-Ole Esleben <[EMAIL PROTECTED]> wrote:
> I want to know the name (and path) of the _External Method_ from
> inside it. What I _can_ get is the name of the DTML method.
> 
> I want to build generic scaffolding code for functions that
> conditionally redispatch as asynchronous calls (via ZASync); that
> part, however, isn't a problem at all - everything works fine as long
> as I use an HTTP request directly and redispatch with information from
> the REQUEST. The problem is that I need a TALES expression to call the
> function again (asynchronously this time), and for that I need the
> ZOPE path to it.
> 
> Ole
> 
> 2005/6/17, Peter Bengtsson <[EMAIL PROTECTED]>:
> > > is there a generic way to find out from Python code which method has
> > > been called (in other words: find out where the current method is
> > > located in the ZOPE hierarchy and what its name is)? If I call an
> > > External Method via a DTML method, of course the REQUEST object
> > > contains the path to the DTML method because the External Method
> > > hasn't been called via HTTP. I haven't been able to figure out any
> > > other way of getting this information.
> > >
> > I don't get it. Do you want to know the name of the DTML method from
> > inside the External method?
> > Perhaps I'll be able to help if you tell us more about the intention
> > of this code.
> >
> > > Thanks in advance,
> > > Ole
> > > ___
> > > Zope maillist  -  Zope@zope.org
> > > http://mail.zope.org/mailman/listinfo/zope
> > > **   No cross posts or HTML encoding!  **
> > > (Related lists -
> > >  http://mail.zope.org/mailman/listinfo/zope-announce
> > >  http://mail.zope.org/mailman/listinfo/zope-dev )
> > >
> >
> > --
> > Peter Bengtsson,
> > work www.fry-it.com
> > home www.peterbe.com
> > hobby www.issuetrackerproduct.com
> >
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] automagic reindexing of objects

2005-06-17 Thread Peter Bengtsson
On 6/17/05, Jürgen Herrmann <[EMAIL PROTECTED]> wrote:
> 
> [ Peter Bengtsson wrote:]
> > Personally I think one should stay the hell away from transactions.
> > They're not for you to fiddle with.
> > I understand your question and even though I think it's a bit crazy I
> > can see a benefit (simplicity for the programmer).
> >
> > How about a trickery solution like this:
> >
> > class CatalogPathAware:
> > def index_object(self, *a, **k):
> > print self.__class__.__name__, "in for indexing!"
> >
> > class _MyProduct(CatalogPathAware):
> > def __init__(self, id, title=''):
> > self.id = id
> > self.title = title
> > def setTitle(self, title):
> > # could be much more complicated
> > self.title = title
> >
> > class MyProduct(_MyProduct):
> > def setTitle(self, title):
> > _MyProduct.setTitle(self, title)
> > self.index_object()
> >
> > inst = MyProduct("instanceA")
> > inst.setTitle('Peter')
> >
> > print inst.title
> >
> >
> > You would basically rename your existing class from "Whatever" to
> > "_Whatever" and continue as before. This does mean however that you
> > have to explicitly write a function for each setter.
> >
> hmm, i can't see how this would help. if i call index_object in every
> attribute getter method, the indexing is done possibly several times,
> unnecessary and (cpu)time consuming.
> 
Writes happen a lot less often but they also cost a lot more. 
It'd be nice to be able to hotwire the parentless class so that it
magically "wraps" all functions that match on::

 re.compile('set[A-Z]\w+')

It would be hard to find out what the functions are, eg::

class MyProduct(_MyProduct):
def __init__(self, *a, **k):
   _MyProduct.__init__(self, *a, **k)
   for fun in dir(_MyProduct):
   if camel_setters_regex.findall(fun):
   print "create a wrapping method called %s" % fun

How to magically create a method upon itself with an arbitary name is
something I don't know how to do but it's not impossible because I
know that Archetypes (cmf, plone) does it.

> juergen
> ___
> 
> >> XLhost.de - eXperts in Linux hosting <<
> 
> Juergen Herrmann
> Weiherweg 10, 93051 Regensburg, Germany
> Fon:  +49 (0)700 XLHOSTDE [0700 95467833]
> Fax:  +49 (0)721 151 463027
> 
> ICQ:  27139974  -  IRC: [EMAIL PROTECTED]
> WEB:  http://www.XLhost.de
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Picking up a parameter in a ZPT

2005-06-17 Thread Peter Bengtsson
Try
python:here.parse_file(file=options['parm'],sepr=',',clone=1)">

On 6/17/05, John Poltorak <[EMAIL PROTECTED]> wrote:
> 
> I'm trying to work out how to pass parameters between various modules
> running under Zope and have got stuck.
> 
> In the line below, I need to replace the word 'links' with a variable
> passed by the calling program
> 
> 
> python:here.parse_file(file=context.links,sepr=',',clone=1)">
> 
> I know I can pass the variable using:-
> 
> 
> 
> 
> 
> Just don't know how to reference it under ZPT.
> 
> 
> 
> Help!
> 
> 
> 
> --
> John
> 
> 
> 
> 
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Getting information about current method

2005-06-17 Thread Peter Bengtsson
On 6/17/05, Jan-Ole Esleben <[EMAIL PROTECTED]> wrote:
> No, I'm sorry; I only get system paths.
> 
And what about REQUEST.PARENTS? (or is that just the http request)



> Ole
> 
> 
> 2005/6/17, Peter Bengtsson <[EMAIL PROTECTED]>:
> > On 6/17/05, Jan-Ole Esleben <[EMAIL PROTECTED]> wrote:
> > > Unforunately, this just gives me the pythonic path to the method; what
> > > I need for a TALES expression is the ZOPE path - i.e. what I get from
> > > the stack frame is
> > > ... E:\zope\Extensions\req.py ...
> > > but what I need is
> > > ... http://localhost:8080/ReqTest ...
> > >
> >
> > Ok, maybe inspect.stack()[1] was the wrong one. Can't remember nor
> > test it for you but try any of the others in that list. Eg.
> > inspect.stack()[0] or inspect.stack()[2]
> >
> > You can maybe find something by going through REQUEST.PARENTS
> >
> >
> > > Ole
> > >
> > >
> > > 2005/6/17, Peter Bengtsson <[EMAIL PROTECTED]>:
> > > > Then, in your External method, try::
> > > >
> > > >  import inspect
> > > >  print inspect.stack()[1]
> > > >
> > > >
> > > > On 6/17/05, Jan-Ole Esleben <[EMAIL PROTECTED]> wrote:
> > > > > I want to know the name (and path) of the _External Method_ from
> > > > > inside it. What I _can_ get is the name of the DTML method.
> > > > >
> > > > > I want to build generic scaffolding code for functions that
> > > > > conditionally redispatch as asynchronous calls (via ZASync); that
> > > > > part, however, isn't a problem at all - everything works fine as long
> > > > > as I use an HTTP request directly and redispatch with information from
> > > > > the REQUEST. The problem is that I need a TALES expression to call the
> > > > > function again (asynchronously this time), and for that I need the
> > > > > ZOPE path to it.
> > > > >
> > > > > Ole
> > > > >
> > > > > 2005/6/17, Peter Bengtsson <[EMAIL PROTECTED]>:
> > > > > > > is there a generic way to find out from Python code which method 
> > > > > > > has
> > > > > > > been called (in other words: find out where the current method is
> > > > > > > located in the ZOPE hierarchy and what its name is)? If I call an
> > > > > > > External Method via a DTML method, of course the REQUEST object
> > > > > > > contains the path to the DTML method because the External Method
> > > > > > > hasn't been called via HTTP. I haven't been able to figure out any
> > > > > > > other way of getting this information.
> > > > > > >
> > > > > > I don't get it. Do you want to know the name of the DTML method from
> > > > > > inside the External method?
> > > > > > Perhaps I'll be able to help if you tell us more about the intention
> > > > > > of this code.
> > > > > >
> > > > > > > Thanks in advance,
> > > > > > > Ole
> > > > > > > ___
> > > > > > > Zope maillist  -  Zope@zope.org
> > > > > > > http://mail.zope.org/mailman/listinfo/zope
> > > > > > > **   No cross posts or HTML encoding!  **
> > > > > > > (Related lists -
> > > > > > >  http://mail.zope.org/mailman/listinfo/zope-announce
> > > > > > >  http://mail.zope.org/mailman/listinfo/zope-dev )
> > > > > > >
> > > > > >
> > > > > > --
> > > > > > Peter Bengtsson,
> > > > > > work www.fry-it.com
> > > > > > home www.peterbe.com
> > > > > > hobby www.issuetrackerproduct.com
> > > > > >
> > > > > ___
> > > > > Zope maillist  -  Zope@zope.org
> > > > > http://mail.zope.org/mailman/listinfo/zope
> > > > > **   No cross posts or HTML encoding!  **
> > > > > (Related lists -
> > > > >  http://mail.zope.org/mailman/listinfo/zope-announce
> > > > >  http://mail.zope.org/mailman/listinfo/zope-dev )
> > > > >
> > > >
> > > > --
> > > > Peter Bengtsson,
> > > > work www.fry-it.com
> > > > home www.peterbe.com
> > > > hobby www.issuetrackerproduct.com
> > > >
> > > ___
> > > Zope maillist  -  Zope@zope.org
> > > http://mail.zope.org/mailman/listinfo/zope
> > > **   No cross posts or HTML encoding!  **
> > > (Related lists -
> > >  http://mail.zope.org/mailman/listinfo/zope-announce
> > >  http://mail.zope.org/mailman/listinfo/zope-dev )
> > >
> >
> > --
> > Peter Bengtsson,
> > work www.fry-it.com
> > home www.peterbe.com
> > hobby www.issuetrackerproduct.com
> >
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Getting information about current method

2005-06-17 Thread Peter Bengtsson
On 6/17/05, Jan-Ole Esleben <[EMAIL PROTECTED]> wrote:
> It's an application instance wrapped in a list; it seems to be
> identical to self, actually - self.REQUEST['URL'] and
> self.REQUEST.PARENTS[0].REQUEST['URL'] are the same. However, the two
> REQUESTs are not the identical object (== returns False).
> 

Then I don't know. 
(The application instance is none other than zope itself. )
I can honestly not think of a way to extract this information. I've
even tried setting up a simple example method and I couldn't get hold
of the zodb name of the external method that is called.

Perhaps Andreas or Dieter can help us here??


> Ole
> 
> 
> 2005/6/17, Peter Bengtsson <[EMAIL PROTECTED]>:
> > On 6/17/05, Jan-Ole Esleben <[EMAIL PROTECTED]> wrote:
> > > No, I'm sorry; I only get system paths.
> > >
> > And what about REQUEST.PARENTS? (or is that just the http request)
> >
> >
> > > Ole
> > >
> > >
> > > 2005/6/17, Peter Bengtsson <[EMAIL PROTECTED]>:
> > > > On 6/17/05, Jan-Ole Esleben <[EMAIL PROTECTED]> wrote:
> > > > > Unforunately, this just gives me the pythonic path to the method; what
> > > > > I need for a TALES expression is the ZOPE path - i.e. what I get from
> > > > > the stack frame is
> > > > > ... E:\zope\Extensions\req.py ...
> > > > > but what I need is
> > > > > ... http://localhost:8080/ReqTest ...
> > > > >
> > > >
> > > > Ok, maybe inspect.stack()[1] was the wrong one. Can't remember nor
> > > > test it for you but try any of the others in that list. Eg.
> > > > inspect.stack()[0] or inspect.stack()[2]
> > > >
> > > > You can maybe find something by going through REQUEST.PARENTS
> > > >
> > > >
> > > > > Ole
> > > > >
> > > > >
> > > > > 2005/6/17, Peter Bengtsson <[EMAIL PROTECTED]>:
> > > > > > Then, in your External method, try::
> > > > > >
> > > > > >  import inspect
> > > > > >  print inspect.stack()[1]
> > > > > >
> > > > > >
> > > > > > On 6/17/05, Jan-Ole Esleben <[EMAIL PROTECTED]> wrote:
> > > > > > > I want to know the name (and path) of the _External Method_ from
> > > > > > > inside it. What I _can_ get is the name of the DTML method.
> > > > > > >
> > > > > > > I want to build generic scaffolding code for functions that
> > > > > > > conditionally redispatch as asynchronous calls (via ZASync); that
> > > > > > > part, however, isn't a problem at all - everything works fine as 
> > > > > > > long
> > > > > > > as I use an HTTP request directly and redispatch with information 
> > > > > > > from
> > > > > > > the REQUEST. The problem is that I need a TALES expression to 
> > > > > > > call the
> > > > > > > function again (asynchronously this time), and for that I need the
> > > > > > > ZOPE path to it.
> > > > > > >
> > > > > > > Ole
> > > > > > >
> > > > > > > 2005/6/17, Peter Bengtsson <[EMAIL PROTECTED]>:
> > > > > > > > > is there a generic way to find out from Python code which 
> > > > > > > > > method has
> > > > > > > > > been called (in other words: find out where the current 
> > > > > > > > > method is
> > > > > > > > > located in the ZOPE hierarchy and what its name is)? If I 
> > > > > > > > > call an
> > > > > > > > > External Method via a DTML method, of course the REQUEST 
> > > > > > > > > object
> > > > > > > > > contains the path to the DTML method because the External 
> > > > > > > > > Method
> > > > > > > > > hasn't been called via HTTP. I haven't been able to figure 
> > > > > > > > > out any
> > > > > > > > > other way of getting this information.
> > > > > > > > >
> > > > > > > > I don't get it. Do you want to know the name of the DTML method 
> > > > > > > > from

Re: [Zope] Picking up a parameter in a ZPT

2005-06-17 Thread Peter Bengtsson
On 6/17/05, John Poltorak <[EMAIL PROTECTED]> wrote:
> On Fri, Jun 17, 2005 at 04:33:28PM +0100, Peter Bengtsson wrote:
> > Try
> > python:here.parse_file(file=options['parm'],sepr=',',clone=1)">
> 
> Thanks for the suggestion, but I need to get the 'context' keyword in
> there.
> 

No. "context" is different from "options". context is the Zope
namespace and options is a namespace that holds which parameters the
template was called with.

> I tried this
> 
> python:here.parse_file(file=context.options['parm'],sepr=',',clone=1)">
> 
> but ended up with
> 
> Error Type: AttributeError
> Error Value: options
> 
> Don't seem to be able to get the right syntax...
> 
> John
> 
> > On 6/17/05, John Poltorak <[EMAIL PROTECTED]> wrote:
> > >
> > > I'm trying to work out how to pass parameters between various modules
> > > running under Zope and have got stuck.
> > >
> > > In the line below, I need to replace the word 'links' with a variable
> > > passed by the calling program
> > >
> > >
> > > python:here.parse_file(file=context.links,sepr=',',clone=1)">
> > >
> > > I know I can pass the variable using:-
> > >
> > >
> > > 
> > >
> > >
> > > Just don't know how to reference it under ZPT.
> > >
> > >
> > >
> > > Help!
> > >
> > >
> > >
> > > --
> > > John
> >
> > --
> > Peter Bengtsson,
> > work www.fry-it.com
> > home www.peterbe.com
> > hobby www.issuetrackerproduct.com
> 
> 
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Getting information about current method

2005-06-20 Thread Peter Bengtsson
> >
> > Then I don't know.
> > (The application instance is none other than zope itself. )
> > I can honestly not think of a way to extract this information. I've
> > even tried setting up a simple example method and I couldn't get hold
> > of the zodb name of the external method that is called.
> 
> You can go the low-level route: Using the inspect module, you can get to
> the stack frames of your callers, and then inspect the local variables
> there. There must be one that can get you the information you want.
> 

We tried that but no luck. 

> See the docstrings of the functions in the inspect module for details.
> 
> Florent
> 
> --
> Florent Guillaume, Nuxeo (Paris, France)   CTO, Director of R&D
> +33 1 40 33 71 59   http://nuxeo.com   [EMAIL PROTECTED]
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Problem with keep-alive timeout

2005-06-20 Thread Peter Bengtsson
I had a similar problem and solved it by having a cron job that runs
in the background with wget.
In my case was able to divid it up to run a little bit of the big
report at a time. This way I'm now able to have a cron job happening
every hour.

On 6/20/05, Ralph <[EMAIL PROTECTED]> wrote:
> 
> I made a small and simple database applikation with some reports on a large
> database. But surprise, IE 6.0 (WinXP,SP2) is getting always a timeout after
> 60seconds, because IE communicates with Zope through the HTTP1.0-protocoll.
> My reports needing always 40s-120s, so is there someone that could give me a
> solution for this annoying timeout problem?
> 
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] ZPT tutorial

2005-06-20 Thread Peter Bengtsson
Don't know of a good tutorial but I know there are many. I'm sure that
plone.org has some good ones.

In case you already know your DTML, this little howto has helped people a lot.
http://www.zope.org/Members/peterbe/DTML2ZPT

On 6/20/05, John Poltorak <[EMAIL PROTECTED]> wrote:
> 
> Does a ZPT tutorial exist anywhere?
> 
> 
> --
> John
> 
> 
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] New External Editor release 0.9

2005-06-21 Thread Peter Bengtsson
Chris,
I had problems with the .exe on a windows machine. When I downloaded
it everything got downloaded of the 1.7Mb (or whatever it was exactly)
but when I tried doubleclicking it it complained about being corrupt.

Has anybody else had similar problems? 

On 6/21/05, Chris McDonough <[EMAIL PROTECTED]> wrote:
> Since Casey Duncan, the original author of Zope External Editor is
> happily hacking away on other things at a new job, I figure I might as
> well pick up maintenance of this product.
> 
> The new location for External Editor releases will be:
> 
>   http://plope.com/software/ExternalEditor/
> 
> A new release (0.9) is available at that location and the changes for
> the release are visible at
> http://plope.com/software/ExternalEditor/CHANGES-0.9.txt .  Most changes
> in this release are aimed at improving zopeedit behavior under Windows.
> 
> Have fun!
> 
> - C
> 
> 
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] ZPT tutorial

2005-06-21 Thread Peter Bengtsson
> > How about the 2 chapters in the Zope book?
> 
> I just don't find this book very helpful at all. It's written as a manual
> rather than tutorial and reminds me of a book which explains how to chop
> down a tree if you are interested in putting up some bookshelves.
> 
> What I did find useful, though, was this worked example of how to put
> together a simple application:-
> 
> http://www.plope.com/Books/2_7Edition/SimpleExamples.stx#1-6
> 
> That was much more useful than anything else I've come across so. Just
> wish there were a few more examples.
> 

Interesting. 
If you like examples, be sure to get familiar with Zopelabs.com (zope cookbook)

> 
> 
> > Andreas
> >
> > --
> 
> 
> --
> John
> 
> 
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] ZPT tutorial

2005-06-22 Thread Peter Bengtsson
> 
> I think we (the Zope community) should try to be clearer in telling
> newcomers what the 'entry requirements' are.
> 

My preference is to "lie" about the complexity. Newcomers are
welcoming it much more then. Because if you say it is easy people will
blame themselfs if they get stuck and to avoid embarrasment they will
try a little harder. Try giving someone a logic puzzle and say "it's
dirt easy, it'll take you 2 minutes" and they'll try really hard. If
you say "don't bother because you need a basketballsized brain to do"
they will give up and neither learn nor attempt.

Let's keep the fluff around the meat welcoming. So instead of 
"You must have previous knowledge of XHTML 1.0" we can say "Previous
experience of HTML will help understanding how ZPT's work but it's not
a requirement"

-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] From Zope 2.5.1 to Zope 2.7.6

2005-06-22 Thread Peter Bengtsson
Are any of your applications relying on the
'bobobase_modification_time' attribute?
That's something that changes when you import a .zexp file which could
maybe explain why things appear differently now.


On 6/22/05, Tim Suter <[EMAIL PROTECTED]> wrote:
> I am upgrading our current Zope from 2.5.1 to Zope 2.7.6.  I have the
> new version installed as a different instance on a different server.
> The Zope 2.5.1 is in tact and what I am wondering is, how do you migrate
> everything from the older to the newer?  I thought exporting the .zexp
> out of Zope 2.5.1 would be ok.  However, when I import it into the new
> install, it isn't the same as the original.  For example, I exported
> knowledge.zexp from the 2.5.1 and imported into the 2.7.6.  Now, when I
> go to pull up the page that points to info related to this data, the
> subtopics are now listed below the contents of the original page.  In
> looking at the html (I am no HTML expert at ALL), it did not appear that
> there was even anything related to subtopics.  It must be a control from
> within the Zope management interface.
> 
> I guess I just want to know how to migrate properly with little
> administrative effort.
> 
> Thanks,
> Tim
> 
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Traversal question

2005-06-22 Thread Peter Bengtsson
I have never used traversal into zsql methods simply because I don't
want to expose geeky things like "employee_by_id" to the user. People
should be able to find out what you call your ZSQL methods. My
suggestion is to consider a more controlled solution.

About having request variables in the URL I suggest you download and
study the code of the IssueTrackerProduct. Look for a method called
get_environ and __before_bobobase_traverse__

Then one gets URLs like this:
http://demo.issuetrackerproduct.com/ListIssues/sortorder-urgency/reverse-true
which is translated in get_environ() to
http://demo.issuetrackerproduct.com/ListIssues?sortorder=urgency&reverse=true


On 6/22/05, David Pratt <[EMAIL PROTECTED]> wrote:
> I have gone over the zope book to see what I can do about calling a sql
> with a form and getting three additional parameters in the request and
> am wanting this to get better looking urls that calling the parameters
> directly in the url.  I asked a similar question yesterday but perhaps
> it was not clear enough about what asking. It is really a traversal
> question and how to string together a sql query with a zpt form that
> also requires parameters from the request namespace.
> 
> I can call my zsql method and then my edit form like this:
> /employee_by_id/employee_id/42/employee_edit_form
> 
> or with simple direct traversal on the zsql method:
> /employee_by_id/42/employee_edit_form
> 
> Problem is I need three other parameters in the request for my edit
> form to satisfy my sorting so when the edit form returns it is back on
> the same batch page
> 
> Parameters passed in traversal go into the request namespace according
> to the zope book so was hoping for something similar to this which
> doesn't work - and I can't see how it could.
> 
> /employee_by_id/employee_id/42/employee_edit_form/start/2/sort/
> employee/reverse/0
> 
> The zope book examples are with python scripts so am not sure whether
> this is possible with a ZPT that also requires parameters from the
> request  or will I need a script to be called in the path somewhere to
> pick up the results of the query and then pass parameters to the form -
> something like:
> 
> /employee_by_id/employee_id/42/some_other_script/start/2/sort/employee/
> reverse/0/employee_edit_form
> 
> where some_other_script would be a script python.  Any hints to help me
> understand what can be done with traversal like this would be
> appreciated since I would rather have nice urls instead of stringing
> parameters directly in the url with all the ?= and &'s.
> 
> Regards,
> David
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] From Zope 2.5.1 to Zope 2.7.6

2005-06-22 Thread Peter Bengtsson
Try something like this:
$ cd zopehome/Products/
$ grep -rn bobobase_modification_time .

That will tell you if any of your diskbased python products rely on
bobobase_modification_time

On 6/22/05, Tim Suter <[EMAIL PROTECTED]> wrote:
> Excuse the newbie question, but how would I find that out?
> 
> I inherited this 'project' of upgrading Zope and migrating the data.  I
> have had NO help with it so I have been banging through it all the way.
> 
> Thanks,
> Tim
> On Wed, 2005-06-22 at 16:22 +0100, Peter Bengtsson wrote:
> > Are any of your applications relying on the
> > 'bobobase_modification_time' attribute?
> > That's something that changes when you import a .zexp file which could
> > maybe explain why things appear differently now.
> >
> >
> > On 6/22/05, Tim Suter <[EMAIL PROTECTED]> wrote:
> > > I am upgrading our current Zope from 2.5.1 to Zope 2.7.6.  I have the
> > > new version installed as a different instance on a different server.
> > > The Zope 2.5.1 is in tact and what I am wondering is, how do you migrate
> > > everything from the older to the newer?  I thought exporting the .zexp
> > > out of Zope 2.5.1 would be ok.  However, when I import it into the new
> > > install, it isn't the same as the original.  For example, I exported
> > > knowledge.zexp from the 2.5.1 and imported into the 2.7.6.  Now, when I
> > > go to pull up the page that points to info related to this data, the
> > > subtopics are now listed below the contents of the original page.  In
> > > looking at the html (I am no HTML expert at ALL), it did not appear that
> > > there was even anything related to subtopics.  It must be a control from
> > > within the Zope management interface.
> > >
> > > I guess I just want to know how to migrate properly with little
> > > administrative effort.
> > >
> > > Thanks,
> > > Tim
> > >
> > > ___
> > > Zope maillist  -  Zope@zope.org
> > > http://mail.zope.org/mailman/listinfo/zope
> > > **   No cross posts or HTML encoding!  **
> > > (Related lists -
> > >  http://mail.zope.org/mailman/listinfo/zope-announce
> > >  http://mail.zope.org/mailman/listinfo/zope-dev )
> > >
> >
> >
> 
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] From Zope 2.5.1 to Zope 2.7.6

2005-06-23 Thread Peter Bengtsson
On 6/22/05, Tim Suter <[EMAIL PROTECTED]> wrote:
> FWIW, here's the output of the old 2.5.1 install:
> 
...
> 
> So that tells me that there are many dependent on
> bobobase_modification_time.  What does that mean and what do I need to
> do about it?
>

It is completely wrong to rely on bobobase_modification_time because
that value changes when the object storage changes. It's much better
to use something like 'last_modified_date' that you control yourself
in your own code.

What happens when you import any object is that
bobobase_modification_time gets set to today() which might make all
your objects appear to be unordered because every time you refresh
(now on you zope276) they seem to jump around from place to place.

Solution is nasty but straight forward at least. On your (zope 2.5.1),
this product that you have instanciated as Knowledge, Argyle and
Helpdesk, do you have control over it's source code? Assuming it's a
python product it might look something like this::

class MyProduct(Folder):
meta_type = 'My Product'
def __init__(self, id, title):
  self.id = id
  self.title = title
def getModTime(self):
return self.bobobase_modifiation_time()

Now, what you need to do is to"copy" the bobobase_modification_time to
a new attribute.
 
class MyProduct(Folder):
meta_type = 'My Product'
def __init__(self, id, title):
  self.id = id
  self.title = title
  self.last_modified_date = DateTime()
def getModTime(self):
return self.last_modified_date
def upgrade(self):
self.last_modified_date = self.bobobase_modification_time()

And somewhere else you need to have a serious python script that loops
through all instances and runs upgrade() on each. Something like this:

for instance in context.objectValues('My Product'):
instance.upgrade()

Good luck


> Thanks much for your assistance;
> 
> Tim
> 
> On Wed, 2005-06-22 at 17:33 +0100, Peter Bengtsson wrote:
> > Try something like this:
> > $ cd zopehome/Products/
> > $ grep -rn bobobase_modification_time .
> >
> > That will tell you if any of your diskbased python products rely on
> > bobobase_modification_time
> >
> > On 6/22/05, Tim Suter <[EMAIL PROTECTED]> wrote:
> > > Excuse the newbie question, but how would I find that out?
> > >
> > > I inherited this 'project' of upgrading Zope and migrating the data.  I
> > > have had NO help with it so I have been banging through it all the way.
> > >
> > > Thanks,
> > > Tim
> > > On Wed, 2005-06-22 at 16:22 +0100, Peter Bengtsson wrote:
> > > > Are any of your applications relying on the
> > > > 'bobobase_modification_time' attribute?
> > > > That's something that changes when you import a .zexp file which could
> > > > maybe explain why things appear differently now.
> > > >
> > > >
> > > > On 6/22/05, Tim Suter <[EMAIL PROTECTED]> wrote:
> > > > > I am upgrading our current Zope from 2.5.1 to Zope 2.7.6.  I have the
> > > > > new version installed as a different instance on a different server.
> > > > > The Zope 2.5.1 is in tact and what I am wondering is, how do you 
> > > > > migrate
> > > > > everything from the older to the newer?  I thought exporting the .zexp
> > > > > out of Zope 2.5.1 would be ok.  However, when I import it into the new
> > > > > install, it isn't the same as the original.  For example, I exported
> > > > > knowledge.zexp from the 2.5.1 and imported into the 2.7.6.  Now, when 
> > > > > I
> > > > > go to pull up the page that points to info related to this data, the
> > > > > subtopics are now listed below the contents of the original page.  In
> > > > > looking at the html (I am no HTML expert at ALL), it did not appear 
> > > > > that
> > > > > there was even anything related to subtopics.  It must be a control 
> > > > > from
> > > > > within the Zope management interface.
> > > > >
> > > > > I guess I just want to know how to migrate properly with little
> > > > > administrative effort.
> > > > >
> > > > > Thanks,
> > > > > Tim
> > > > >
> > > > > ___
> > > > > Zope maillist  -  Zope@zope.org
> > > > > http://mail.zope.org/mailman/listinfo/zope
> > > > > **   No cross posts or HTML encoding!  **
> > > > > (Related lists -
> > > > >  http://mail.zope.org/mailman/listinfo/zope-announce
> > > > >  http://mail.zope.org/mailman/listinfo/zope-dev )
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
> 
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Cached Variables

2005-06-23 Thread Peter Bengtsson
Use the Z SQL Method cache if you can. 
The important difference is that the z sql method cache is for all
people whereas the REQUEST is just for one person.
Generic SQL: SELECT COUNT(*) FROM documents;
Personal SQL: SELECT COUNT(*) FROM documents WHERE uid=

On 6/23/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I am developing an application that is a front end to an RDBMS.
> Sometimes, when loading a page, several scripts get called that all
> require the same information from the database.  It would obviously be
> costly for each script to call the same ZSQL method.  My method for
> avioiding this senario is...
> 
> Get the scripts to call another script that is a wrapper to the ZSQL
> method.  This wrapper script returns context.REQUEST[value_name] if it
> exists or, if it does not exist, executes the ZSQL method, stuffs the
> result into REQUEST[value_name] and then returns it.
> 
> I am not convinced that this is the right way of dealing with this
> situation however.  Is there a better way?
> 
> Thanks,
> 
> Calisp
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Timeout?

2005-06-26 Thread Peter Bengtsson
I've never heard of a way. I think the external python app you have
has to try to import timeoutsocket and in that you need to set the
timeout time. Perhaps you can make this varying and not just on the
import.
If you in have a standard type python 2.3 installation, this should be
installed already for you otherwise you'll have to go digging on the
net.

On 6/26/05, Jan-Ole Esleben <[EMAIL PROTECTED]> wrote:
> Hi!
> 
> Is there a way to have a ZOPE method (called, for example, via a TALES
> expression) time out after a specific (changeable!) amount of time?
> 
> TIA,
> Ole
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] merging the contents of two acl_users folders

2005-06-28 Thread Peter Bengtsson
Maybe you've already solved this but I know that the
IssueTrackerProduct has a "Issue User Folder" which when instanciated
has an option to convert existing acl_users users. You might want to
dig into its source code where it picks up old users.

On 6/23/05, Jim Abramson <[EMAIL PROTECTED]> wrote:
>  
> 
> Can it be done? 
> 
> If not that, the ability to move selected users from one acl_users to
> another would be a decent plan B. 
> 
> This is a one-time move, so I consider any effective solution viable, even
> if some manual hacking is involved. 
> 
> Thanks for any help, 
> Jim 
>  
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 
> 
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Calendar for Zope

2005-06-29 Thread Peter Bengtsson
The CalendarTag is old and DTML but works pretty well. 
My little CorpCalendar product relys on it.
http://www.zope.org/Members/malikz/CorpCalendar

On 6/29/05, John Poltorak <[EMAIL PROTECTED]> wrote:
> 
> I quite like Plone's Calendar, but need something similar for Zope.
> 
> Any recommendations?
> 
> 
> --
> John
> 
> 
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] TAL and Javascript

2005-06-29 Thread Peter Bengtsson
What I do when the javascript gets too hairy is to stick it in a DTML
Method and then do something like this::


or


On 6/29/05, Rob Boyd <[EMAIL PROTECTED]> wrote:
> I'm stuck this, and would appreciate help or pointers.
> 
> I have a form with 2 selection drop-downs. I want the user's choice of
> select 1 to drive the options displayed in select 2. When the user
> makes a selection in select 1, onChange calls a Javascript function
> that should write select 2 options based on the result of a call to a
> Python script, passing the select 1 choice as an argument to the Python
> script.
> 
> But: I cannot get the Javascript var into the namespace that the TALES
> expression knows about.
> 
> Example:
> 
> 
> function makeDropDown() {
>   var widget = document.getElementById('select1');
>   var choice = widget.options[widget.selectedIndex].value;
>   var data = [result of calling Python script 'foo(arg)' with
> arg=choice]
>   // create options for select 2
> }
> 
> [various html...]
> 
> [options...]
> 
> 
> I've tried with multiple scripts, where one has tal:content=... but
> cannot figure out how the TALES expression can get at what my
> javascript gets from an event. I haven't done much with JavaScript
> inside Page Templates, so perhaps I'm going about this all wrong.
> 
> TIA,
> Rob
> 
> 
> 
> 
> __
> Discover Yahoo!
> Stay in touch with email, IM, photo sharing and more. Check it out!
> http://discover.yahoo.com/stayintouch.html
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] how to get info about an object (dir/type)

2005-06-30 Thread Peter Bengtsson
> 
> usually i would simply call dir() or type() on the result object,
> but those are forbidden in zope.
> 
> how do you usually solve this?
> 
External methods. You might even want to have a general debugging
script lying around that you can use to exploit dir() and type() and
__class__.__name__ from your zope.
Bare in mind that there's a security reason why these aren't available
in zope but if it's only you using the tools, it's safe.

> gabor
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] A function like a FTP Object

2005-07-03 Thread Peter Bengtsson
Sure you can. Any object/method that is in Zope becomes available via FTP. 
Some example code::

class MyProduct(Folder):
def struct_xml(self):
  return "1"
def PUT(self, REQUEST, RESPONSE):
if not REQUEST.get('BODY'):
get_transaction.abort()
RESPONSE.setStatus(405)
else:
body = REQUEST.get('BODY')
self._save_struct_body(body)
RESPONSE.setStatus(204)
return RESPONSE


setattr(MyProduct, 'struct.xml', MyProduct.struct_xml)



On 7/3/05, Garito <[EMAIL PROTECTED]> wrote:
> Hi all
> I would like to create a product with a function called struct.xml
> 
> I would like if I could access it via FTP because I would like editor
> integration
> 
> I open the file via FTP and I save it via FTP and PUT_factory mechamism
> 
> Can I make struct.xml accesible via a FTP file?
> 
> Thanks!!!
> 
> --
> Mis Cosas
> http://blogs.sistes.net/Garito/
> 
> 
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] A function like a FTP Object

2005-07-03 Thread Peter Bengtsson
> Hi!
> does this work on a folder?
> 
Sure it does. Did you understand any of my code? I subclassed it on
the folder class.

> The struct.xml function is on a folder object and I would like
> struct.xml as an object contained by the folder one
> 
This is completely outside the zope management interface. Perhaps it
is possible to override the PUT() function inside Zope but I doubt it.
Look into writing your own python product.


> Thanks!
> 
> --
> Mis Cosas
> http://blogs.sistes.net/Garito/
> 
> 
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] A function like a FTP Object

2005-07-06 Thread Peter Bengtsson
On 7/6/05, Garito <[EMAIL PROTECTED]> wrote:
> Peter Bengtsson escribió:
> 
> >>Hi!
> >>does this work on a folder?
> >>
> >>
> >>
> >Sure it does. Did you understand any of my code? I subclassed it on
> >the folder class.
> >
> >
> >
> >>The struct.xml function is on a folder object and I would like
> >>struct.xml as an object contained by the folder one
> >>
> >>
> >>
> >This is completely outside the zope management interface. Perhaps it
> >is possible to override the PUT() function inside Zope but I doubt it.
> >Look into writing your own python product.
> >
> >
> >
> >
> >>Thanks!
> >>
> >>--
> >>Mis Cosas
> >>http://blogs.sistes.net/Garito/
> >>

> >
> Yes, I think I understand your code but correct me if I get wrong: this
> code converts your folder in a file on the FTP server
> 
> But what I need is to see the method like a file on the folder not the
> folder itself
> 
> Did your code works like I need?
> 

This is getting confusing. I can't have a file (seen when listing a
folder) that is clever enough to do PUT() calls on itself.
My code showed how to put a PUT() function on a folder (Folder-based).
That means that if you do a PUT request onto the Folder, (eg.
uploading a file) it get's picked up by that method.


> THANKS!!!
> 
> --
> Mis Cosas
> http://blogs.sistes.net/Garito/
> 
> 
> _______
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] bug?

2005-07-06 Thread Peter Bengtsson
Easy. The brain object doesn't have a 'getId()' method. The Catalog has.
What you're probably after is something like this::

 for brain in context.Catalog.searchResults({'bool':1}):
  cataloged_object = brain.getObject()
  if cataloged_object is None:
  print "ZCatalog out of sync!!"
  else:
  print cataloged_object.getId()

On 7/6/05, Jürgen Herrmann <[EMAIL PROTECTED]> wrote:
> hi there!
> 
> either this is a bug or i'm too stoned to see, what's going on...
> 
> i have a folder /1, 2 subfolders /1/11 and /1/22. each subfolder
> has a property 'bool', which is a boolean.
> there's a zcatalog instance in /1/Catalog with one index bool, indexed
> attribute 'bool'. i cataloged the two subfolders of /1 there.
> 
> i have i skript /1/test with the following content:
> results = context.Catalog.searchResults({'bool':1})
> print results
> for o in results:
>   print o
>   print o.getId
>   print o.getId()
> return printed
> 
> it prints:
> [,
> ]
> 
> >
> Catalog
> 
> >
> Catalog
> 
> why in the world is o.getId a bound method of /1/Catalog?
> o is a mybrains instance!!!
> 
> what am i missing?! help!
> 
> regards, juergen herrmann
> ___
> 
> >> XLhost.de - eXperts in Linux hosting <<
> 
> Juergen Herrmann
> Weiherweg 10, 93051 Regensburg, Germany
> Fon:  +49 (0)700 XLHOSTDE [0700 95467833]
> Fax:  +49 (0)721 151 463027
> 
> ICQ:  27139974  -  IRC: [EMAIL PROTECTED]
> WEB:  http://www.XLhost.de
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] paypal IPN. Debug messages missing. Script goes zombie

2005-07-06 Thread Peter Bengtsson
Surely you get an error on the urlopen() bit because it's an HTTPS protocol. 
Search the ASPN python cookbook or the google for "https python"

Next time, try to include your traceback in the email to the list.

On 7/6/05, Ed Colmar <[EMAIL PROTECTED]> wrote:
> Hi all!
> 
> I've been hacking together a few seperate paypal IPN connections, some
> code from basion, and some from random web scrapings...  Anyway...
> Things are working for the most part, except that this method for some
> reason dies when using urllib.urlopen(), and what is really wierd is
> that I get no error message, it just hangs.
> 
> I am running an older version of zope, but I have never seen this
> behaviour before.  The debug (-D) flag is set in start.
> 
> here is the code I am using...  As far as I can tell my syntax is
> proper...  ???
> 
> def
> paypal_notify(self,address_street='',address_zip='',first_name='',last_name='',payer_business_name='',payer_email='',
> 
> payer_id='',payer_status='',residence_country='',quantity='',receiver_email='',receiver_id='',custom='',invoice='',
> memo='',auth_id='',auth_exp='',auth_amount='',auth_status='',
> remaining_settle='',
> mc_gross_x='',mc_handling_x='',mc_shipping_x='',
> 
> num_cart_items='',parent_txn_id='',payment_date='',payment_status='',payment_type='',
> 
> pending_reason='',reason_code='',txn_id='',txn_type='',exchange_rate='',mc_currency='',mc_fee='',
> mc_gross='',
> mc_handling='',payment_gross='',settle_amount='',settle_currency='',
> 
> auction_buyer_id='',auction_closing_date='',auction_multi_item='',for_auction='',
> 
> option_name1='',option_name2='',option_selection1='',option_selection2='',tax='',
> 
> subscr_date='',subscr_effective='',period1='',period2='',period3='',amount1='',
> 
> amount2='',amount3='',mc_amount1='',mc_amount2='',mc_amount3='',recurring='',
> reattempt='',retry_at='',
> recur_times='',username='',password='',subscr_id='',test_ipn=0,REQUEST=None):
> """ take a IPN from paypal, and update the database """
> print "Initiating paypal IPN"
> # they want us to send back their same shite (and we've just nicely
> # deblocked it from the REQUEST...)
> print "DEBUG = STARTING"
> requestform = REQUEST.form
> print requestform['quantity'] # debug test
> requestform['cmd'] = '_notify-validate'
> print "DEBUG = INSERTED NEW VALUE"
> print requestform
> print "sending request back to paypal"
> requestparams = urllib.urlencode(requestform)
> print "DEBUG = Encoded Request"
> print requestparams
> data =
> urllib.urlopen('https://www.sandbox.paypal.com/cgi-bin/webscr',
> requestform)
> print "DEBUG = urlretrieved"
> print data.read()
> print "DEBUG = DATA READ"
> 
> --
> 
> I see all my debug print commands until "encoded Request" and
> requestparams, so it is getting lost on the urlopen call.
> 
> Thanks for any help or tips.  I'll post the final IPN method when I'm done.
> 
> Cheers!
> 
> -ed
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Make hidden input

2005-07-07 Thread Peter Bengtsson



On 7/7/05, David Pratt <[EMAIL PROTECTED]> wrote:
> Hi. I am trying to use the make_hidden_input function in ZTUtils to
> create a hidden input in a ZPT but it does not appear.
> 
> I am using this:
> 
>  method="post"  enctype="multipart/form-data"
> tal:define="mhi python:modules['ZTUtils'].make_hidden_input;
>  dummy python:mhi(delete_ids=results)">
> 
> results is a list of dictionaries I want to pass to the form method
> 
> Can someone point out what I doing wrong? Many thanks.
> 
> Regards,
> David
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] BTreeFolder doubleclick patch

2005-07-07 Thread Peter Bengtsson
Shane (and the Zope list),
I've patched your lovely BTreeFolder2 product (version 1.0.1) so that
I can doubleclick on options in the dropdown instead of having to
click the Edit button. This is using Javascript and if Javascript is
disabled, nothing happens, it just goes back to what it was like
before.

I've attached two patch files that you can chose to include. 

PS. 
To install the patch, this works for me:
$ cd zope/Products/BTreeFolder2/
$patch -p1 < BTreeFolder2.py.patch

-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] BTreeFolder doubleclick patch

2005-07-08 Thread Peter Bengtsson
On 7/8/05, David Convent <[EMAIL PROTECTED]> wrote:
> Peter Bengtsson wrote:
> 
> >Shane (and the Zope list),
> >I've patched your lovely BTreeFolder2 product (version 1.0.1) so that
> >I can doubleclick on options in the dropdown instead of having to
> >click the Edit button. This is using Javascript and if Javascript is
> >disabled, nothing happens, it just goes back to what it was like
> >before.
> >
> >I've attached two patch files that you can chose to include.
> >
> >
> Peter, I can't find the attached files.
> Maybe you forgot to attach them or the list has removed them before
> sending to everybody?
> 

http://www.peterbe.com/zope/BTreeFolder2Patched/i

> >PS.
> >To install the patch, this works for me:
> >$ cd zope/Products/BTreeFolder2/
> >$patch -p1 < BTreeFolder2.py.patch
> >
> >
> >
> 
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: Poll: Zope and Suse Linux

2005-07-08 Thread Peter Bengtsson
> 
> >
> > The only negative that I know of comes with SuSE 9.3 Pro. Zope is
> > compiled with Python 2.4!
> 
> Why do these bastards ship Zope with an unsupported Python version...
> unbelievable! Maybe a reason *not* to use Suse.

he he. I think the equivalent of using deb packages (or alike) to
install and maintain your zope is like create and maintain a zclass
project: you get started quickly but very soon you grow out of it and
the ceiling can't be raised without breaking the roof.

-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] getSecurityManager() vs. AUTHENTICATED_USER

2005-07-08 Thread Peter Bengtsson
I've learnt that it's better to use getSecurityManager instead of
REQUEST.AUTHENTICATED_USER
because it's more secure. Other than that, what is the difference. I
fear I've come a across a situation when getSecurityManager() returns
nothing where AUTHENTICATED_USER did. I'm currently trying to
reproduce the situation but it might involve odd URL usage and it's a
bore to have to restart the browser every time. Just hoping someone
could give me a quick answer because I don't understand much simply by
reading the source.

from AccessControl import getSecurityManager
class MyProduct(...):
def Who(self):
  #return self.REQUEST.AUTHENTICATED_USER.getUserName()
  return getSecurityManager().getUser().getUserName()
-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: Re: Poll: Zope and Suse Linux

2005-07-08 Thread Peter Bengtsson
> >>
> >> Why do these bastards ship Zope with an unsupported Python version...
> >> unbelievable! Maybe a reason *not* to use Suse.
> >
> > he he. I think the equivalent of using deb packages (or alike) to
> > install and maintain your zope is like create and maintain a zclass
> > project: you get started quickly but very soon you grow out of it and
> > the ceiling can't be raised without breaking the roof.
> >
> Does your technical expertise match your sense of humour? I have built
> Python and Zope from source in the past, but that was always on a system
> which had shipped with an earlier version of Python. In this case building
> from source generates the following error when you start Zope. This was
> python2.3.5 tar file from python.org and zope-2.7.5, from zope.org. All the
> advice on the Web talks about removing old code, because DbTab is now
> integrated. The error message was:
> 

To simplify me statement: 
 - I've had problems with deb packaged zope's
 - other people complain about pre-packaged packages
 - building from source has a threshold hassle level worth taking
 - building from source is better if you're serious about your installation

-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] getSecurityManager() vs. AUTHENTICATED_USER

2005-07-08 Thread Peter Bengtsson
On 7/8/05, Dieter Maurer <[EMAIL PROTECTED]> wrote:
> Peter Bengtsson wrote at 2005-7-8 13:24 +0100:
> >I've learnt that it's better to use getSecurityManager instead of
> >REQUEST.AUTHENTICATED_USER
> >because it's more secure. Other than that, what is the difference.
> 
> The security manager could be changed (e.g. with "newSecurityManager").
> "getSecurityManager" would report the change but not "AUTHENTICATED_USER".
> 

"newSecurityManager" ??
never heard of that. The __doc__ says
""" Set up a new security context for a request for a user """

What is this used for? I'm guessing it's something we use in unittests
and stuff.

-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] userFolder that holds user's email

2005-07-12 Thread Peter Bengtsson
> > but with additional fields. Do I have to write one myself or are there
> > already products that have this feature?
> 
> SimpleUserFolder from http://www.simplistix.co.uk does exactly this :-)

Now I understand that I have reinvented the wheel :(
SimpleUserFolder was what I should I found BEFORE I developed my
IssueUserFolder for the Issuetrackerproduct.
Just one python question Chris, why do you do this::
class User(BasicUser):
def __init__(self,dict):
# bypass immutability
d = self.__dict__
d['__'] = dict['password']
del dict['password']
d['name'] = dict['name']
del dict['name']
d['roles'] = dict['roles']
del dict['roles']
d['extra'] = dict

What's wrong just doing 
self.__ = dict['password']
??

-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: How to upload a file and save it in a physical path

2005-07-17 Thread Peter Bengtsson
Why use Blob when there's ExtFile?
I don't understand the difference.

On 7/16/05, Tres Seaver <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Remy Pinsonnault wrote:
> > Maybe it is a basic question but how can I upload a file and save it
> > anywhere on the server's hard drive? I know how to upload a file to
> > zope's database but not how to save it locally...
> >
> > Anyone can help please?
> 
> You might check out Chris McDonough's "Blob" product:
> 
>   http://plope.com/software/blob/
> 
> Tres.
> - --
> ===
> Tres Seaver  +1 202-558-7113  [EMAIL PROTECTED]
> Palladion Software   "Excellence by Design"http://palladion.com
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.2.5 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
> 
> iD8DBQFC2Efy+gerLs4ltQ4RApRLAJ0QLSrEoBJ9t5R27T33WU4nJpNJlwCgn7SO
> Xt2ypnl1QmcR/O+7wDet3hU=
> =Uh5l
> -END PGP SIGNATURE-
> 
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Creating Photo object from an Image object

2005-07-17 Thread Peter Bengtsson
> #id1,title1  image id and  tile
> def doAddPhoto(id1, title1):
> # some comments
> 
> 
> img = context.getObjectById(id1) # this returns the object part of
> object item array from context.objectItems
> s="ph" +str(id1)
> context.manage_addPhoto(id=s, file=img.data,title=title1,
> displays=None, precondition='', content_type='image/jpeg') (line 12)

It should be:
product_context = context.manage_addProduct['Photo']
product_context.manage_addPhoto(id=s, ..)

Not so obvious to know :(
You can get hints like this by viewing the source of any ZMI page that
has the Add object drop down.


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] question on python script, dtml method and options

2005-07-19 Thread Peter Bengtsson
On 7/19/05, Erik Myllymaki <[EMAIL PROTECTED]> wrote:
> I use the following template often. When using a page template for my MAIN 
> page,
> I access the error and message vars with:
> 
> Error message
> Reg. Message
> 
> How would I access them when I use a dtml-method for my MAIN page?
>  and  don't seem to work.
> 

That _should_ work. 
In DTML, I think when you ask for something it does a options,
REQUEST, context, acquisition context lookup all in one loop. In TAL
you can't be lazy :( and you have to specify exactly where you expect
it to come from.

Bare in mind that keyword arguments only span across ONE template
where as variables in REQUEST span across ALL templates.

Doublecheck your template usage and/or send us your traceback.

> Python Script - index_html:
> 
> # Import a standard function, and get the HTML request and response objects.
> from Products.PythonScripts.standard import html_quote
> request = container.REQUEST
> RESPONSE =  request.RESPONSE
> 
> error=''
> message=''
> 
> if not request.has_key('next_state'):
>return container['MAIN'](context, request, error=error, message=message)
> 
> elif  request.get('next_state') == 'Do Something':
>try:
>  doSomething()
>  message = message + 'We did something'
>except:
>  error = error + 'Error in doSomething()'
> 
> 
> elif  request.get('next_state') == 'Do Something Else':
>try:
>  doSomethingElse()
>  message = message + 'We did something else'
>except:
>  error = error + 'Error in doSomethingElse()'
> 
> 
> return container['MAIN'](context, request, error=error, message=message)
> 
> _______
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] question on python script, dtml method and options

2005-07-19 Thread Peter Bengtsson
On 7/19/05, Erik Myllymaki <[EMAIL PROTECTED]> wrote:
> I don't get a traceback, i just get error and message back as empty strings;
> their initiallized value.
> 

So you're not getting an error. 
What is the initialized value? Is 'error' and 'message' set in REQUEST?
(that you can find out from doing )


> 
> 
> Peter Bengtsson wrote:
> > On 7/19/05, Erik Myllymaki <[EMAIL PROTECTED]> wrote:
> >
> >>I use the following template often. When using a page template for my MAIN 
> >>page,
> >>I access the error and message vars with:
> >>
> >>Error message
> >>Reg. Message
> >>
> >>How would I access them when I use a dtml-method for my MAIN page?
> >> and  don't seem to work.
> >>
> >
> >
> > That _should_ work.
> > In DTML, I think when you ask for something it does a options,
> > REQUEST, context, acquisition context lookup all in one loop. In TAL
> > you can't be lazy :( and you have to specify exactly where you expect
> > it to come from.
> >
> > Bare in mind that keyword arguments only span across ONE template
> > where as variables in REQUEST span across ALL templates.
> >
> > Doublecheck your template usage and/or send us your traceback.
> >
> >
> >>Python Script - index_html:
> >>
> >># Import a standard function, and get the HTML request and response objects.
> >>from Products.PythonScripts.standard import html_quote
> >>request = container.REQUEST
> >>RESPONSE =  request.RESPONSE
> >>
> >>error=''
> >>message=''
> >>
> >>if not request.has_key('next_state'):
> >>   return container['MAIN'](context, request, error=error, message=message)
> >>
> >>elif  request.get('next_state') == 'Do Something':
> >>   try:
> >> doSomething()
> >> message = message + 'We did something'
> >>   except:
> >> error = error + 'Error in doSomething()'
> >>
> >>
> >>elif  request.get('next_state') == 'Do Something Else':
> >>   try:
> >> doSomethingElse()
> >> message = message + 'We did something else'
> >>   except:
> >> error = error + 'Error in doSomethingElse()'
> >>
> >>
> >>return container['MAIN'](context, request, error=error, message=message)
> >>
> >>___
> >>Zope maillist  -  Zope@zope.org
> >>http://mail.zope.org/mailman/listinfo/zope
> >>**   No cross posts or HTML encoding!  **
> >>(Related lists -
> >> http://mail.zope.org/mailman/listinfo/zope-announce
> >> http://mail.zope.org/mailman/listinfo/zope-dev )
> >>
> >
> >
> >
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] question on python script, dtml method and options

2005-07-19 Thread Peter Bengtsson
How you get to the page is irrelevant. I don't care if you redirect
there or type in the url or click a link.

On 7/19/05, Erik Myllymaki <[EMAIL PROTECTED]> wrote:
> I am using DTML only because I am using the excellent Calendar tag product.
> 
> sometimes, the links on the calendar tag get affected by from variables so as 
> a
> hack i re-write the QUERY_STRING using:
> 
> request.RESPONSE.redirect(request['URL'] + '?mode-calendar=' +
> request['mode-calendar'] + '&date-calendar=' + request['date-calendar'] +
> '&location=' + request['location'])
> 
> instead of:
> 
> return container['MAIN'](context, request, error=error, message=message)
> 
> I originally left that detail out to avoid unnecessary confusion, but I think 
> it
> might be the cause...ideas?
> 
> 
> 
> 
> 
> Peter Bengtsson wrote:
> > On 7/19/05, Erik Myllymaki <[EMAIL PROTECTED]> wrote:
> >
> >>I use the following template often. When using a page template for my MAIN 
> >>page,
> >>I access the error and message vars with:
> >>
> >>Error message
> >>Reg. Message
> >>
> >>How would I access them when I use a dtml-method for my MAIN page?
> >> and  don't seem to work.
> >>
> >
> >
> > That _should_ work.
> > In DTML, I think when you ask for something it does a options,
> > REQUEST, context, acquisition context lookup all in one loop. In TAL
> > you can't be lazy :( and you have to specify exactly where you expect
> > it to come from.
> >
> > Bare in mind that keyword arguments only span across ONE template
> > where as variables in REQUEST span across ALL templates.
> >
> > Doublecheck your template usage and/or send us your traceback.
> >
> >
> >>Python Script - index_html:
> >>
> >># Import a standard function, and get the HTML request and response objects.
> >>from Products.PythonScripts.standard import html_quote
> >>request = container.REQUEST
> >>RESPONSE =  request.RESPONSE
> >>
> >>error=''
> >>message=''
> >>
> >>if not request.has_key('next_state'):
> >>   return container['MAIN'](context, request, error=error, message=message)
> >>
> >>elif  request.get('next_state') == 'Do Something':
> >>   try:
> >> doSomething()
> >> message = message + 'We did something'
> >>   except:
> >> error = error + 'Error in doSomething()'
> >>
> >>
> >>elif  request.get('next_state') == 'Do Something Else':
> >>   try:
> >> doSomethingElse()
> >> message = message + 'We did something else'
> >>   except:
> >> error = error + 'Error in doSomethingElse()'
> >>
> >>
> >>return container['MAIN'](context, request, error=error, message=message)
> >>
> >>___
> >>Zope maillist  -  Zope@zope.org
> >>http://mail.zope.org/mailman/listinfo/zope
> >>**   No cross posts or HTML encoding!  **
> >>(Related lists -
> >> http://mail.zope.org/mailman/listinfo/zope-announce
> >> http://mail.zope.org/mailman/listinfo/zope-dev )
> >>
> >
> >
> >
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] ZTUtils.Iterator value in ZPT

2005-07-19 Thread Peter Bengtsson
On 7/19/05, David Pratt <[EMAIL PROTECTED]> wrote:
> I want to intialize the value of ZTUtils.Iterator and use the value
> to increment tabindex attribute  in my ZPT for forms in CMF
> 
> Something like:
> 
> 
> 

Don't you need to create it with a sequence like

-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] How to get the download window option for file widget field?

2005-07-20 Thread Peter Bengtsson
Try the Plone mailing list. That's where they discuss archetypes a lot.

On 7/20/05, praveen kumar nagle <[EMAIL PROTECTED]> wrote:
> Dear All,
> 
> I have created one ARCHETYPE having few fields for
> FileWidget, to
> upload the file.
> 
> Problem::In the base view page i want to get the
> download window
> option(same like when u try to download a file) while
> clicking on link
> to download those file contents
> 
> *Code which I have given in archetype for
> FILE**
> FileField('reserveform',
>   searchable=1,
>   required=0,
>   schemata='DetailedInfo3',
>   widget=FileWidget(label='Reservation
> Form'))
> 
> FileField('enquiry',
>   searchable=1,
>   required=0,
>   schemata='DetailedInfo5',
>   widget=FileWidget(label='Enquiry Form'))
> 
> 
> 
> 
> 
> 
> Start your day with Yahoo! - make it your home page
> http://www.yahoo.com/r/hs
> 
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] How to solve this ?

2005-07-21 Thread Peter Bengtsson
This is not a Zope issue. It's an error from your SMTP server. I can't
explain why or how an SMTP server works but I've had problems like
this before because the SMTP tried to prevent spam relaying.
Secondly, does the weird error message (with the empty curly brackets)
imply that the recipient is null? ie. empty string or None
Perhaps ZEPP has a bug that it tries to send an email even if the
address is blank.

On 7/21/05, Denny Varghese <[EMAIL PROTECTED]> wrote:
>  
> Help me in this 
>   
> When i am creating a task in ZEPP and saving it i am getting the following
> error 
>   
> How to dissable the feature of sending mails to the recipients ? 
>   
> 
> site error 
> 
> This site encountered an error trying to fulfill your request. The errors
> were: Error Type SMTPRecipientsRefused Error Value {} Request made at
> 2005/07/21 12:02:27.343 GMT-7 
> 
>   
>  
> Zope Version : 
> (Zope 2.7.7-final, python 2.3.5, win32) 
>  
> Python Version: 
> 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)] 
>  
> Zepp version: 1.2 
>   
> 
> traceback (innermost last): 
>  
>  
> Module ZPublisher.Publish, line 101, in publish 
> Module ZPublisher.mapply, line 88, in mapply 
> Module ZPublisher.Publish, line 39, in call_object 
> Module Products.CMFPlone.FactoryTool, line 341, in __call__ 
> Module ZPublisher.mapply, line 88, in mapply 
> Module ZPublisher.Publish, line 39, in call_object 
> Module Products.CMFFormController.FSControllerPageTemplate,
> line 98, in __call__ 
> Module
> Products.CMFFormController.BaseControllerPageTemplate, line
> 37, in _call 
> Module Products.CMFFormController.FormController, line 375,
> in validate 
> Module ZPublisher.mapply, line 88, in mapply 
> Module ZPublisher.Publish, line 39, in call_object 
> Module Products.CMFFormController.FSControllerValidator,
> line 59, in __call__ 
> Module Products.CMFFormController.Script, line 141, in
> __call__ 
> Module Products.CMFCore.FSPythonScript, line 104, in __call__ 
> Module Shared.DC.Scripts.Bindings, line 306, in __call__ 
> Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec 
> Module Products.CMFCore.FSPythonScript, line 160, in _exec 
> Module None, line 2, in validate_base
>  /myplone/zepp_site/zeppproject.2005-07-20.4236096846/portal_factory/Task/task.2005-07-21.5228286783>
> Line 2 
> Module Products.Archetypes.BaseObject, line 445, in validate 
> Module Products.ZEPP.ZeppTask, line 369, in post_validate 
> Module Products.ZEPP.ZeppTask, line 278, in sendAlert 
> Module Products.CMFFormController.FSControllerPythonScript,
> line 105, in __call__ 
> Module Products.CMFFormController.Script, line 141, in
> __call__ 
> Module Products.CMFCore.FSPythonScript, line 104, in __call__ 
> Module Shared.DC.Scripts.Bindings, line 306, in __call__ 
> Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec 
> Module Products.CMFCore.FSPythonScript, line 160, in _exec 
> Module None, line 25, in send_alert_mail
>  /myplone/zepp_site/zeppproject.2005-07-20.4236096846/portal_factory/Task/task.2005-07-21.5228286783>
> Line 25 
> Module Products.MailHost.MailHost, line 125, in send 
> Module Products.MailHost.MailHost, line 145, in _send 
> Module smtplib, line 687, in sendmail 
> 
> __
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 
> 
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Memory Errors

2005-07-21 Thread Peter Bengtsson
>   File "/usr/local/lib/zope/lib/python/ZPublisher/HTTPResponse.py", line
> 351, in setBody
> zlib.DEF_MEM_LEVEL,0)
> MemoryError: Can't allocate memory for compression object
> 


zlib? Did your zope work fine before? 
Remember, about 2 weeks ago they found a vunorability in zlib, didn't
they. Maybe there are some implications into that on openbsd.



> 
> What is going wrong here? I'm running an OpenBSD-system with the latest
> Python 2.3.5 and 512 MB of RAM. The stack size is 0x10, as opposed to
> 0x2 that previous *BSD-distributions of Python had as default.
> 
> Any clues are appreciated,
> 
> \mb
> 
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: Memory Errors

2005-07-21 Thread Peter Bengtsson
How about ditching OpenBSD and installing a streamline linux like
debian instead?
There seems to be a problem with your python, not Zope. Zope just
happens to manage to stresstest your python binaries.
(I'm not saying linux is better than bsd, but it appears that python
works better on linux for serious applications)

On 7/21/05, Malthe Borch <[EMAIL PROTECTED]> wrote:
> Peter Bengtsson <[EMAIL PROTECTED]> wrote in
> news:[EMAIL PROTECTED]:
> 
> > 
> > zlib? Did your zope work fine before?
> > Remember, about 2 weeks ago they found a vunorability in zlib, didn't
> > they. Maybe there are some implications into that on openbsd.
> > 
> 
> 
> Well, --- it doesn't sound likely, because it's not only with zlib. I
> just got this one:
> 
> 
> 2005-07-21T12:34:18 ERROR(200) SiteError
> http://nanotek.nano.ku.dk/computere/problemer/terror
> Traceback (most recent call last):
>   File "/usr/local/lib/zope/lib/python/ZPublisher/Publish.py", line 92,
> in publish
> 
>   File "/usr/local/lib/zope/lib/python/ZPublisher/BaseRequest.py", line
> 350, in traverse
> got=1
>   File "/usr/local/lib/zope/lib/python/ZODB/Connection.py", line 600, in
> setstate
> # end of a transaction and if the object was invalidated
>   File "/usr/local/lib/zope/lib/python/ZODB/Connection.py", line 639, in
> _set_ghost_state
> 
>   File "/usr/local/lib/zope/lib/python/ZODB/Connection.py", line 227, in
> _persistent_load
> self._cache.incrgc()
> MemoryError
> 
> I restart Zope and all is well. I'm running Zope 2.7.6-final by the way.
> Perhaps I should upgrade to 2.7.7. Hopefully this is solved with 2.8.0,
> but it looks like the next compatible Plone release is some way ahead
> still.
> 
> \mb
> 
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Python formatting question

2005-07-21 Thread Peter Bengtsson
> >
> >>> Why don't you use Z SQL methods?
> > I do, but sometimes it is more convient to do SQL through python. I
> > also find that ZSQL encourages SQL duplication, especially among
> > multiple developers. With a python script, the SQL calls can be
> > stored as a single central library
> >
> 
> *shivering*
> 

I agree with Andreas. ZSQLs are a good thing. If you mix python code
and sql code you're likely to run into problems sooner or later.
Bare in mind that ZSQLs aren't just a method to store the sql
statement, they also have caching and other nifty functions such as
parameter handling.

Let me guess... you write your HTML in python code strings? :)


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Getting a methods parent (in a product)

2005-07-23 Thread Peter Bengtsson
> >
> > How can I get a Product instance's _actual_ parent when one of its
> > methods is called? (In other ways: how can I find out, from an
> > instance, where that instance is located without falling prey to
> > acquisition in Zope 2?)
> 
> from Acquisition import aq_inner, aq_parent
> 
> parent = aq_parent(aq_inner(self))
> 
> This will return the true container the instance is set in, not just  
> the acquisition parent.
> 
What's so bad about 
parent = self.aq_parent
?
> jens
> 
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Token 'ATOM' required, 'and' found

2005-07-23 Thread Peter Bengtsson
I'm using zope 2.7.5 and when doing a catalog search in a ZCTextIndex
containing the starting with the word "and" it barfs with this errror:
E.g. http://www.peterbe.com/search?q=and+i+cant+stop+thinking+about+you

Error Type: ParseError
Error Value: Token 'ATOM' required, 'and' found
(traceback below)

It works perfectly fine with 
http://www.peterbe.com/search?q=i+and+cant+stop+thinking+about+you
because then it doesn't start with "and".

The easy fix is so do something like this:
  if q.lower().startswith('and'):
  q= q[3:]
  results = self.Catalog.searchResults(title=q)

But, is there a more robust solution to this? One that doesn't require
hardcoded English words in the code. Is there a way to escape "and"
and "or" to treat them as actual words?



Traceback (innermost last):
  Module ZPublisher.Publish, line 101, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 39, in call_object
  Module Products.Peterbecom.Homepage, line 967, in SearchCatalog
  Module Products.Peterbecom.Homepage, line 985, in getSearchResults
  Module Products.ZCatalog.ZCatalog, line 649, in searchResults
  Module Products.ZCatalog.Catalog, line 753, in searchResults
  Module Products.ZCatalog.Catalog, line 496, in search
  Module Products.ZCTextIndex.ZCTextIndex, line 198, in _apply_index
  Module Products.ZCTextIndex.QueryParser, line 123, in parseQuery
  Module Products.ZCTextIndex.QueryParser, line 163, in _parseOrExpr
  Module Products.ZCTextIndex.QueryParser, line 176, in _parseAndExpr
  Module Products.ZCTextIndex.QueryParser, line 211, in _parseTerm
  Module Products.ZCTextIndex.QueryParser, line 230, in _parseAtom
  Module Products.ZCTextIndex.QueryParser, line 158, in _get
  Module Products.ZCTextIndex.QueryParser, line 144, in _require
ParseError: Token 'ATOM' required, 'and' found


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: getting atachments with python - pop3

2005-07-24 Thread Peter Bengtsson
Study the source code of the IssueTrackerProduct (www.issuetrackerproduct.com)
http://cvs.sourceforge.net/viewcvs.py/issuetracker/IssueTrackerProduct/IssueTracker.py?rev=1.268&view=auto
because it uses poplib to download and deal with attachments.


On 7/25/05, Jonathan Salazar Santos <[EMAIL PROTECTED]> wrote:
> Hi, im making a email client in python for zope, but a im stopped
> because i cant find the way to get the attacments with python, do you
> have a idea how can i do this?, i have studied the email package
> already but is a little confused.
> 
> --
> Lic. Jonathan Salazar
> Visita: www.jonathansalazar.com
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Token 'ATOM' required, 'and' found

2005-07-25 Thread Peter Bengtsson
Ok. Sounds like a plan. 
What I need to do if it happens is to escape all the operator words
like "and" "or" "not".
Any idea how I can do that?

On 7/25/05, Chris Withers <[EMAIL PROTECTED]> wrote:
> Peter Bengtsson wrote:
> > But, is there a more robust solution to this? 
> 
> The "correct" thing to do here is to write your own query parser, but 
> that's a lot of hard work.
> 
> I just catch the two exceptions that the QueryParser can throw and 
> return an empty result set.
> 
> cheers,
> 
> Chris
> 
> -- 
> Simplistix - Content Management, Zope & Python Consulting
> - http://www.simplistix.co.uk
> 
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


  1   2   3   4   5   >