Re: [Zope-dev] MySQL with LAST_INSERT_ID()

2001-01-08 Thread Arno Gross

Dieters assumption was right. 
LAST_INSERTED_ID() returns a numeric value and
that seems to be the problem. So if I change the statement as this: 
SELECT CONV(LAST_INSERT_ID(),10,10) 
it works (CONV returns a string!)

P.S. Soren, maybe you can update your HowTo with a short note. Another
possibilty instead of using LAST_INSERT_ID can be using MAX(). That should
work  too.

Thanks
   Arno
On Sat, 06 Jan
2001, Dieter Maurer wrote:  Arno Gross writes:
   SELECT LAST_INSERT_ID()
   
   This method works with Zope 2.2.4 under Linux and MySQL 3.22.32
   but I got an error with Zope 2.2.2 under NT 4.0 and MySQL 3.22.29
  Error, exceptions.KeyError: unhandled
 Sieht aus, als könnte der MySQL Anschluss den
 Rückgabewert von "LAST_INSERT_ID" nicht in einen Python
 Datentyp wandeln, würde deshalb gerne eine "unhandled"
 Funktion aus einen Dictionary auslesen, die leider
 nicht drin ist.
 
 Sieht für mich nach einem Upgrade auf eine neuere Version
 von MySQL bzw. seinen Python Anschluss aus.
 
 Allerdings müsste man zunächst den Traceback genau anschauen,
 ob meine Vermutung auch wirklich zutrifft.
 
 
 Dieter
---

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Zope from CVS for Windows

2001-01-08 Thread Chris Withers

Steve Alexander wrote:
 
 Is anyone regularly building Zope from CVS for Windows?
 
 I want to try something out on a Zope 2.3 build on windows, but I don't
 have easy access to windows development tools.

Is there a How-To on this? I'd love to run off CVS Zope at least some of
the time, but I don't know where I'd need to start...

cheers,

Chris (NT on Desktop, not server, don't worry ;-)

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] Documentation

2001-01-08 Thread Chris Withers

Dieter Maurer wrote:
 
You can control for an explicit acquiring object that some
attributes are acquired implicitly
  
   Ooo... cool :-)
  
   Where can I find out about it?

 Guess! ... in the Acquisition documentation.
 
 Each Zope installation has one (though on a place where
 one would probably not look for it):

I have to be honest and say I've never found the online help system docs
very user friendly. They're difficult to navigate and the presentation
isn't terribly readable.

Thanks for the pointer though :-)

cheers,

Chris

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] CatalogAware

2001-01-08 Thread Chris Withers

Michael Bernstein wrote:
 
  that's definitely a 'bad' thing :-(
 
 Why is that bad? A custom object management UI ('Postings'
 and 'Moderation' tabs) seems appropriate for Squishdot. I
 wouldn't want to manage postings from the standard
 management interface.

Hmmm... it does mean you can't cut, copy or paste postings though, which
can be a pain sometimes :-S

 No, I'm creating two different applications, an image
 archive and a book catalog. Both need to handle large
 numbers of items. The standard management interface does not
 scale to the number of objects involved from a usability
 perspective.

Look at Shane Hathaway's BTree Folder :-)

 I'd like to know how to prevent the objects being listed in
 the 'Contents' tab, while still allowing other objects (like
 DTML methods) to be added there.

Well, all the postings are actually stored in SquishSite.data, so
they're not actually 'contained' in the SquishSite object, hence they
don't show up in the contents tab. A bit of magic in
SquishSite.__getitem__ makes the postings URL traversable.

cheers,

Chris

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Acquisition wishlist :-)

2001-01-08 Thread Chris Withers

Dieter Maurer wrote:
 
 Chris Withers writes:
   And I suppose the other part of my wishlist:
  
class MyClass(Acquisition.Implicit):
# your_attribute will be acquied
  
# index_html won't
index_html = None
 No, that is not enough!
 
 As a side effect to turn off acquisition, you defined
 the attribute. This will not play well with inheritance:
 You will not only prevent acquisition of "index_html" but
 also prevent inheritance of it (which may be really necessary
 in some contexts).

I'm pretty sure inheritence takes precedence over Acquisition.

You wouldn't need to have index_html = None if it is inherited, since
the inherited idnex_html would be used before one is acquired, surely?

cheers,

Chris

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] ZCatalog Docs

2001-01-08 Thread Chris Withers

Where is/are the most accurate and up-to-date documentation source(s)
for ZCatalog in terms of search syntax and the different indexing types?

cheers,

Chris

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Acquisition wishlist :-)

2001-01-08 Thread Martijn Pieters

On Mon, Jan 08, 2001 at 10:10:34AM +, Chris Withers wrote:
 Dieter Maurer wrote:
  
  Chris Withers writes:
And I suppose the other part of my wishlist:
   
 class MyClass(Acquisition.Implicit):
 # your_attribute will be acquied
   
 # index_html won't
 index_html = None
  No, that is not enough!
  
  As a side effect to turn off acquisition, you defined
  the attribute. This will not play well with inheritance:
  You will not only prevent acquisition of "index_html" but
  also prevent inheritance of it (which may be really necessary
  in some contexts).
 
 I'm pretty sure inheritence takes precedence over Acquisition.
 
 You wouldn't need to have index_html = None if it is inherited, since
 the inherited idnex_html would be used before one is acquired, surely?

Yup. If you don't want to have any index_html *at all*, just declare it
index_html = None. DTML Methods and HiperDom templates do this as well,
for example.

-- 
Martijn Pieters
| Software Engineer  mailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
-

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Zope from CVS for Windows

2001-01-08 Thread Toby Dickenson

On Sun, 07 Jan 2001 10:39:45 +, Steve Alexander
[EMAIL PROTECTED] wrote:

Is anyone regularly building Zope from CVS for Windows?

I want to try something out on a Zope 2.3 build on windows, but I don't 
have easy access to windows development tools.

I think you may be out of luck, unless you can get hold of Microsoft
Visual Studio 6.0

Toby Dickenson
[EMAIL PROTECTED]

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Zope from CVS for Windows

2001-01-08 Thread Steve Alexander

Toby Dickenson wrote:

 On Sun, 07 Jan 2001 10:39:45 +, Steve Alexander
 [EMAIL PROTECTED] wrote:
 
 
 Is anyone regularly building Zope from CVS for Windows?
 
 I want to try something out on a Zope 2.3 build on windows, but I don't 
 have easy access to windows development tools.
 
 I think you may be out of luck, unless you can get hold of Microsoft
 Visual Studio 6.0

Thanks. I can borrow a machine with VS 6 on it.

However, I've never used visual studio before. Are there any 
instructions available for how to build zope using visual studio 6?

Tnanks.

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] filename extension

2001-01-08 Thread Olaf Zanger

hi there,

some information on zope.org says that in the early future ftp access
should be possible not only to dtml-methods, -documents but also to
Zsql-methods.

to be future proof (and windows software proof) we'd like to have .xxx
extensions for all our methods (fac_browse_method.sql that lovely
windows understands what programm to start [textpad for sql ...])

unfortuanetly if called like dtml-in
expr="fac_browse_method.sql(id=10)" zope gernerates an error.

if there is a solution: how?
or if not: does anything needs to be changed in the file handling of
zope 

thanks

olaf

-- 
soli-con Engineering Zanger
Dipl.-Ing. (FH) Olaf Marc Zanger
Lorrainestrasse 23
3013 Bern / Switzerland
Fon: +41-31-332 9782
Mob: +41-76-572 9782
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
http://www.soli-con.com

begin:vcard 
n:Zanger;Olaf Marc
tel;cell:+41-76-572 9782
tel;work:+41-31-332 9782
x-mozilla-html:FALSE
url:www.soli-con.com
org:soli-con Engineering Zanger
adr:;;Lorrainestrasse 23;Bern;BE;3013;Switzerland
version:2.1
email;internet:[EMAIL PROTECTED]
title:Dipl.-Ing.
note;quoted-printable:IT-Consulting=0D=0AEmbedded Systems=0D=0AEnergy Systems=0D=0AOpen Source Solutions=0D=0A
x-mozilla-cpt:;-32176
fn:Olaf Zanger
end:vcard



Re: [Zope-dev] CatalogAware

2001-01-08 Thread Michael Bernstein

Chris Withers wrote:
 
 Michael Bernstein wrote:
 
  No, I'm creating two different applications, an image
  archive and a book catalog. Both need to handle large
  numbers of items. The standard management interface does not
  scale to the number of objects involved from a usability
  perspective.
 
 Look at Shane Hathaway's BTree Folder :-)

Interesting idea, I hadn't considered that as a solution.
Has anyone created a ZClass that inherits from BTree Folder
and ZCatalog?

  I'd like to know how to prevent the objects being listed in
  the 'Contents' tab, while still allowing other objects (like
  DTML methods) to be added there.
 
 Well, all the postings are actually stored in SquishSite.data, so
 they're not actually 'contained' in the SquishSite object, hence they
 don't show up in the contents tab. A bit of magic in
 SquishSite.__getitem__ makes the postings URL traversable.

Interesting.

Thanks for the info. I've been using Squishdot a long time,
and I never knew that.

Michael Bernstein.

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Re: Spitter.c Hack

2001-01-08 Thread Jason Spisak

Tres:

Okay, I uploaded it to my member folder.

http://www.zope.org/Members/jspisak/Splitter/

I wasn't usinga sandbox for this, I just downloaded the source for 2.2.4

Here's the diff -u though:

--- Zope-2.2.4-src/lib/python/SearchIndex/Splitter.cThu Jan  4 10:41:15
2001
+++ Zope-2.2.4-src/lib/python/SearchIndex/Splitter_Old.cFri Jan  5
17:29:43 2001
@@ -169,24 +169,8 @@
 len = PyString_Size(word) - 1;
 
 len = PyString_Size(word);
-/*if(len  2)   Single-letter words are stop words!
-{
-  Py_INCREF(Py_None);
-  return Py_None;
-} */
-
-/*
-  Test whether a word has any letters.   */
 
 for (; --len = 0  ! isalpha((unsigned char)cword[len]); );
-/*if (len  0)
-{
-Py_INCREF(Py_None);
-return Py_None;
-}
-
- * If no letters, treat it as a stop word.
- */
 
 Py_INCREF(word);
 


Let me know what else I can do.  Did you see my other mails regarding
stats?

  From: "Jason Spisak" [EMAIL PROTECTED] wrote:
  
  Zopists,
  
  I finally got Splitter.c to let me index numbers and 'C++' in a TextIndex. 
  I have about 50,000 objects in that index, and search performance is nearly
  instantaneous still.  I am running on a big machine though.  If anyone
  wants those changes there's really easy.  Just mail me directly, since it's
  a long file to post.
 
 Can you post a patch, or upload it to your Zope.org member folder
 and post the link?
 
   cvs -q diff -u lib/python/SearchIndex/Splitter.c
 
 would do it, if you were working in a CVS sandbox for Zope.
 
 Tres.
 -- 
 ===
 Tres Seaver[EMAIL PROTECTED]
 Digital Creations "Zope Dealers"   http://www.zope.org

All my best,


Jason Spisak
CIO
__ ___   ____
   / // (_)_/_  __/__ / /  ___  ___  __ _
  / _  / / __/ -_) / / -_) __/ _ \(_-_/ __/ _ \/  ' \
 /_//_/_/_/  \__/_/  \__/\__/_//_/___(_)__/\___/_/_/_/

6151 West Century Boulevard
Suite 900
Los Angeles, CA 90045
P. 310.665.3444
F. 310.665.3544

Under US 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-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] ZDESIGN IDEAS = How to improve 'manage' ?

2001-01-08 Thread Jason Cunliffe

Hello

I am cross poisting this becaese I beleie it merits responee fom both
lists..

The need to improve the manage interface has grown urgently clear to me
while using Zope myself, designing for all sorts of community and
collaborative Zope-based projects, demos for a number of innocent
bystanders, interested parties and potential clients.
Zope 'manage' is plain primitive at present.

Considering the power of Zope, and the real workflow needs of people working
with it, imho this present lack of thoughtful user interface makes no sense.
By ignoring these basics, Zope is neglecting a #1 self-promotion
opportunity - how it runs out of the box, and how quickly one can use it as
site-planning/design tool.It is quite unproductive now compared to what it
could/should be.

I am looking for real help here on how best to improve this...

Here is a list of features I believe should be default manage screen
behavior now.
Please submit your comments and improvements to these improvements:

KISS
For those who do not want any added features, there should be an option in
z2.py or as a manage_config DTML method in "/" or anywhere else in the tree
to enable or disable 'advanced manage' features.

---
1. SORT TABLE
'manage' needs to presented with basic column listings so one can display
sort by headings.

I am not sure if this turns into a CatalogAware Inferno or whether all this
info is  already hidden in the ZODB and could be extracted adn cached
sensibly and quickly. What do you think?

For example some headings I see a real need for:

NAME [default now], DATE[created, last modified] SIZE, TYPE[meta-type],
USER[default=owner], DEPTH, COUNT, CHANGES, PROPERTY, DISPLAY



NAME should be like now, but one needs to be able to group things more
sensibly, so that upper and lower-case can be ignored.
For example: MYFOLDER, myFolder_config, MyFOLDER_Display could all be
grouped together where the probably belong.

DATE
Fact of the matter is that, during development and very often during normal
life, we need to work on things according to the most recent ordering. This
is also an invaluable way for people on a development team to see what has
been 'happening'. Since Zope is a tool for 'customers who have customers who
have customers...' it means that even after the original site DTML/Python
developers may have gone home, a Zopesite is under development as long as it
is being used and growing. All of those users, especially deserve better
means to see and understand how the site is working and to allow them to
work better together.

SIZE
How big is this thing?
When I look at a graphic is it a thumbnail icon or a hires scan?
What about PDF
What about folders - how to calculate the size of folder?

TYPE
Display objects sorted by TYPE.

USER
Default sorts by Owner, but could also be designed to sort by last user who
accessed the object.

DEPTH
How many levels below this thing? This would only work for Zope folders.
An essential indicator of hidden complexity/importance etc.


COUNT
How many things are contained here? Targeted mainly for Zope Folders to
allow one get a good quick overview of site structure without needing to
click though a lot of trees of nested manage screens.
CONT could be nicely integrated with DEPTH feature above to make for a more
compact interface.
If the object is not Folder-like, then  COUNT could perhaps be used to
display references or some such. In other words, how many times is this
object referred to explicitly? I realize that dynamic Zopesite references *
acquisition could make this a painful/impossible question. But counting
static references could be very useful.
How should COUNT work with say 'standard_html_header? hmmm not sure.. My
idea is that at a minimum it could estimate how many references existed
below this part of the ZODB tree.

CHANGES
The idea here is to give a useful indication of objects which have changed.
But when and how?
I really don;t have an answer to this...
- perhaps a limited search using UNDO mechanism
- perhaps a simple user ID and date which showed the last person to change
it.

PROPERTY
This one should be easy.. sort adn display all objects in 'manage' based on
common property names and values.
For example, have a property called 'status' - values might be 'OK',
'buggy', 'draft', 'approved' etc.
Too many properties and to many values would detract from usefulness
probably, some some pragmatic workflow-oriented values could be very
valuable for ordering and developing Zope projects.

DISPLAY
The idea her is to offer a simple visual toggle HIDE/SHOW like Photoshop,
Fireworks, Illustrator and myriad other graphics apps do.
Suppose you have a big list of objects in a folder which you do not want to
look at al the time. They take up too much screen space, can be confusing
and may not be relevant for certain users and roles.
Simple selection would be a checkbox, but advanced DISPLAY could be based on
the other criteria 

[Zope-dev] Easy SQL question

2001-01-08 Thread Keith . Larson

Hello ,

I am trying to pull text from a Mysql DB into a page inside zope.

I have the ZMYSQL connection setup and tested .

for example :
select renderText From Phrases where phrase_id = 3 and lang =1

I have also gotten the ZSQL method tested and working

example :
   
 Arguments 
   


phrase_id
renderText


   Query
   template 




select renderText from Phrases
dtml-sqlgroup where
dtml-if expr="phrase_id"
dtml-sqltest name="phrase_id" type="int" 
/dtml-if
/dtml-sqlgroup

change and test enter 3 for  phrase id and I get the correct info
SQL used:
select renderText from Phrases
where
phrase_id = 3

Now for the duh section.

All of the above works fine with a submit button and entering info ,

I would like to pull the info into a Zope HTML page.

I believe that this is close

dtml-call "REQUEST.set('phrase_id', foo)"

   dtml-in expr="langtest()"
  dtml-var expr="_['sequence-item'].renderText"
   /dtml-in

but is foo supposed to be my var of whatever I want passed ?

 how do I pass the variable for phrase ID ( via a variable and changed per
request ) to the language test and display the results so the user never
knows .

I think I am close just missing the obvious I think anyhelp ?




___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] ZDESIGN IDEAS = How to improve 'manage' ?

2001-01-08 Thread Shane Hathaway

Jason Cunliffe wrote:
 The need to improve the manage interface has grown urgently clear to me
 while using Zope myself, designing for all sorts of community and
 collaborative Zope-based projects, demos for a number of innocent
 bystanders, interested parties and potential clients.
 Zope 'manage' is plain primitive at present.

FYI the Zope management interface is being revised right now and the
changes are expected to land in the CVS repository *today*.  You'll be
able to see the changes in 2.3.0 alpha 2.

See more details at
http://dev.zope.org/Wikis/DevSite/Projects/ManagementInterfaceQuickFix/FrontPage

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Easy SQL question

2001-01-08 Thread Steve Alexander

[EMAIL PROTECTED] wrote:

 
 I believe that this is close
 
 dtml-call "REQUEST.set('phrase_id', foo)"
 
dtml-in expr="langtest()"
   dtml-var expr="_['sequence-item'].renderText"
/dtml-in
 
 but is foo supposed to be my var of whatever I want passed ?
 
  how do I pass the variable for phrase ID ( via a variable and changed per
 request ) to the language test and display the results so the user never
 knows .
 
 I think I am close just missing the obvious I think anyhelp ?

You need to explicitly pass in arguments to a ZSQL Method as keyword 
arguments. So, the following will probably work.

  dtml-in expr="langtest(phrase_id=phrase_id)"
dtml-var expr="_['sequence-item'].renderText"
  /dtml-in

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] RE: [Zope] ZDESIGN IDEAS = How to improve 'manage' ?

2001-01-08 Thread Mohan Baro

Are you planning a manage_install for products?
The ability for superusers to install complelte products directly through
the management interface, no need for ftp.
similar to import/export feature



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jason
Cunliffe
Sent: Monday, January 08, 2001 11:20 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [Zope] ZDESIGN IDEAS = How to improve 'manage' ?


Hello

I am cross poisting this becaese I beleie it merits responee fom both
lists..

The need to improve the manage interface has grown urgently clear to me
while using Zope myself, designing for all sorts of community and
collaborative Zope-based projects, demos for a number of innocent
bystanders, interested parties and potential clients.
Zope 'manage' is plain primitive at present.

Considering the power of Zope, and the real workflow needs of people working
with it, imho this present lack of thoughtful user interface makes no sense.
By ignoring these basics, Zope is neglecting a #1 self-promotion
opportunity - how it runs out of the box, and how quickly one can use it as
site-planning/design tool.It is quite unproductive now compared to what it
could/should be.

I am looking for real help here on how best to improve this...

Here is a list of features I believe should be default manage screen
behavior now.
Please submit your comments and improvements to these improvements:

KISS
For those who do not want any added features, there should be an option in
z2.py or as a manage_config DTML method in "/" or anywhere else in the tree
to enable or disable 'advanced manage' features.

---
1. SORT TABLE
'manage' needs to presented with basic column listings so one can display
sort by headings.

I am not sure if this turns into a CatalogAware Inferno or whether all this
info is  already hidden in the ZODB and could be extracted adn cached
sensibly and quickly. What do you think?

For example some headings I see a real need for:

NAME [default now], DATE[created, last modified] SIZE, TYPE[meta-type],
USER[default=owner], DEPTH, COUNT, CHANGES, PROPERTY, DISPLAY



NAME should be like now, but one needs to be able to group things more
sensibly, so that upper and lower-case can be ignored.
For example: MYFOLDER, myFolder_config, MyFOLDER_Display could all be
grouped together where the probably belong.

DATE
Fact of the matter is that, during development and very often during normal
life, we need to work on things according to the most recent ordering. This
is also an invaluable way for people on a development team to see what has
been 'happening'. Since Zope is a tool for 'customers who have customers who
have customers...' it means that even after the original site DTML/Python
developers may have gone home, a Zopesite is under development as long as it
is being used and growing. All of those users, especially deserve better
means to see and understand how the site is working and to allow them to
work better together.

SIZE
How big is this thing?
When I look at a graphic is it a thumbnail icon or a hires scan?
What about PDF
What about folders - how to calculate the size of folder?

TYPE
Display objects sorted by TYPE.

USER
Default sorts by Owner, but could also be designed to sort by last user who
accessed the object.

DEPTH
How many levels below this thing? This would only work for Zope folders.
An essential indicator of hidden complexity/importance etc.


COUNT
How many things are contained here? Targeted mainly for Zope Folders to
allow one get a good quick overview of site structure without needing to
click though a lot of trees of nested manage screens.
CONT could be nicely integrated with DEPTH feature above to make for a more
compact interface.
If the object is not Folder-like, then  COUNT could perhaps be used to
display references or some such. In other words, how many times is this
object referred to explicitly? I realize that dynamic Zopesite references *
acquisition could make this a painful/impossible question. But counting
static references could be very useful.
How should COUNT work with say 'standard_html_header? hmmm not sure.. My
idea is that at a minimum it could estimate how many references existed
below this part of the ZODB tree.

CHANGES
The idea here is to give a useful indication of objects which have changed.
But when and how?
I really don;t have an answer to this...
- perhaps a limited search using UNDO mechanism
- perhaps a simple user ID and date which showed the last person to change
it.

PROPERTY
This one should be easy.. sort adn display all objects in 'manage' based on
common property names and values.
For example, have a property called 'status' - values might be 'OK',
'buggy', 'draft', 'approved' etc.
Too many properties and to many values would detract from usefulness
probably, some some pragmatic workflow-oriented values could be very
valuable for ordering and developing Zope 

Re: [Zope-dev] ZDESIGN IDEAS = How to improve 'manage' ?

2001-01-08 Thread Andy McKay

 For example some headings I see a real need for:

 NAME [default now], DATE[created, last modified] SIZE, TYPE[meta-type],
 USER[default=owner], DEPTH, COUNT, CHANGES, PROPERTY, DISPLAY

This is just more dtml, since most of the mangement interface is done using
dtml-in over a simple set of objects, this should be straightforward.

 SIZE
 How big is this thing?
 When I look at a graphic is it a thumbnail icon or a hires scan?
 What about PDF
 What about folders - how to calculate the size of folder?

That might be a little more tricky and slower if you want to try and
calculate the size of a Folder containing many objects. That I would say is
not terribly important.

 What woudl you like to see when you click on manage?

Id like to see this configurable so I can choose these options.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] zopectl 0.0.1

2001-01-08 Thread Zope mailing lists

I recently released 'zopectl', a python script that acts as a configurable
front end to the z2.py script, implementing the defacto standard unix process
control commands: zopectl start, zopectl stop, zopectl restart.  I wrote
it to simplify management of a server that runs several zope instances,
so it can also be used to start/stop/restart a collection of zope sites
or any subset of that collection ('zopectl start mysite').  Configuration
is based on a master file, with the ability to override any parameter
for specific sites.

  http://www.zope.org/Members/rdmurray/zopectl

While I orginally wrote it for the production machine, I'm finding
it even more useful on my development machine where I have any
number of Data.fs files for various projects.  I now use an
INSTANCE_HOME setup where I have a directory stucture like this:

/usr/local/zope
  Zope222
  Zope224
  Zope230a1
  sites
devsite1
devsite2
devsite3

In /usr/local/zope I have a zopectl.conf file that specifies my "standard"
setup for my development sites.  In the individual devsite directories
I have zopectl.conf files that override these global settings as
necessary.  Zopectl lets me set different versions of zope to run,
and even different versions of python.  Setting up an override configuration
file has proven to be *much* easier than editing individual site
start and stop scripts.  And by putting zopectl in my path, I no longer
have to cd into the site directory in order to do a start and stop.

Anyway, I'm hoping others will find it useful, too.  The version number
(and the comments in the readme about bugs) are due to the fact that
it hasn't seen much testing yet.  It's been solid for me so far, and
I've now exercised quite a few more parameters than my README comments
would make it appear.

--RDM


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] PartitionedFileStorage - Eek!

2001-01-08 Thread Shane Hathaway

Jason Cunliffe wrote:
 
 Shane Hathaway [EMAIL PROTECTED] wrote:
  Now BerkeleyStorage is on its way and once that's ready,
  PartitionedFileStorage will have such a small audience that it won't be
  worth the trouble.  Oh well, it was a fun experiment.
 
 Can you pleae expand on this.. what about BerkeleyStorage is on its way and
 when ?

Here is the info on the BerkeleyStorage work.  Jim sent me the URL.

http://lists.zope.org/pipermail/zope-zeo/2000-November/000196.html

It will soon be a fishbowl project.

Shane

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Acquisition wishlist :-)

2001-01-08 Thread Dieter Maurer

Martijn Pieters writes:
  On Mon, Jan 08, 2001 at 10:10:34AM +, Chris Withers wrote:
   You wouldn't need to have index_html = None if it is inherited, since
   the inherited idnex_html would be used before one is acquired, surely?
  
  Yup. If you don't want to have any index_html *at all*, just declare it
  index_html = None. DTML Methods and HiperDom templates do this as well,
  for example.
You have an "index_html" and its value is "None".

If you use this class with another class that has a useful
"index_html", you must care for the inheritance order
to get the right on.


Dieter

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Acquisition wishlist :-)

2001-01-08 Thread Dieter Maurer

Chris Withers writes:
  Dieter Maurer wrote:
   
   Chris Withers writes:
 And I suppose the other part of my wishlist:

  class MyClass(Acquisition.Implicit):
  # your_attribute will be acquied

  # index_html won't
  index_html = None
   No, that is not enough!
   
   As a side effect to turn off acquisition, you defined
   the attribute. This will not play well with inheritance:
   You will not only prevent acquisition of "index_html" but
   also prevent inheritance of it (which may be really necessary
   in some contexts).
  
  I'm pretty sure inheritence takes precedence over Acquisition.
  
  You wouldn't need to have index_html = None if it is inherited, since
  the inherited idnex_html would be used before one is acquired, surely?
Of cause, but that's unfortunately only a local view.

In Python (and Zope) you have multiple inheritance and mixin classes.
You do not know with what classes you (or someone else) will combine a class
at hand. If it is good in one context to disable acquisition for
a method
because the class does not provide a usefull definition but still
does not want to inherit it, then in a different context,
the method should be provided by an inherited class.

A good example is "objectValues" and friends.
"SimpleItem.Item" defines them to return empty tuples
(to prevent acquisition from the containing container),
but if you combine a class derived from "SimpleItem.Item"
with an ObjectManager, you want the ObjectManager's
"objectValues" and not that stupid method from "Item".

It would be much clearer, when "Item" could declare,
it does not want to acquire the methods without
providing a definition.



Dieter

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] WikiName Overloading (RE: [Zope-Annce] ZWiki 0.8.1 released)

2001-01-08 Thread Jay, Dylan

Here's the beef:
Want to use ZWiki but have a slightly different version of what you want a
wikiname to be? In my case I wanted to include TLAs as wikinames as my
industry is full of them and its really handy to have to automatically
hyperlinked so anyone can give the definition and references easily.
To enable this I created a patch to ZWiki that will look for a property in
the aquisition path called WikiNameDefinition. If found, this string
property is treated as a regexp that is "or"ed with the standard wikiname
regexp. This is done at runtime so you can change the wikiname over a pages
lifetime.
I would like this patch included so that I can take advantages of new ZWiki
releases without rehacking the source each time.

I'd like to motivate the author to include this feature in the next release.
How much interest by others is there for such a feature?


 -Original Message-
 From: Simon Michael [mailto:[EMAIL PROTECTED]]
 Sent: Monday, 8 January 2001 9:29 PM
 To: Jay, Dylan
 Subject: Re: [Zope-Annce] ZWiki 0.8.1 released
 
 
 "Jay, Dylan" [EMAIL PROTECTED] writes:
  What are the disadvantages that you see?
 
 Nothing specific with your patch - just a general concern with feature
 bloat and preserving simplicity and generality which makes me want to
 consider how each new feature fits into the overall picture.  I
 haven't yet had time to do that for this particular enhancement.  
 Feel free to cc this thread on zwiki.org or the mailing lists;
 discussion of this issue from you and others can help me get to the
 "ready to integrate" stage.
 
 Regards,
 -Simon
 

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] filename extensionboundary=------------865D189079029FB9A426EFA9

2001-01-08 Thread Dieter Maurer

Olaf Zanger writes:
  Dies ist eine mehrteilige Nachricht im MIME-Format.
  --865D189079029FB9A426EFA9
  Content-Type: text/plain; charset=us-ascii
  Content-Transfer-Encoding: 7bit
Please do not post MIME messages!

  expr="fac_browse_method.sql(id=10)" zope gernerates an error.
   dtml-in expr="_.getitem('fac_browse_method.sql')(id=10)"

It is an FAQ. You would have found the answer in the searchable
list archive, too.


Dieter

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] zopectl 0.0.1

2001-01-08 Thread Bill Anderson

Zope mailing lists wrote:

 I recently released 'zopectl', a python script that acts as a configurable
 front end to the z2.py script, implementing the defacto standard unix process

There exists in CVS (and perhaps 2.3.whateveralphaversionitis?) a 
zctl.py that also includes zeo controls, you may want to have a look at 
it as well. I was working on a similiar project. I am thinking about 
extending this one.

Bill Anderson



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] (no subject)

2001-01-08 Thread vspdo

GET YOUR OWN 100 MEG WEBSITE FOR ONLY $11.95 PER MONTH TODAY!

STOP PAYING $19.95 or more TODAY for your web site, WHEN YOU CAN 
GET ONE FOR ONLY $11.95 PER MONTH!

DO YOU ALREADY HAVE A WEBSITE? ALL YOU HAVE TO DO IS TRANSFER THE 
DOMAIN TO OUR SERVERS AND UPLOAD YOUR DATA AND YOU ARE READY TO 
GO! YOUR NEW WEB SPACE CAN BE CREATED INSTANTLY WITH JUST A 
SIMPLE PHONE CALL TO  OUR OFFICE.

YOU CAN CHANGE THE DESIGN OF YOUR SITE AS MUCH AS YOU WANT with 
no extra charge!  UNLIMITED TRAFFIC -- no extra charge!

FRONT PAGE EXTENSIONS are FULLY SUPPORTED.

A SET UP FEE OF $40.00 APPLIES for FIRST TIME CUSTOMERS.

ALL FEES PREPAID IN ADVANCE FOR THE YEAR PLUS A $40.00 SET UP 
CHARGE.

FOR DETAILS CALL 1 888 248 0765  if you are outside the USA,
please fax 240 337 8325

Webhosting International

 
 
 
 
 
 

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] ZPatterns and ZClass Views

2001-01-08 Thread Roch'e Compaan

I was wondering to what extent people using ZPatterns find the Views one can
set up for a ZClass tolerant of the Role-centric approach followed by
ZPatterns.  For example:

I have two Specialists, DocumentedProducts and Products.  The Products
specialist manages ZClasses of type 'Product'.  Products are remapped to
DocumentedProducts (where product plays the role of documented product).

Typically in Zope, ZClass Views has bearing on a single Zope Object and
Views are filtered according to User Roles, thus the focus is security.
ZPatterns makes it possible to extend the roles an object has.  Ideally the
Views in a ZPatterns Application framework would be security AND role (the
role the object plays) focused ie. when I look at a Product instance where
it plays the role of documented product, I might have the views FAQs,
HOWTOs, etc. But when I look at a Product inside the Products specialist I
want the views Properties, Associated Files, etc.

I like the idea of making the Views of a ZClass my starting point because at
least it already filters according to the role a user might have.

Any other ideas/comments?

Roch




___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope] How to escape quotation mark in dtml script?

2001-01-08 Thread Dirksen

dtml-call "REQUEST.set('a', '\"b\"')" won't work! Please help.

Dirksen

__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.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] How to escape quotation mark in dtml script?

2001-01-08 Thread Dirksen

dtml-call "REQUEST.set('a', 'a\"b')"

__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.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 )




Re: [Zope] SELECT ... AS ... statement in ZSQL

2001-01-08 Thread Dario Lopez-Kästen


- Original Message -
From: "Bowyer, Alex" [EMAIL PROTECTED]
 A simple question, but I can't seem to find a simple answer in any of the
 documentation...

 How do you do a SELECT AS statement in a ZSQL method?

 For example
 SELECT FirstName + " " + LastName AS FullName


hmm... shouldn't that be

SELECT FirstName || " " || LastName as FullName

I am bit unsure of the proper syntax (I am mostly working with Oracle), but
I think you use "||" to concatenate two strings in SQL.

/dario
- 
Dario Lopez-Ksten Systems Developer  Chalmers Univ. of Technology
[EMAIL PROTECTED]  ICQ will yield no hitsIT Systems  Services


___
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] Problem on searching the record

2001-01-08 Thread Angietel



The following is my sql method, it can return 
result even i only enter one alphabet in custname but it can't work when i enter 
data into the custid.


select *from 
customerwherecustid='dtml-var custid'ORcustname LIKE 
"%dtml-var custname%"


P/s let me know where is my 
error.TQ


Re: [Zope] RSS and JavaScript

2001-01-08 Thread Holger Lehmann

Am Montag,  8. Januar 2001 04:11 schrieben Sie:
 On 7 Jan 2001 17:51:24 -0800 LARRY CHUON [EMAIL PROTECTED] wrote:
  Hi Zopistas,
 
  Happy New Year!

--snipp--

 Or do what you did before:

 SCRIPT LANGUAGE="JavaScript" SRC="dtml-var
 expr="openMe_js.absolute_url()""/SCRIPT

This will also do the trick:
script language="javascript" src="dtml-var openMe.js url"


- Holger

 Use the absolute_url() method, so that the browser is sure of getting the
 right url for the script (which may have been your problem before).

 I'd use the first method as you can at least eyeball the html output of
 htmlPreview and see if the openMe function has acutally been include,
 before having to use whatever passes for javascript debugging in your
 browser.

 HTH,
 John


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

--
---
catWorkX GmbH
Dipl.-Ing. Holger Lehmann
Stresemannstr. 364
22761 Hamburg
Tel: +49 (0700) catWorkX
Tel: +49 (40) 890 646-0
Fax: +49 (40) 890 646-66
mailto:[EMAIL PROTECTED]
http://www.catworkx.de
http://www.catbridge.de

___
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] Seminar on Zope at City University, London, UK on 15th Jan

2001-01-08 Thread Paul Browning


For any London-based readers who might be free next
Monday evening (especially if you know the answer
to the question posed in the seminar title!).

Please contact Robert if you plan to come.

Paul

 Date:Tue, 19 Dec 2000 11:29:08 +
 From:Robert Bristow [EMAIL PROTECTED]
 Subject: .gamut - 2001

 Two meetings have been scheduled for 2001, following the
 cancellation of the meeting in October.

 1. 15th Jan 2001. 6.30 pm Dr Paul Browning, University of Bristol. "Buy or
 Build
 a content management system? Where does Zope fit in?" In addition Bill
 Mackintosh and Robert Bristow will give a brief overview of web
 developments at City University.

 Location - Executive Developemnt Suite, City University Business School,
 1st floor, 24A Chiswell Street, London EC1Y 4TY (Corner of Bunhill Row and
 Chiswell Street)

 2. 26th February 2001. Professor Clive Holtham will share his experiences
 of working with public sector bodies on knowledge management issues and
 the problems such bodies face in getting their message across.

 Location - Executive Developemnt Suite, City University Business School,
 1st floor, 24A Chiswell Street, London EC1Y 4TY (Corner of Bunhaill Row
 and Chiswell Street)

 
http://www.multimap.co.uk/clients/browse.cgi?client=M6db=pcpc=EC1Y4TYSUB
MIT=Findquicksearch=ec1Y+4tyclient=M6

 At each session there will be time for general discussion of issues facing
 institutional web managers and others and time to continue the discussion
 in a local city pub afterwards.

 Anyone involved in managing, or otherwise the web in institutions, HE, FE,
 local or central government, the voluntary sector or other complex
 organisations is welcome. The aim of .gamut is to provide a forum for
 debate, support and for getting to know one another,

 Any questions etc please call Robert Bristow ([EMAIL PROTECTED]) on 020
 7477 8300 or Bill
 Mackintosh ([EMAIL PROTECTED]) on 020 7477 8782.

 Please let me know if you are coming - for room booking and catering
 purposes. We will be providing Tea, Coffee and soft drinks on arrival.

 Oh yes, have a happy christmas!

 Robert
 ---
 Robert Bristow - World Wide Web Coordinator
 City University Business School
 Frobisher Crescent, Barbican Centre, London, EC2Y 8HB
 Tel +44 (0)20 7477 8300
 e-mail: [EMAIL PROTECTED]
 http://www.business.city.ac.uk
 --

--
 The Library, Tyndall Avenue, Univ. of Bristol, Bristol, BS8 1TJ, UK
 E-mail: [EMAIL PROTECTED]  URL: http://www.bris.ac.uk/


___
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: Leaking Oracle connections processes

2001-01-08 Thread Shai Berger



Dieter Maurer wrote:
 
 Shai Berger writes:
   ... excess Oracle processes and zombies ...
 I have checked our installation and can confirm that
 both problems have gone.
 
 We do not yet know what caused the excess Oracle processes.
 After an increase of Zope's ZODB cache and an upgrade
 to the newest DCOracle, the problem simply went away.
 
Do you have a DCOracle version later than 1.3.2?
We use 1.3.2; we have increased the cache from 400 (the default) to
1000, to no avail. Our ZODB size, last I checked, was ~40M. I 
remember you mentioning that yours was less then 10M, I think; how
much cache do you use?

 We do know what caused our zombie processes:
 a bug in the Oracle Java runtime library:
 they had added a "NOWAIT" flag to their "wait" calls.
 This ensured that a "wait" call does not release
 the Zombie child but keeps it in its state.
 As a consequence,
 each process started from Java became a Zombie
 process.

Zope starts Oracle processes from Java??? All the zombies we see are
Zope-spawned... a Zope zombie-collection problem has been reported
independently of Oracle.

 As Oracle reported, the problem was introduced in 8.1.6
 and should be fixed in 8.1.7.
 
...which confuses me, because we use 8.0.5.

Thanks,
Shai.

___
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: [Zope-dev] MySQL with LAST_INSERT_ID()

2001-01-08 Thread Philipp Auersperg

Be careful with last_insert_id() and similar sql functions and Zope and more than one 
simultanous user:

since all requests run over the same physical database connection, it is not guaranteed
 that your call last_insert_id() returns YOUR last inserted record ID. if another user 
performs an insert
 in the right moment you get HIS last id.

the scenario:

user1 inserts  (gets ID 42)
user 2 inserts (gets ID 43)
user1 calls last_insert_id() (gets 43)


phil
*** REPLY SEPARATOR  ***

On 08.01.2001 at 08:27 Arno Gross wrote:

Dieters assumption was right. 
LAST_INSERTED_ID() returns a numeric value and
that seems to be the problem. So if I change the statement as this: 
SELECT CONV(LAST_INSERT_ID(),10,10) 
it works (CONV returns a string!)

P.S. Soren, maybe you can update your HowTo with a short note. Another
possibilty instead of using LAST_INSERT_ID can be using MAX(). That should
work  too.

Thanks
   Arno
On Sat, 06 Jan
2001, Dieter Maurer wrote:  Arno Gross writes:
   SELECT LAST_INSERT_ID()
   
   This method works with Zope 2.2.4 under Linux and MySQL 3.22.32
   but I got an error with Zope 2.2.2 under NT 4.0 and MySQL 3.22.29
  Error, exceptions.KeyError: unhandled
 Sieht aus, als könnte der MySQL Anschluss den
 Rückgabewert von "LAST_INSERT_ID" nicht in einen Python
 Datentyp wandeln, würde deshalb gerne eine "unhandled"
 Funktion aus einen Dictionary auslesen, die leider
 nicht drin ist.
 
 Sieht für mich nach einem Upgrade auf eine neuere Version
 von MySQL bzw. seinen Python Anschluss aus.
 
 Allerdings müsste man zunächst den Traceback genau anschauen,
 ob meine Vermutung auch wirklich zutrifft.
 
 
 Dieter
---

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/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 )




[Zope] Persistence in Zope

2001-01-08 Thread Heinz-Josef Claes

Hallo,

gibt es eigentlich eine (einfache) Mglichkeit, Daten (-strukturen) in
Zope persistent zu halten?

1. Um einen schnellen Zugriff auf Daten zu haben (Die Daten werden z.B.
in Hashes vorgehalten)

2. Um Transaktionen durchfhren zu knnen (Wiedererkennen des Anwenders
z.B. ber cookies)

Der erste Fall hat mit dem zweiten nicht unbedingt was zu tun.

MfG,
Heinz-Josef Claes


___
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] String problem with ZClassReverse

2001-01-08 Thread peter bengtson

I try to use zclassReverse 1.1.1, but when I am asked for details of the
Zclass this error (below) occurs almost instantly. This happens with all
ZClasses I have tried.
Zope 2.2.2 on WinNT.
Ideas? I have not been able to see any diagrams yet.

Regards, Peter

From the JPython (1.0.3) command line in ObjectDomain Evaluation 3.00.002:

 execfile('C:/Program Files/domain30/python/scripts/zclassReverse.py')
starting ZClass reverse engineering dialog...
 Error: ('invalid syntax', ('string', 1, 1,
'HTMLHEADTITLEZope/TITLE/HEADBODY BGCOLOR="#FF"'))


___
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] NEWBIE: Versions

2001-01-08 Thread Andy Gates

Hi folks,

Thanks to your help a few months back, I eventually got my first big 
Zope site up.  Now the marketing droids have let it mature and come 
back to me with a laundry-list of tweaks and changes.

'Tis time, think I, to use versioning: keep the live site running and 
work on a version with all changes, let the droids assess it, and then 
roll it live in one chunk.

Now, how do I do that, then?

--
Andy Gates, Learning and Research Technology
[EMAIL PROTECTED] - ICQ#74362415
http://www.ilrt.bristol.ac.uk


___
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: Versions

2001-01-08 Thread Jerome Alet

On Mon, 8 Jan 2001, Andy Gates wrote:

 Thanks to your help a few months back, I eventually got my first big 
 Zope site up.  Now the marketing droids have let it mature and come 
 back to me with a laundry-list of tweaks and changes.
 
 'Tis time, think I, to use versioning: keep the live site running and 
 work on a version with all changes, let the droids assess it, and then 
 roll it live in one chunk.
 
 Now, how do I do that, then?

Not sure if I undertand correctly your problem, but all you have to do is
to create a version object in the folder you want to modify (Add Version).
Then click on this object an connect to it. Then do all your modifications
as you would do it without a version, and let your droids view it. When
all is OK, click on your version object and click on save/discard, enter
some text to describe what you've done and click save.  Now you can
disconnect and eventually delete your version object.

hoping this will help

bye,
Jerome Alet


___
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: Versions

2001-01-08 Thread Phil Harris

Andy,

Follow the instructions as J said and you won't go far wrong, *but* be aware
that if you have any external methods these are not exactly subject to the
versioning.

The problem happens when you restart Zope and the new code is read into both
the versioned and original 'External Method'.

Phil
[EMAIL PROTECTED]

- Original Message -
From: "J. Atwood" [EMAIL PROTECTED]
To: "Andy Gates" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, January 08, 2001 1:10 PM
Subject: Re: [Zope] NEWBIE: Versions


 At 12:43 PM + 1/8/2001, Andy Gates wrote:
 Hi folks,
 'Tis time, think I, to use versioning: keep the live site running and
 work on a version with all changes, let the droids assess it, and then
 roll it live in one chunk.

 Congrats on getting a Zope site up and running (and working with
 marketing at all).

 Version is very simple. On the top root level add a version from the
 drop down and give it a name. I usually give it a capital name or
 start it with a number so it will float to the top of the list. Then
 go into it (click on it) and click on the "Start working in "
 button. This will put you into the version and anything you do will
 not be seen by anyone outside of the version. You can browse your
 sites, see the updates etc. When you are done with the changes and
 everything works just go back into the version, Leave it and click on
 the "save/discard" tab. At this point if you save your changes they
 go live, if you discard they are lost. If you drop a note in there
 you will see it in your undo log.

 Some notes:
 - You can have more than one version going but they cannot be working
 on the same item
 - A lot of people can join a version to work in it or view it
 - Try to make the name of your version match what you are doing and
 don't let changes sit in it too long or you will forget what you did

 Enjoy,
 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] filename extension

2001-01-08 Thread Olaf Zanger

hi there,

some information on zope.org says that in the early future ftp access
should be possible not only to dtml-methods, -documents but also to
Zsql-methods.

to be future proof (and windows software proof) we'd like to have .xxx
extensions for all our methods (fac_browse_method.sql that lovely
windows understands what programm to start [textpad for sql ...])

unfortuanetly if called like dtml-in
expr="fac_browse_method.sql(id=10)" zope gernerates an error.

if there is a solution: how?
or if not: does anything needs to be changed in the file handling of
zope 

thanks

olaf

-- 
soli-con Engineering Zanger
Dipl.-Ing. (FH) Olaf Marc Zanger
Lorrainestrasse 23
3013 Bern / Switzerland
Fon: +41-31-332 9782
Mob: +41-76-572 9782
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
http://www.soli-con.com

begin:vcard 
n:Zanger;Olaf Marc
tel;cell:+41-76-572 9782
tel;work:+41-31-332 9782
x-mozilla-html:FALSE
url:www.soli-con.com
org:soli-con Engineering Zanger
adr:;;Lorrainestrasse 23;Bern;BE;3013;Switzerland
version:2.1
email;internet:[EMAIL PROTECTED]
title:Dipl.-Ing.
note;quoted-printable:IT-Consulting=0D=0AEmbedded Systems=0D=0AEnergy Systems=0D=0AOpen Source Solutions=0D=0A
x-mozilla-cpt:;-32176
fn:Olaf Zanger
end:vcard



[Zope] Newbie Questions

2001-01-08 Thread Alex Reid

I am finally starting to make some decent progress with Zope now... more and
more I think to myself ... "I wonder if" and most of the time I am
pleasantly suprised when it works!

A couple of quick questions:

- How would I display the value at a variable whose name is stored in
another variable?
In Perl this would simply be a double dollar type of affair
$name = "Alex";
$myvar = "name";
print $$myvar;

- I am creating a 'form' method so I don't have to create separate forms for
INSERT and UPDATE actions. This works, only how do I tell Zope to ignore the
fact that dtml-var company_id doesn't exist when in INSERT mode? It is
there in the value="" parameter for the edit mode to pre-populate the
element.

Thanks in advance

Alex


___
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] zpattern compiling

2001-01-08 Thread Olaf Zanger

hi everybody,

after a long weekend i still searching

ExtensionClass.h 

where is it supposed to be, it is called by cPersistence.h

when compiling zpatterns

does it come with zope, zpattern or python?

where do i get the Makefile.pre.in from?
can i copy it from MySQLDB-1.2.0?

thanks for help

olaf

-- 
soli-con Engineering Zanger
Dipl.-Ing. (FH) Olaf Marc Zanger
Lorrainestrasse 23
3013 Bern / Switzerland
Fon: +41-31-332 9782
Mob: +41-76-572 9782
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
http://www.soli-con.com

begin:vcard 
n:Zanger;Olaf Marc
tel;cell:+41-76-572 9782
tel;work:+41-31-332 9782
x-mozilla-html:FALSE
url:www.soli-con.com
org:soli-con Engineering Zanger
adr:;;Lorrainestrasse 23;Bern;BE;3013;Switzerland
version:2.1
email;internet:[EMAIL PROTECTED]
title:Dipl.-Ing.
note;quoted-printable:IT-Consulting=0D=0AEmbedded Systems=0D=0AEnergy Systems=0D=0AOpen Source Solutions=0D=0A
x-mozilla-cpt:;-32176
fn:Olaf Zanger
end:vcard



[Zope] no result of change in products python methods

2001-01-08 Thread Olaf Zanger

hi everybody,

my changes in the 
sql parts of the python files of the zbabel product
do not show changed behaviour in the product after restart of zope. 

what could be the reason?
do i have to do anything with python too?

setup is
Zbabel 0-0-3, ZMySQLDA 1-2-0, MySQLdb 0-1-2 and zope 2-2-4

thanks

olaf
-- 
soli-con Engineering Zanger
Dipl.-Ing. (FH) Olaf Marc Zanger
Lorrainestrasse 23
3013 Bern / Switzerland
Fon: +41-31-332 9782
Mob: +41-76-572 9782
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
http://www.soli-con.com

begin:vcard 
n:Zanger;Olaf Marc
tel;cell:+41-76-572 9782
tel;work:+41-31-332 9782
x-mozilla-html:FALSE
url:www.soli-con.com
org:soli-con Engineering Zanger
adr:;;Lorrainestrasse 23;Bern;BE;3013;Switzerland
version:2.1
email;internet:[EMAIL PROTECTED]
title:Dipl.-Ing.
note;quoted-printable:IT-Consulting=0D=0AEmbedded Systems=0D=0AEnergy Systems=0D=0AOpen Source Solutions=0D=0A
x-mozilla-cpt:;-32176
fn:Olaf Zanger
end:vcard



Re: [Zope] Newbie Questions

2001-01-08 Thread Alex Reid

Solved my first query using dtml-with ... hmm!
Any less verbose ways?

- Original Message -
From: Alex Reid [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 08, 2001 2:32 PM
Subject: [Zope] Newbie Questions


 I am finally starting to make some decent progress with Zope now... more
and
 more I think to myself ... "I wonder if" and most of the time I am
 pleasantly suprised when it works!

 A couple of quick questions:

 - How would I display the value at a variable whose name is stored in
 another variable?
 In Perl this would simply be a double dollar type of affair
 $name = "Alex";
 $myvar = "name";
 print $$myvar;

 - I am creating a 'form' method so I don't have to create separate forms
for
 INSERT and UPDATE actions. This works, only how do I tell Zope to ignore
the
 fact that dtml-var company_id doesn't exist when in INSERT mode? It is
 there in the value="" parameter for the edit mode to pre-populate the
 element.

 Thanks in advance

 Alex


 ___
 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: Raise a Login Dialog

2001-01-08 Thread Chris McDonough

Michal,

Please use the Zope list to ask questions, thanks.

The answer is somewhat silly.

When you call this method, and you enter authentication credentials, Zope
tries to render the method.  Rendering the method raises an unauthorized.
Then you enter your credentials again.  And it raises unauthorized again.
Etc.

The purpose of raising unauthorized here is to clear your credentials from
the browser.  If you hit OK on the dialog (without entering any username or
password), and then visit *another* method, you will be able to log in as a
different user.

I hope this makes sense,

- C


- Original Message -
From: "Michal Krejza" [EMAIL PROTECTED]
To: "'Chris McDonough'" [EMAIL PROTECTED]
Sent: Monday, January 08, 2001 9:26 AM
Subject: Raise a Login Dialog


 Hi,
 I try to force a popup box for logon to Zope. For login I call this
method:


 dtml-var standard_html_header
 dtml-raise Unauthorized
   You are not logged in.
 /dtml-raise
 pNow you are in .../p
 dtml-var standard_html_footer

 But this dialog doesn't accept login information. It looks as I am using
bad
 user name and password, but it's not true. What should I do to use this
 dialog in right way. I read Zope book about Raisin exception, but without
 success 


  Mohan,
 
  The standard Zope user folder handles only basic authentication which
  generally needs to be done via a popup dialog on your browser.  At some
  point, a user needs to type his authentication credentials into the
 dialog.
  The Zope security machinery handles this in the background.
 
  To force a popup box to be displayed:
 
  dtml-raise Unauthorized
You are not logged in.
  /dtml-raise
 
  There is a user folder product named "UserDb" which supports cookie
  authentication that lets you create a custom login form.  There is also
 the
  "LoginManager" product, which I think allows you to do the same (though
 I've
  not used it).
 
 
 
 
 
  - Original Message -
  From: "Mohan Baro" [EMAIL PROTECTED]
  To: "Michal Krejza" [EMAIL PROTECTED]; [EMAIL PROTECTED]
  Sent: Thursday, January 04, 2001 12:45 PM
  Subject: RE: [Zope] Login dialog - another newbie question
 
 
   Hi there,
  
   I have been trying to do the same. i.e. create a logon form,
   what I have been told so far is that:
   1) I have to use the method user.authenticate(,)
   2) however I have found no documentation for user.authenticate()
 anywhere
   3) others have suggested that I read the source:
   ZOPE_DIR/lib/python/AccessControl/User.py
  
  
   I think its has to be something like.
   dtml-call "REQUEST.set('name', 'k.laird.1')"
   dtml-call "REQUEST.set('password', '5678')"
   dtml-call "acl_users.authenticate('Login', REQUEST, RESPONSE)"
  
  
  
   Let me know if you manage to create a login form.
  
  
  
  
   Mohan.
  
  
  
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
   Michal Krejza
   Sent: Thursday, January 04, 2001 3:38 AM
   To: [EMAIL PROTECTED]
   Subject: [Zope] Login dialog - another newbie question
  
  
   Hi Zopitas,
   I have problem with authentication in Zope. I made small site in our
   company, and some informations are visible for anonymous user and some
 for
   managers. So I need to authorize users before they connect to
restricted
   area. It's late for me, becose access to restricted methods is able
   through
   links, which are visible only for managers. Is there any way to make
 some
   form for login to Zope. But without another application like
 LoginManager
   or
   MySQL User Folder and etc. My Zope server is running on WinNT and I
have
   problem with these application.
  
   Michal Krejza
  
   ___
   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] NEWBIE: Versions

2001-01-08 Thread Andy Gates

Message-ID: [EMAIL PROTECTED]
Priority: NORMAL
X-Mailer: Execmail for Win32 5.1 Build (9) 
MIME-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"

Thanks, folks.  That works a treat :)

AndyG

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

2001-01-08 Thread Dennis Nichols

At 1/8/01 02:32 PM, Alex Reid wrote:
- I am creating a 'form' method so I don't have to create separate forms for
INSERT and UPDATE actions. This works, only how do I tell Zope to ignore the
fact that dtml-var company_id doesn't exist when in INSERT mode? It is
there in the value="" parameter for the edit mode to pre-populate the
element.

dtml-var company_id missing



--
Dennis Nichols
[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 )




RE: [Zope] How to escape quotation mark in dtml script?

2001-01-08 Thread Randall F. Kern

dtml-call "REQUEST.set('a', _.chr(34) + 'b' + _.chr(34))"

-Randy

-Original Message-
From: Dirksen [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 08, 2001 12:41 AM
To: [EMAIL PROTECTED]
Subject: [Zope] How to escape quotation mark in dtml script?


dtml-call "REQUEST.set('a', '\"b\"')" won't work! Please help.

Dirksen

__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.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 )




[Zope] Python Scripts in 2.2.x

2001-01-08 Thread Mayers, Philip J

I need to use LoginManager, which doesn't seem to work with 2.3, and I need
to use Python Scripts, which are not available (?) for 2.2.x - any ideas?

Regards,
Phil

+--+
| Phil Mayers, Network Support |
| Centre for Computing Services|
| Imperial College |
+--+  

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

2001-01-08 Thread Cornelis J. de Brabander

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Alex
 Reid
 Sent: maandag 8 januari 2001 15:33
 To: [EMAIL PROTECTED]
 Subject: [Zope] Newbie Questions

 - How would I display the value at a variable whose name is stored in
 another variable?
 In Perl this would simply be a double dollar type of affair
 $name = "Alex";
 $myvar = "name";
 print $$myvar;


dtml-var "_[myvar]"

cb



___
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] filename extension

2001-01-08 Thread Menard . Jean-Francois

Untested:

dtml-in "_['fac_browse_method.sql'](id=10)"

Does it work?

-Message d'origine-
De : Olaf Zanger [mailto:[EMAIL PROTECTED]]
Envoy : lundi 8 janvier 2001 08:41
 : [EMAIL PROTECTED]; [EMAIL PROTECTED]
Objet : [Zope] filename extension


hi there,

some information on zope.org says that in the early future ftp access
should be possible not only to dtml-methods, -documents but also to
Zsql-methods.

to be future proof (and windows software proof) we'd like to have .xxx
extensions for all our methods (fac_browse_method.sql that lovely
windows understands what programm to start [textpad for sql ...])

unfortuanetly if called like dtml-in
expr="fac_browse_method.sql(id=10)" zope gernerates an error.

if there is a solution: how?
or if not: does anything needs to be changed in the file handling of
zope 

thanks

olaf

-- 
soli-con Engineering Zanger
Dipl.-Ing. (FH) Olaf Marc Zanger
Lorrainestrasse 23
3013 Bern / Switzerland
Fon: +41-31-332 9782
Mob: +41-76-572 9782
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
http://www.soli-con.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 )




Re: [Zope] RSS and JavaScript

2001-01-08 Thread LARRY CHUON

Hi all,

Thank you John for your quick reply to my previous email.  I've tried out both of your 
suggestions below.  It still does work.  I might have done something incorrectly as I 
am very new to these stuffs.  Here are the steps that I've taken:
1) I create a file called openMe_js with JavaScript function. Then, I add it to the 
same dir as htmlPreview.  The function looks something like:
script language="javascript"
!--
function openMe(URL){
window.open(URL,"","toolbar,status,resizable,menubar");
}
//--
/script

BTW, I've put this code directly in htmlPreview.

2) Next, I add one of the two methods that you've suggested to the head of htmlPreview:
 script language="JavaScript"
 dtml-var name="openMe_js"
 /script

OR

 SCRIPT LANGUAGE="JavaScript" SRC="dtml-var 
expr="openMe_js.absolute_url()""/SCRIPT

3) Finally, I add A href="javascript:openMe('dtml-var url html_quote')"dtml-var 
linktext html_quote/A
to one of the sections in htmlPreview. 

Sorry if the email is a bit lengthy.  I want to be sure that I'm doing it right.  
Thank you all in advance to helping me.

Larry

On Sun, 07 January 2001, John Morton wrote:

 
 On 7 Jan 2001 17:51:24 -0800 LARRY CHUON [EMAIL PROTECTED] wrote:
 
  Hi Zopistas,
  
  Happy New Year!
  
  I'm working with SiteSummary and would like htmlPreview to grab the URL
  and open it up in a new window.  It's not working correct.  I'm unsure
  how Zope handle javascript either.
 
 Zope handles javascript in the same way it handles html - it just sends
 it to the client and let's the browser figure out what to do with it.
 DTML, on the other hand, is interpreted beforehand, and the results are
 sent to the browser. 
 
   Any help is greatly appreciated. 
  Below is my htmlPreview.  I also tried to put the javascript function
  (I'm new to js as well) in a file and import it to the same directory as
  standard_html_header.  Then I add SCRIPT LANGUAGE="JavaScript"
  SRC="openMe.js"/SCRIPT to stand_html_header.  That doesn't work
  either. By the way, js doesn't seen to work well in Zope.  I could n't
  find much info on-line.  
 
 [cut]
  PA href="javascript:openMe('dtml-var url html_quote')"dtml-var linktext 
html_quote/A
 
 My understanding of what happens when this link is traversed is that the
 browser calls the javascript function 'openMe(...)', which should already
 defined in the page. It doesn't attempt to fetch anything from the server
 with that URL.
 
 So what you need to do is ensure that htmlPreview include the function
 openMe by either including the code into the html document like this:
 
 script language="JavaScript"
 dtml-var name="openMe_js"
 /script
 
 (note that I've replaced the dot in openMe.js with an underscore, as
 objects with dots in there ids need to be quoted to be used, and 
 1) I've forgotten how to do it
 2) Searching through the documentation has given me a headache
 )
 
 ...Or do what you did before:
 
 SCRIPT LANGUAGE="JavaScript" SRC="dtml-var 
expr="openMe_js.absolute_url()""/SCRIPT
 
 Use the absolute_url() method, so that the browser is sure of getting the
 right url for the script (which may have been your problem before).
 
 I'd use the first method as you can at least eyeball the html output of
 htmlPreview and see if the openMe function has acutally been include,
 before having to use whatever passes for javascript debugging in your
 browser.
 
 HTH,
 John



___
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] zclassReverse problem

2001-01-08 Thread Bill Welch

I get back exactly nothing, no 'Not Found', no classes/attributes. I
believe that I've installed correctly. When I ask for a product that
doesn't exist, I get a traceback that starts in Extensions/zclassInfo.py.

I've tried in on Membership, LoginManager, ZPatterns, Poll, Etailer, and
zCommerce. Zope 2.2.2, linux.

Bill.

On Sat, 6 Jan 2001, Philipp Auersperg wrote:

 ZclassReverse consists of two parts, the client part in ObjectDomain
 and the server part that extracts the class infos on the Zope side.
 
 That means that the methods provided in the zclassReverse folder
 expose internals of your ZClasses, they DONT BREAK ANYTHING in your
 Zope since the methods exposed in the zclassReverse folder just are
 read-only.
 
 the 'invalid syntax' error orrurs if something goes wrong when you call the server 
part.
 
 you can check that manually if you type the following url into your
 browser (fill in your server,port and product):
 
 http://yourserver:8080/zclassInfo/getClassInfos?product=QSurvey
 
 When you get a collection of classes and yttriutes it works, in your
 case Zope returns it's 'Not found' screen.
 
 Solution:
 check if you have installed the server part of ZClassReverse which consists of:
 1. zclassInfo.py that has to be copied into your Extensions folder
 2. import zclassInfo.zexp into your Zope root folder
 
 When that works you should be able to reverse your product, let me
 hear if it worked for you
 
 thanls and good luck
 phil
 
 -- Original Message --
 From: Bill Welch [EMAIL PROTECTED]
 Date: Fri, 5 Jan 2001 11:47:29 -0500
 
 in the moment dont install ZClassReverse on production machines since for now 
 the client module comunicates unauthorized to Zope, but I will be working on 
 it as I'll have time.
 
 Does this mean it breaks something or that it won't work? Is this the source 
 of my 'invalid syntax' error?
 
 Bill.
 
 


___
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] ZDESIGN IDEAS = How to improve 'manage' ?

2001-01-08 Thread Jason Cunliffe

Hello

I am cross poisting this becaese I beleie it merits responee fom both
lists..

The need to improve the manage interface has grown urgently clear to me
while using Zope myself, designing for all sorts of community and
collaborative Zope-based projects, demos for a number of innocent
bystanders, interested parties and potential clients.
Zope 'manage' is plain primitive at present.

Considering the power of Zope, and the real workflow needs of people working
with it, imho this present lack of thoughtful user interface makes no sense.
By ignoring these basics, Zope is neglecting a #1 self-promotion
opportunity - how it runs out of the box, and how quickly one can use it as
site-planning/design tool.It is quite unproductive now compared to what it
could/should be.

I am looking for real help here on how best to improve this...

Here is a list of features I believe should be default manage screen
behavior now.
Please submit your comments and improvements to these improvements:

KISS
For those who do not want any added features, there should be an option in
z2.py or as a manage_config DTML method in "/" or anywhere else in the tree
to enable or disable 'advanced manage' features.

---
1. SORT TABLE
'manage' needs to presented with basic column listings so one can display
sort by headings.

I am not sure if this turns into a CatalogAware Inferno or whether all this
info is  already hidden in the ZODB and could be extracted adn cached
sensibly and quickly. What do you think?

For example some headings I see a real need for:

NAME [default now], DATE[created, last modified] SIZE, TYPE[meta-type],
USER[default=owner], DEPTH, COUNT, CHANGES, PROPERTY, DISPLAY



NAME should be like now, but one needs to be able to group things more
sensibly, so that upper and lower-case can be ignored.
For example: MYFOLDER, myFolder_config, MyFOLDER_Display could all be
grouped together where the probably belong.

DATE
Fact of the matter is that, during development and very often during normal
life, we need to work on things according to the most recent ordering. This
is also an invaluable way for people on a development team to see what has
been 'happening'. Since Zope is a tool for 'customers who have customers who
have customers...' it means that even after the original site DTML/Python
developers may have gone home, a Zopesite is under development as long as it
is being used and growing. All of those users, especially deserve better
means to see and understand how the site is working and to allow them to
work better together.

SIZE
How big is this thing?
When I look at a graphic is it a thumbnail icon or a hires scan?
What about PDF
What about folders - how to calculate the size of folder?

TYPE
Display objects sorted by TYPE.

USER
Default sorts by Owner, but could also be designed to sort by last user who
accessed the object.

DEPTH
How many levels below this thing? This would only work for Zope folders.
An essential indicator of hidden complexity/importance etc.


COUNT
How many things are contained here? Targeted mainly for Zope Folders to
allow one get a good quick overview of site structure without needing to
click though a lot of trees of nested manage screens.
CONT could be nicely integrated with DEPTH feature above to make for a more
compact interface.
If the object is not Folder-like, then  COUNT could perhaps be used to
display references or some such. In other words, how many times is this
object referred to explicitly? I realize that dynamic Zopesite references *
acquisition could make this a painful/impossible question. But counting
static references could be very useful.
How should COUNT work with say 'standard_html_header? hmmm not sure.. My
idea is that at a minimum it could estimate how many references existed
below this part of the ZODB tree.

CHANGES
The idea here is to give a useful indication of objects which have changed.
But when and how?
I really don;t have an answer to this...
- perhaps a limited search using UNDO mechanism
- perhaps a simple user ID and date which showed the last person to change
it.

PROPERTY
This one should be easy.. sort adn display all objects in 'manage' based on
common property names and values.
For example, have a property called 'status' - values might be 'OK',
'buggy', 'draft', 'approved' etc.
Too many properties and to many values would detract from usefulness
probably, some some pragmatic workflow-oriented values could be very
valuable for ordering and developing Zope projects.

DISPLAY
The idea her is to offer a simple visual toggle HIDE/SHOW like Photoshop,
Fireworks, Illustrator and myriad other graphics apps do.
Suppose you have a big list of objects in a folder which you do not want to
look at al the time. They take up too much screen space, can be confusing
and may not be relevant for certain users and roles.
Simple selection would be a checkbox, but advanced DISPLAY could be based on
the other criteria 

Re: [Zope] LoginManager with SQL and Skinscript: adding properties to propertysheet propertysheet

2001-01-08 Thread Dan L. Pierson

Aaron Payne [EMAIL PROTECTED] writes:

 I am following Dan Pierson's How-To SQL LoginManager with SQL and
 Skinscript. I am not able to add properties.

You may have noticed my silence on property sheets...  At first, I
didn't expect to use them, because I expected only members to edit
their "properties" and I'm certainly not going to expose the standard
Zope management interface to them.  After going through the latest PTK
sources some more, it looks like I may try using them after all.  In
either case, the important things to remember are:

- The actual property data isn't stored in the ZClass or its property
sheets, and the Skinscript code makes the ZClass "property" attributes
have values with or without property sheets, and

- The ZClass instances are ephemeral -- nothing is expected to store
them for any length of time (though they may be cached).

 I created LoginManager:LoginUser subclassed zclass def for a user with
 a propertysheet Basic.
 
 It had properties password and email.  The LM methods I tested failed
 so I deleted the properties.  Now I want to add them again. When I try
 I get:
 
 
 for password
 Invalid property id, password. It is in use.
 for email:
 Invalid property id, email. It is in use.
 
 I also deleted the entire propertysheet and tried to add the props but
 the same error occured.
 
 
 I can add new props but not ones that were deleted earlier. Is there a
 way around this problem?

I think you'll have to delete the whole ZClass and start over :-(.
This shouldn't be too much of a pain because you shouldn't have any
instances to worry about.  If you've written custom methods, you'll
want to copy them someplace before deleting the class.

Hope this helps,

Dan Pierson





___
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] filename extension

2001-01-08 Thread Olaf Zanger

hi there,

thanks for the answer, but ...

[EMAIL PROTECTED] schrieb:
 
 Untested:
 
 dtml-in "_['fac_browse_method.sql'](id=10)"
 
 Does it work?
nope

dtml-in "_['adr_select_method.sql'](id=man_adr_id)"

Error Type: Bad Request
Error Value: ['id']

this (with the renamed file) works though:
dtml-in "adr_select_method(id=man_adr_id)"

is there any documentation for these tricks?

thanks 

olaf
-- 
soli-con Engineering Zanger
Dipl.-Ing. (FH) Olaf Marc Zanger
Lorrainestrasse 23
3013 Bern / Switzerland
Fon: +41-31-332 9782
Mob: +41-76-572 9782
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
http://www.soli-con.com

begin:vcard 
n:Zanger;Olaf Marc
tel;cell:+41-76-572 9782
tel;work:+41-31-332 9782
x-mozilla-html:FALSE
url:www.soli-con.com
org:soli-con Engineering Zanger
adr:;;Lorrainestrasse 23;Bern;BE;3013;Switzerland
version:2.1
email;internet:[EMAIL PROTECTED]
title:Dipl.-Ing.
note;quoted-printable:IT-Consulting=0D=0AEmbedded Systems=0D=0AEnergy Systems=0D=0AOpen Source Solutions=0D=0A
x-mozilla-cpt:;-32176
fn:Olaf Zanger
end:vcard



RE: [Zope] filename extension

2001-01-08 Thread sean . upton

Perhaps I am wrong here, but couldn't one just use indirect variable lookup
within the expression to access the method.  There has got to be a way to
use _.getitem for this purpose inside the dtml-in, since by default, it
doesn't automatically render the method, but I'm not sure how one would pass
the param to the method?

Anybody have syntax that would work?

Sean

-Original Message-
From: Olaf Zanger [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 08, 2001 5:41 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [Zope] filename extension


hi there,

some information on zope.org says that in the early future ftp access
should be possible not only to dtml-methods, -documents but also to
Zsql-methods.

to be future proof (and windows software proof) we'd like to have .xxx
extensions for all our methods (fac_browse_method.sql that lovely
windows understands what programm to start [textpad for sql ...])

unfortuanetly if called like dtml-in
expr="fac_browse_method.sql(id=10)" zope gernerates an error.

if there is a solution: how?
or if not: does anything needs to be changed in the file handling of
zope 

thanks

olaf

-- 
soli-con Engineering Zanger
Dipl.-Ing. (FH) Olaf Marc Zanger
Lorrainestrasse 23
3013 Bern / Switzerland
Fon: +41-31-332 9782
Mob: +41-76-572 9782
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
http://www.soli-con.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] Zope 'Best Practices'?

2001-01-08 Thread Spicklemire, Jerry

Steve wonders:

 Is there anything like a Zope 'Best Practices' document or 
 Wiki? One that would encourage use of certain practices, DTML 
 idioms or products, and warn of practices, idioms or products 
 that are known to cause problems down the line or are slated 
 for extinction?
 
 I ask this as a new user who's bewildered by the array of Zope 
 tools and products. So, I read of a practice or Product and 
 think 'wow, that's great!' But I have no idea whether it's in 
 common usage and destined to become part of the core, or is 
 headed for replacement or extinction.


I think the link below was made for just this reason:

 http://www.zope.org/Members/tseaver/StartHere

Thanks Tres!

___
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] LoginManager and Zope 2.3

2001-01-08 Thread Austin Mayberry

Has anyone tried get the LoginManager to work with Zope 2.3a1?  When I
try the LoginManager product is broken with error message:

LoginManager Import Traceback

Traceback (innermost last):
  File "/usr/lib/Zope-2.3.0a1-src/lib/python/OFS/Application.py", line
405, in import_products
product=__import__(pname, global_dict, global_dict, silly)
  File
"/usr/lib/Zope-2.3.0a1-src/lib/python/Products/LoginManager/__init__.py",
line 1, in ?
import LoginManager, LoginMethods, UserSources
  File
"/usr/lib/Zope-2.3.0a1-src/lib/python/Products/LoginManager/LoginManager.py",
line 114, in ?
from AccessControl.User import _remote_user_mode, Super
ImportError: cannot import name Super


Thanks,
Austin Mayberry

___
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] free zope web hosting product

2001-01-08 Thread Andy McKay

Is there a product / some code for maintaining free Zope sites where members
log in get a some space etc. For example Zope.org or nipltd.com? Theres
plenty of advanced login products (Login Manager, Membership etc), but it
would be nice to download one without having to add to it?

Cheers.

--
  Andy McKay.
  ActiveState.




___
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] ANNOUNCE: Zope 2.2.5 released

2001-01-08 Thread Brian Lloyd

Hello all,

  Zope 2.2.5 has been released - you can download it from
  Zope.org:

  http://www.zope.org/Products/Zope/2.2.5/

  This release contains a number of bug fixes, and includes all Hotfixes
  to date. It includes the fix for a memory leak that could occur when
  accessing SQL data through aliased names, a fix for a problem with
  contention between concurrent POST requests and a number of fixes to
  improve support for current WebDAV-aware clients such as Adobe GoLive.
  Over 60 Collector issues were closed out in preparing for the 2.2.5
  release - thanks to those who submitted patches and helped to investigate
  bugs and verify fixes.

  Note that this release contains a change to the ExtensionClass binary -
  if you are running a source release you should rebuild the Zope binaries
  after upgrading or applying a "diff" update.

  For more information on what is new in this release, see the CHANGES.txt
  and HISTORY.txt files for the release:

  http://www.zope.org/Products/Zope/2.2.5/CHANGES.txt

  http://www.zope.org/Products/Zope/2.2.5/HISTORY.txt

  Note that we have also posted "diff" updates as .tgz files that will let
  you easily upgrade an existing 2.2.x site. These updates are available for
  those currently using the 2.2.x source release or the 2.2.x binary
releases.

  To apply a differential update to your site:

  - download the appropriate .tgz file from zope.org

  - shutdown your Zope process

  - copy the .tgz to your Zope directory and extract it

  - run w_pcgi or wo_pcgi *if you are not using a binary release*

  - restart your process


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] Intercept exceptions in Python Methods

2001-01-08 Thread Juan Carlos Coruña

I try to intercept exceptions in a Python Method without success.

The following code works well:

try:
a = int('a')
except:
return 'exception.'

but the next doesn't work:

try:
a = int('a')
except ValueError:
return 'exception'

How can I intercept a concrete exception?


___
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] ZDESIGN IDEAS = How to improve 'manage' ?

2001-01-08 Thread Mohan Baro

Are you planning a manage_install for products?
The ability for superusers to install complelte products directly through
the management interface, no need for ftp.
similar to import/export feature



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jason
Cunliffe
Sent: Monday, January 08, 2001 11:20 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [Zope] ZDESIGN IDEAS = How to improve 'manage' ?


Hello

I am cross poisting this becaese I beleie it merits responee fom both
lists..

The need to improve the manage interface has grown urgently clear to me
while using Zope myself, designing for all sorts of community and
collaborative Zope-based projects, demos for a number of innocent
bystanders, interested parties and potential clients.
Zope 'manage' is plain primitive at present.

Considering the power of Zope, and the real workflow needs of people working
with it, imho this present lack of thoughtful user interface makes no sense.
By ignoring these basics, Zope is neglecting a #1 self-promotion
opportunity - how it runs out of the box, and how quickly one can use it as
site-planning/design tool.It is quite unproductive now compared to what it
could/should be.

I am looking for real help here on how best to improve this...

Here is a list of features I believe should be default manage screen
behavior now.
Please submit your comments and improvements to these improvements:

KISS
For those who do not want any added features, there should be an option in
z2.py or as a manage_config DTML method in "/" or anywhere else in the tree
to enable or disable 'advanced manage' features.

---
1. SORT TABLE
'manage' needs to presented with basic column listings so one can display
sort by headings.

I am not sure if this turns into a CatalogAware Inferno or whether all this
info is  already hidden in the ZODB and could be extracted adn cached
sensibly and quickly. What do you think?

For example some headings I see a real need for:

NAME [default now], DATE[created, last modified] SIZE, TYPE[meta-type],
USER[default=owner], DEPTH, COUNT, CHANGES, PROPERTY, DISPLAY



NAME should be like now, but one needs to be able to group things more
sensibly, so that upper and lower-case can be ignored.
For example: MYFOLDER, myFolder_config, MyFOLDER_Display could all be
grouped together where the probably belong.

DATE
Fact of the matter is that, during development and very often during normal
life, we need to work on things according to the most recent ordering. This
is also an invaluable way for people on a development team to see what has
been 'happening'. Since Zope is a tool for 'customers who have customers who
have customers...' it means that even after the original site DTML/Python
developers may have gone home, a Zopesite is under development as long as it
is being used and growing. All of those users, especially deserve better
means to see and understand how the site is working and to allow them to
work better together.

SIZE
How big is this thing?
When I look at a graphic is it a thumbnail icon or a hires scan?
What about PDF
What about folders - how to calculate the size of folder?

TYPE
Display objects sorted by TYPE.

USER
Default sorts by Owner, but could also be designed to sort by last user who
accessed the object.

DEPTH
How many levels below this thing? This would only work for Zope folders.
An essential indicator of hidden complexity/importance etc.


COUNT
How many things are contained here? Targeted mainly for Zope Folders to
allow one get a good quick overview of site structure without needing to
click though a lot of trees of nested manage screens.
CONT could be nicely integrated with DEPTH feature above to make for a more
compact interface.
If the object is not Folder-like, then  COUNT could perhaps be used to
display references or some such. In other words, how many times is this
object referred to explicitly? I realize that dynamic Zopesite references *
acquisition could make this a painful/impossible question. But counting
static references could be very useful.
How should COUNT work with say 'standard_html_header? hmmm not sure.. My
idea is that at a minimum it could estimate how many references existed
below this part of the ZODB tree.

CHANGES
The idea here is to give a useful indication of objects which have changed.
But when and how?
I really don;t have an answer to this...
- perhaps a limited search using UNDO mechanism
- perhaps a simple user ID and date which showed the last person to change
it.

PROPERTY
This one should be easy.. sort adn display all objects in 'manage' based on
common property names and values.
For example, have a property called 'status' - values might be 'OK',
'buggy', 'draft', 'approved' etc.
Too many properties and to many values would detract from usefulness
probably, some some pragmatic workflow-oriented values could be very
valuable for ordering and developing Zope 

[Zope] Re: [Zope-dev] ZDESIGN IDEAS = How to improve 'manage' ?

2001-01-08 Thread Andy McKay

 For example some headings I see a real need for:

 NAME [default now], DATE[created, last modified] SIZE, TYPE[meta-type],
 USER[default=owner], DEPTH, COUNT, CHANGES, PROPERTY, DISPLAY

This is just more dtml, since most of the mangement interface is done using
dtml-in over a simple set of objects, this should be straightforward.

 SIZE
 How big is this thing?
 When I look at a graphic is it a thumbnail icon or a hires scan?
 What about PDF
 What about folders - how to calculate the size of folder?

That might be a little more tricky and slower if you want to try and
calculate the size of a Folder containing many objects. That I would say is
not terribly important.

 What woudl you like to see when you click on manage?

Id like to see this configurable so I can choose these options.


___
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] Python Scripts in 2.2.x

2001-01-08 Thread Ron Bickers

I'm running PythonScripts with 2.2.4 and, with one exception, they seem to
be working just fine.  The exception is that DTML namespace binding does not
work under 2.2.  You can, however, pass the namespace explicitly to get the
same effect.  Here is what you need to do to get it working.  Note that
PythonScripts under 2.2 is not supported by DC, so if this blows up, you're
out of luck.

1) Install PythonScripts from CVS (Zope2/lib/python/Products/PythonScripts)
just like any other Python Product.

2) Add these lines to lib/python/AccessControl/__init__.py in your Zope
installation:

from SecurityInfo import ClassSecurityInfo, ModuleSecurityInfo
from SecurityInfo import ACCESS_PRIVATE
from SecurityInfo import ACCESS_PUBLIC
from SecurityInfo import ACCESS_NONE
from SecurityInfo import secureModule

3) Add the CVS version of AccessControl/SecurityInfo.py to the AccessControl
directory.

4) Add the CVS version of OFS/Cache.py to the OFS directory.

5) Restart Zope

Other than the exception above, I haven't found anything to not function as
expected.
___

Ron Bickers
Logic Etc, Inc.
[EMAIL PROTECTED]


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
 Mayers, Philip J
 Sent: Monday, January 08, 2001 10:40 AM
 To: '[EMAIL PROTECTED]'
 Subject: [Zope] Python Scripts in 2.2.x


 I need to use LoginManager, which doesn't seem to work with 2.3,
 and I need
 to use Python Scripts, which are not available (?) for 2.2.x - any ideas?



___
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] LoginManager and Zope 2.3

2001-01-08 Thread Shane Hathaway

Austin Mayberry wrote:
 
 Has anyone tried get the LoginManager to work with Zope 2.3a1?  When I
 try the LoginManager product is broken with error message:

LoginManager 0.8.6 seems to work fine.  0.8.8b1 tries to use a class in
User.py that no longer exists.  In fact, it does things that are
probably outside the realm of a "user folder" product and might be more
appropriate as a different product.  I don't know about 0.8.7.

I could fix LoginManager easily but the author might fix it a different
way.

Shane

___
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] ZDESIGN IDEAS = How to improve 'manage' ?

2001-01-08 Thread Spicklemire, Jerry

Jason mentioned :

 The need to improve the manage interface has grown urgently 
  clear to me while using Zope myself, designing for all sorts 
 of community and collaborative Zope-based projects, demos for 
 a number of innocent bystanders, interested parties and 
 potential clients. Zope 'manage' is plain primitive at present.

(and lot's more)

Though I haven't seen much in the way of details, the link below may overlap
to some degree:
 
http://dev.zope.org/Wikis/DevSite/Projects/ManagementInterfaceQuickFix/Front
Page

and from the looks of :

http://dev.zope.org/Wikis/DevSite/Projects/ManagementInterfaceQuickFix/Curre
ntStatus

things seem to be moving ahead.

There are so many projects it's not really possible to stay on top of it
all, at least for me. Keep in mind that PTK is rapidly approaching v. 1.0,
and for what you have described as your project range, that may have a huge
impact.

See:

 http://lists.zope.org/pipermail/zope-web/2001-January/000275.html

especially:

 However it sounds like what you really want is the PTK:
 
  http://www.zope.org/Products/PTK/
 
 The CVS version of PTK is more friendly to WebDAV, especially when 
combined with Zope 2.3's ability to run on a "source port" (that 
 is, a port where GET requests don't render the document).  I 
 believe Martijn will be working on getting HiperDOM templates as a 
 content type for PTK.
 
 With this you can have resources that have to go through a simple 
 role-based approval system.
 
 I'm really looking forward to the next six or so weeks when the 
 dust settles on all this.

Later,
Jerry S.

___
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] LoginManager and Zope 2.3

2001-01-08 Thread Austin Mayberry

Since I posted this this morning I have since figured out a way to fix
it.  The LoginManager was referencing a class in AccessControl/Users.py
called Super, but in Zope 2.3 this class is called UnrestrictedUser. 
This introduced a new error which tracedback to HTTPRequest.py.  I know
it is probably not a good a idea, but I changed that code to make it
work only because it seemed to have a bug in it.  I could be totally
wrong, but lines 772-774 look as if they need to be further indented as
some of the variables that code references are declared in the if block
above which is one level deeper.  Someone check me on this one to make
sure that this is correct.

Austin

Austin Mayberry wrote:
 
 Has anyone tried get the LoginManager to work with Zope 2.3a1?  When I
 try the LoginManager product is broken with error message:
 
 LoginManager Import Traceback
 
 Traceback (innermost last):
   File "/usr/lib/Zope-2.3.0a1-src/lib/python/OFS/Application.py", line
 405, in import_products
 product=__import__(pname, global_dict, global_dict, silly)
   File
 "/usr/lib/Zope-2.3.0a1-src/lib/python/Products/LoginManager/__init__.py",
 line 1, in ?
 import LoginManager, LoginMethods, UserSources
   File
 "/usr/lib/Zope-2.3.0a1-src/lib/python/Products/LoginManager/LoginManager.py",
 line 114, in ?
 from AccessControl.User import _remote_user_mode, Super
 ImportError: cannot import name Super
 
 Thanks,
 Austin Mayberry
 
 ___
 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] [python] converting int to string?

2001-01-08 Thread Jonothan Farr

 in python you can do:

 str(int)

 and in zope you do it like

 _.str(int)

 You can also use the short form in both Zope and Python:

 `int`

 Two of those funny `` characters surrounding what you want converted to a
 string.

The backtick notation `` is actually the shorthand for repr(), not str(). In the
case of ints this will give you the same result but not in all cases. I second
Jens's recommendation. _Learning Python_ is a great book.

--jfarr



___
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] [python] converting int to string?

2001-01-08 Thread Jonothan Farr

  in python you can do:
 
  str(int)
 
  and in zope you do it like
 
  _.str(int)
 
  You can also use the short form in both Zope and Python:
 
  `int`
 
  Two of those funny `` characters surrounding what you want converted to a
  string.

 The backtick notation `` is actually the shorthand for repr(), not str(). In
the
 case of ints this will give you the same result but not in all cases. I second
 Jens's recommendation. _Learning Python_ is a great book.


Oops. Please pardon the ambiguity. I meant, "in the case of ints... but not in
the case of some other types of objects."

--jfarr



___
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] Caching/http-acceleration and proxying Zope-served content

2001-01-08 Thread sean . upton

I have a question, for anyone experienced in working with Zope and caching
proxies:

I'm setting up a load-balanced server farm that has nodes that will run
Apache and proxy (via mod_proxy) to ZEO clients running ZServer.  This farm
is routed (both ways) through a layer 4 load-balancing appliance, and all
these boxes (both nodes and the balancer) are sitting inside a DMZ with
private IP addresses.  The public world will access these servers via a
firewall box running transparent proxy (actually, I guess, similar to
squid's http_accel mode; the semantics here are a bit tricky, as it's more
of a inverse trans-proxy).  Between Apache and Zope, there would be several
virtual hosts, and I'd be using the SiteAccess product.  It gets a bit
tricky in that I need to access several different virtual hosts inside the
DMZ (one for the ZEO farm, and another for a dedicated CGI-based ad server
on another box) via the proxy.  A more detailed (ascii art) diagram of what
I am trying to do, is at http://209.132.8.98/server_ascii_art.txt

My question is this: does anybody have any thoughts on the merits of Squid
(http accelerator mode) versus Apache/mod_proxy in terms of caching, virtual
hosts, and the like when working with Zope sites?  Any big pitfalls to this
kind of setup with Zope sites?

Also, somewhat related, is: if anybody knows if Squid can even handle
multiple virtual hosts running on different boxes?  Or is squid not suitable
for an inverse-proxy running on the border of a DMZ containing more that a
single host?

I'd really appreciate anyone's thoughts.  Once I get this thing working,
I'll likely end up writing a howto regarding how I did it, as this seems
like a useful setup for a high-volume, heterogeneous (not ideal, but
reality), production media site running Zope (and other legacy CGI apps /
static content as well)...

Much thanks in advance,
Sean

=
Sean Upton
Senior Programmer/Analyst
SignOnSanDiego.com
The San Diego Union-Tribune
619.718.5241
[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 )




Re: [Zope] Caching/http-acceleration and proxying Zope-served content

2001-01-08 Thread Shane Hathaway

[EMAIL PROTECTED] wrote:
 
 I have a question, for anyone experienced in working with Zope and caching
 proxies:
 
 I'm setting up a load-balanced server farm that has nodes that will run
 Apache and proxy (via mod_proxy) to ZEO clients running ZServer.  This farm
 is routed (both ways) through a layer 4 load-balancing appliance, and all
 these boxes (both nodes and the balancer) are sitting inside a DMZ with
 private IP addresses.  The public world will access these servers via a
 firewall box running transparent proxy (actually, I guess, similar to
 squid's http_accel mode; the semantics here are a bit tricky, as it's more
 of a inverse trans-proxy).  Between Apache and Zope, there would be several
 virtual hosts, and I'd be using the SiteAccess product.  It gets a bit
 tricky in that I need to access several different virtual hosts inside the
 DMZ (one for the ZEO farm, and another for a dedicated CGI-based ad server
 on another box) via the proxy.  A more detailed (ascii art) diagram of what
 I am trying to do, is at http://209.132.8.98/server_ascii_art.txt
 
 My question is this: does anybody have any thoughts on the merits of Squid
 (http accelerator mode) versus Apache/mod_proxy in terms of caching, virtual
 hosts, and the like when working with Zope sites?  Any big pitfalls to this
 kind of setup with Zope sites?

I would prefer Squid since its only purpose in life is caching.  It
follows the "do one thing and do it well" mantra.

But whatever your choice, I hope you make use of the new CacheManagement
feature in Zope 2.3.  It is designed to make things like this
straightforward and easy.  There's a recent news announcement that links
to everything you need--including complete help docs!

Shane

___
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] EMarket 0.1.04b1

2001-01-08 Thread James Sintz

Perhaps I'm missing something fundamental, but I can't seem to figure out
how to add products to EMarket 0.1.04b1 running on Zope 2.2.2

Everything installed just fine and I can add an EMarket object, but I don't
see where, or how I go about adding things to sell. I don't care about the
auction features, I just want to sell a handful of products on my site. 

When I go to the MarketItems folder, and try submitting an item using the
ShopperMarketItemAddForm it returns a screen saying "You must be validated
for submission first...". I am logged in as a manager. If I log out and then
register a new user and then try I'm told I don't have permission to add a
new MarketItem. What gives?
The read me doesn't provide much insight on what I am doing wrong. Are there
zClasses I need to add or templates I need to create before the thing will
work? 
Thanks!!
Jamey

___
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: EMarket 0.1.04b1

2001-01-08 Thread Steve Spicklemire


Sorry.. it's my fault for not providing better docs.. sadly
it's not been something I've had time for... esp since all the 
ZPatterns changes were added.

1) Create ZClasses for your MarketItems, Baskets, BasketItems and Shoppers
  (be sure to subclass from ZPatterns:DataSkin)

2) In the Racks for each of these Specialists set the storage to the
   appropriate ZClass.

3) There is a very simple marketItem management interface in the
   marketItems specialist that you should modify to suit your taste.
   It should be enough to get you going.

When I get some time... dunno when... I'll try to make a more complete
example for folks.

-steve
 "James" == James Sintz [EMAIL PROTECTED] writes:

James Perhaps I'm missing something fundamental, but I can't seem
James to figure out how to add products to EMarket 0.1.04b1
James running on Zope 2.2.2

James Everything installed just fine and I can add an EMarket
James object, but I don't see where, or how I go about adding
James things to sell. I don't care about the auction features, I
James just want to sell a handful of products on my site.

James When I go to the MarketItems folder, and try submitting an
James item using the ShopperMarketItemAddForm it returns a screen
James saying "You must be validated for submission first...". I
James am logged in as a manager. If I log out and then register a
James new user and then try I'm told I don't have permission to
James add a new MarketItem. What gives?  The read me doesn't
James provide much insight on what I am doing wrong. Are there
James zClasses I need to add or templates I need to create before
James the thing will work?  Thanks!!  Jamey


___
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 escape quotation mark in dtml script?

2001-01-08 Thread Dieter Maurer

Dirksen writes:
  dtml-call "REQUEST.set('a', '\"b\"')" won't work! Please help.
You can use the "octal escape sequence" for any character.
For " it is \042.

Thus,
   dtml-call "REQUEST.set('a', '\042b\042')"
will work.



Dieter

___
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: Leaking Oracle connections processes

2001-01-08 Thread Dieter Maurer

Shai Berger writes:
  Do you have a DCOracle version later than 1.3.2?
No, we use DCOracle 1.3.2

  We use 1.3.2; we have increased the cache from 400 (the default) to
  1000, to no avail. Our ZODB size, last I checked, was ~40M. I 
  remember you mentioning that yours was less then 10M, I think; how
  much cache do you use?
I have to check at work,
but I think it was about 10 % of the objects in the ZODB
with the time set to 30 minutes.

   We do know what caused our zombie processes:
   a bug in the Oracle Java runtime library:
   ...
  Zope starts Oracle processes from Java???
No, it does not.
Apparently, your Zombie processes have a different cause
then ours.
Our Zombies have not been Zope children but Oracle children,
spawned by Oracle stored procedures implemented in Java.

Sorry, if I responded to a message in a thread without
a clear understanding of the basic problem.


Dieter

___
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] Caching/http-acceleration and proxying Zope-served con tent

2001-01-08 Thread sean . upton

Hmm.  That's been my thought on squid as well, given its ground-up design
for caching in the first place.  My worry, though, is that with squid I lose
support for virtual hosts on seperate boxes, because I need to support Zope,
static content, and some legacy stuff running ColdFusion on an NT box.  My
impression is that Squid's http accelerator mode (inverse transparent proxy,
or whatever you want to call it) is somewhat of an afterthought compared to
the standard proxy use case.  If it supports the ability to direct traffic
based upon the virtual host address, then squid works - if not, I think I
have to go the Apache route... I also wonder just how good Apache's
mod_proxy caching is?  Any thoughts?

Sean

-Original Message-
From: Shane Hathaway [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 08, 2001 12:59 PM
To: [EMAIL PROTECTED]
Subject: Re: [Zope] Caching/http-acceleration and proxying Zope-served
content


[EMAIL PROTECTED] wrote:
 
 I have a question, for anyone experienced in working with Zope and caching
 proxies:
 
 I'm setting up a load-balanced server farm that has nodes that will run
 Apache and proxy (via mod_proxy) to ZEO clients running ZServer.  This
farm
 is routed (both ways) through a layer 4 load-balancing appliance, and all
 these boxes (both nodes and the balancer) are sitting inside a DMZ with
 private IP addresses.  The public world will access these servers via a
 firewall box running transparent proxy (actually, I guess, similar to
 squid's http_accel mode; the semantics here are a bit tricky, as it's more
 of a inverse trans-proxy).  Between Apache and Zope, there would be
several
 virtual hosts, and I'd be using the SiteAccess product.  It gets a bit
 tricky in that I need to access several different virtual hosts inside the
 DMZ (one for the ZEO farm, and another for a dedicated CGI-based ad server
 on another box) via the proxy.  A more detailed (ascii art) diagram of
what
 I am trying to do, is at http://209.132.8.98/server_ascii_art.txt
 
 My question is this: does anybody have any thoughts on the merits of Squid
 (http accelerator mode) versus Apache/mod_proxy in terms of caching,
virtual
 hosts, and the like when working with Zope sites?  Any big pitfalls to
this
 kind of setup with Zope sites?

I would prefer Squid since its only purpose in life is caching.  It
follows the "do one thing and do it well" mantra.

But whatever your choice, I hope you make use of the new CacheManagement
feature in Zope 2.3.  It is designed to make things like this
straightforward and easy.  There's a recent news announcement that links
to everything you need--including complete help docs!

Shane

___
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[2]: [Zope] RSS and JavaScript

2001-01-08 Thread John Morton

On 8 Jan 2001 08:22:15 -0800 LARRY CHUON [EMAIL PROTECTED] wrote:

 Hi all,
 
 Thank you John for your quick reply to my previous email.  I've tried
 out both of your suggestions below.  It still does work.  I might have
 done something incorrectly as I am very new to these stuffs.  Here are
 the steps that I've taken:

I can't really tell you off the top of my head whether the javascript you
are using is correct - it could be that that is causing the problem.

 1) I create a file called openMe_js with JavaScript function. Then, I
 add it to the same dir as htmlPreview.  The function looks something like:

 script language="javascript"
 !--
 function openMe(URL){
 window.open(URL,"","toolbar,status,resizable,menubar");
 }
 //--
 /script

This bit looks ok.
 
 BTW, I've put this code directly in htmlPreview.

Right. Then you won't need to do any of the other steps. I expect the
problem is with the javascript itself. 

John




___
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: [Zope-dev] filename extensionboundary=------------865D189079029FB9A426EFA9boundary=------------865D189079029FB9A426EFA9

2001-01-08 Thread Dieter Maurer

Olaf Zanger writes:
  Dies ist eine mehrteilige Nachricht im MIME-Format.
  --865D189079029FB9A426EFA9
  Content-Type: text/plain; charset=us-ascii
  Content-Transfer-Encoding: 7bit
Please do not post MIME messages!

  expr="fac_browse_method.sql(id=10)" zope gernerates an error.
   dtml-in expr="_.getitem('fac_browse_method.sql')(id=10)"

It is an FAQ. You would have found the answer in the searchable
list archive, too.


Dieter

___
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] String problem with ZClassReverse

2001-01-08 Thread Philipp Auersperg

Hi!

it seems that you have problems to access the server-sided part of ZClassReverse (I 
know I have to refine the error messages)

Check out if you can correctly access the server-sided part of ZclassReverse, point 
your 
browser to the following (of course fill in your specific host,port and product):

http://yourserver:8080/zclassInfo/getClassInfos?product=QSurvey

If you see a long python dict containing the classdata, then it works, otherwise check 
if:
0. you have copied zclassInfo.py to your Zope's /Extensions directory
1. you have imported zclassInfo.zexp into the root folder of your ZODB
   you can check this, if in your ZopeRoot exists a folder called zclassInfo with 
three external methods declared

let me know if it helped

regards
phil

*** REPLY SEPARATOR  ***

On 08.01.2001 at 12:29 peter bengtson wrote:

I try to use zclassReverse 1.1.1, but when I am asked for details of the
Zclass this error (below) occurs almost instantly. This happens with all
ZClasses I have tried.
Zope 2.2.2 on WinNT.
Ideas? I have not been able to see any diagrams yet.

Regards, Peter

From the JPython (1.0.3) command line in ObjectDomain Evaluation 3.00.002:

 execfile('C:/Program Files/domain30/python/scripts/zclassReverse.py')
starting ZClass reverse engineering dialog...
 Error: ('invalid syntax', ('string', 1, 1,
'HTMLHEADTITLEZope/TITLE/HEADBODY BGCOLOR="#FF"'))



*** REPLY SEPARATOR  ***

On 08.01.2001 at 12:29 peter bengtson wrote:

I try to use zclassReverse 1.1.1, but when I am asked for details of the
Zclass this error (below) occurs almost instantly. This happens with all
ZClasses I have tried.
Zope 2.2.2 on WinNT.
Ideas? I have not been able to see any diagrams yet.

Regards, Peter

From the JPython (1.0.3) command line in ObjectDomain Evaluation 3.00.002:

 execfile('C:/Program Files/domain30/python/scripts/zclassReverse.py')
starting ZClass reverse engineering dialog...
 Error: ('invalid syntax', ('string', 1, 1,
'HTMLHEADTITLEZope/TITLE/HEADBODY BGCOLOR="#FF"'))


___
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] [Newbie] Can Zope ...

2001-01-08 Thread Smith Ray

[Note: I assume posts can't be made using the egroups web post form?
I see the note that it is a remote list, but if posts never work
maybe a note specifically stating it is an archive only should be
displayed?]


Hi,

Yesterday I saw a demo of an Intranet package a company wants the company 
I work for to resell.  It looks like a nice little package but very 
expensive for the functionality available.

I'm sure Zope can be setup to do everything this can do but I want to ask 
how difficult it would be to create myself and if any current packages 
exist that have the same or similar functionality.

The features (or limitations) of the package I saw are:

* Runs on Windows NT/2000 only. (Zope can + many others)

* Uses MS IIS only (I believe Zope can use IIS + built in web server + 
others)

* Uses MS SQL Server (I believe Zope can + built in DB + others)

* Allows non technical people to create content plus add users / managers
etc without any HTML knowledge or knowledge outside of the package. 

* Has good security system allowing users to belong to groups which
"may" have different content. Also managers have profiles allowing
the restriction of content and actions performed.

* Has a news module with multiple classes of news.

* Has a basic calendar system.

* Has a basic messaging system.

* Has a basic knowledge base ... allows free format text to be entered 
and later searched. 

* Allows external documents to be loaded associated with a group where 
keywords can be manually entered. 
These documents can then be opened or downloaded if users have correct
permissions.

* Basically all content added can be added to specific groups, and if
you don't have access that that group you don't have access to that
content.

There are probably a few things I missed but you get the idea.

The cost thrown up in the air was in the order of $AUS20,000 for a 
3 year rental, per site (At the moment that is about $US35,000)
When you start talking dozens of sites you quickly start looking
for alternatives!

My initial thought was Zope, I knew it existed and assumed with
a good design and few months work a could produce similar results
with a fraction of the costs.

Okay, sorry for the long email ... my questions ...

Are there any "Intranet" type packages which have similar 
functionality to what I have quickly described?

If I had to build something like this myself would Zope be the tool 
of choice? (I'm assuming it would be since I'm on a Zope list!)

How long (rough estimate) would something like this take to develop 
for a Zope newbie?
(Assume say 10 viewable screens and 10-20 maintenance screens with 
5-30 fields per screen.  I have programming (Cobol, VB, etc), HTML, 
DB and analysis experience)

Thanks for reading so far and thanks for any responses.

Ray Smith




___
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] How to set proxy roles in dtml method?

2001-01-08 Thread Dirksen

dtml-call "myMethod.manage_proxy('Manager')" only ends in this error:

You are not authorized to change myMethod because you do not have proxy roles. 

even though I'm calling the above statement in Manager role. Is it possible to do that?

Dirksen

__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.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 )




RE: [Zope] Re: EMarket 0.1.04b1

2001-01-08 Thread James Sintz

Do I need to have ZPatterns installed to use Emarket 0.1.04b1? I thought
Zpatterns was only needed for EMarket 0.2.

Jamey


-Original Message-
From: Steve Spicklemire
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: 1/8/2001 4:25 PM
Subject: [Zope] Re: EMarket 0.1.04b1


Sorry.. it's my fault for not providing better docs.. sadly
it's not been something I've had time for... esp since all the 
ZPatterns changes were added.

1) Create ZClasses for your MarketItems, Baskets, BasketItems and
Shoppers
  (be sure to subclass from ZPatterns:DataSkin)

2) In the Racks for each of these Specialists set the storage to the
   appropriate ZClass.

3) There is a very simple marketItem management interface in the
   marketItems specialist that you should modify to suit your taste.
   It should be enough to get you going.

When I get some time... dunno when... I'll try to make a more complete
example for folks.

-steve
 "James" == James Sintz [EMAIL PROTECTED] writes:

James Perhaps I'm missing something fundamental, but I can't seem
James to figure out how to add products to EMarket 0.1.04b1
James running on Zope 2.2.2

James Everything installed just fine and I can add an EMarket
James object, but I don't see where, or how I go about adding
James things to sell. I don't care about the auction features, I
James just want to sell a handful of products on my site.

James When I go to the MarketItems folder, and try submitting an
James item using the ShopperMarketItemAddForm it returns a screen
James saying "You must be validated for submission first...". I
James am logged in as a manager. If I log out and then register a
James new user and then try I'm told I don't have permission to
James add a new MarketItem. What gives?  The read me doesn't
James provide much insight on what I am doing wrong. Are there
James zClasses I need to add or templates I need to create before
James the thing will work?  Thanks!!  Jamey


___
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] Re: EMarket 0.1.04b1

2001-01-08 Thread Steve Spicklemire


Hi Jamey,

   Sorry.. you're right. I haven't used 0.1.x in quite a while.

Have you tried just using the administrative interface 
to add a MarketItem in the marketItems folder? 

-steve

 "James" == James Sintz [EMAIL PROTECTED] writes:

James Do I need to have ZPatterns installed to use Emarket
James 0.1.04b1? I thought Zpatterns was only needed for EMarket
James 0.2.

James Jamey


James -Original Message- From: Steve Spicklemire To:
James [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
James Sent: 1/8/2001 4:25 PM Subject: [Zope] Re: EMarket 0.1.04b1


James Sorry.. it's my fault for not providing better docs.. sadly
James it's not been something I've had time for... esp since all
James the ZPatterns changes were added.

James 1) Create ZClasses for your MarketItems, Baskets,
James BasketItems and Shoppers (be sure to subclass from
James ZPatterns:DataSkin)

James 2) In the Racks for each of these Specialists set the
James storage to the appropriate ZClass.

James 3) There is a very simple marketItem management interface
James in the marketItems specialist that you should modify to
James suit your taste.  It should be enough to get you going.

James When I get some time... dunno when... I'll try to make a
James more complete example for folks.

James -steve
 "James" == James Sintz [EMAIL PROTECTED] writes:

James Perhaps I'm missing something fundamental, but I can't seem
James to figure out how to add products to EMarket 0.1.04b1
James running on Zope 2.2.2

James Everything installed just fine and I can add an EMarket
James object, but I don't see where, or how I go about adding
James things to sell. I don't care about the auction features, I
James just want to sell a handful of products on my site.

James When I go to the MarketItems folder, and try submitting an
James item using the ShopperMarketItemAddForm it returns a screen
James saying "You must be validated for submission first...". I
James am logged in as a manager. If I log out and then register a
James new user and then try I'm told I don't have permission to
James add a new MarketItem. What gives?  The read me doesn't
James provide much insight on what I am doing wrong. Are there
James zClasses I need to add or templates I need to create before
James the thing will work?  Thanks!!  Jamey


James ___ Zope
James maillist - [EMAIL PROTECTED]
James http://lists.zope.org/mailman/listinfo/zope ** No cross
James posts or HTML encoding!  ** (Related lists -
James http://lists.zope.org/mailman/listinfo/zope-announce
James 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] How to retrieve the selection list

2001-01-08 Thread Angietel



The following is my selection list, where should i 
put the dtml-var custcountry in order to display the selected 
result.

select name="custcountry" size="1" tabindex="9" 
style="HEIGHT: 22px; WIDTH: 
293px" 
option value="."selectedPlease select a 
country/option

option 
value="Australia"Australia/optionoption 
value="Cambodia"Cambodia/optionoption 
value="Canada"Canada/optionoption 
value="China"China/optionoption 
value="Colombia"Colombia/optionoption 
value="Denmark"Denmark/optionoption 
value="France"France/optionoption 
value="Germany"Germany/optionoption 
value="Greece"Greece/optionoption 
value="Greenland"Greenland/optionoption value="Hong Kong 
S.A.R."Hong Kong S.A.R./optionoption 
value="Iceland"Iceland/optionoption 
value="India"India/optionoption 
value="Indonesia"Indonesia/optionoption 
value="Italy"Italy/optionoption 
value="Japan"Japan/optionoption 
value="Korea"Korea/optionoption value="Korea, 
North"Korea, North /optionoption value="Macau 
S.A.R."Macau S.A.R./optionoption 
value="Malaysia"Malaysia/optionoption value="United 
Kingdom"United Kingdom/optionoption value="United 
States"United 
States/option/select
Thank You!


Re: [Zope] How to retrieve the selection list

2001-01-08 Thread Curtis Maloney

On Tuesday 09 January 2001 16:01, Angietel wrote:

  The following is my selection list, where should i put the dtml-var
 custcountry in order to display the selected result.


Ooh... this one hurts.. (o8

You have to put "SELECTED" on the 'option' tag you want to be default.
This means iterating over your list with something like:

dtml-in CountryList
  option dtml-if "_['sequence-item']==custcountry" SELECTED/dtml-if 
value="dtml-var sequence-item"dtml-var sequence-item
/dtml-in

If you don't already have the country list in an object somewhere, I 
recommend adding a "lines" type property to either that object, or an 
appropriate folder, and put them in there.


And remember... if "custcountry" doesn't exist.. this will break... do 
putting a:

dtml-unless custcountry
  dtml-call "REQUEST.set('custcountry',' ')"
/dtml-unless

at the top of the page won't hurt.

 select name="custcountry" size="1" tabindex="9" style="HEIGHT: 22px;
 WIDTH: 293px"

 option value="."selectedPlease select a country/option

 option value="Australia"Australia/option
 option value="Cambodia"Cambodia/option
 option value="Canada"Canada/option

8 *snip* 8

 /select

 Thank You!


Have a better one,
Curtis Maloney.

___
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] (no subject)

2001-01-08 Thread sdkcsd

GET YOUR OWN 100 MEG WEBSITE FOR ONLY $11.95 PER MONTH TODAY!

STOP PAYING $19.95 or more TODAY for your web site, WHEN YOU CAN 
GET ONE FOR ONLY $11.95 PER MONTH!

DO YOU ALREADY HAVE A WEBSITE? ALL YOU HAVE TO DO IS TRANSFER THE 
DOMAIN TO OUR SERVERS AND UPLOAD YOUR DATA AND YOU ARE READY TO 
GO! YOUR NEW WEB SPACE CAN BE CREATED INSTANTLY WITH JUST A 
SIMPLE PHONE CALL TO  OUR OFFICE.

YOU CAN CHANGE THE DESIGN OF YOUR SITE AS MUCH AS YOU WANT with 
no extra charge!  UNLIMITED TRAFFIC -- no extra charge!

FRONT PAGE EXTENSIONS are FULLY SUPPORTED.

A SET UP FEE OF $40.00 APPLIES for FIRST TIME CUSTOMERS.

ALL FEES PREPAID IN ADVANCE FOR THE YEAR PLUS A $40.00 SET UP 
CHARGE.

FOR DETAILS CALL 1 888 248 0765  if you are outside the USA,
please fax 240 337 8325

Webhosting International

 
 
 
 
 
 
 

___
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 retrieve the selection list

2001-01-08 Thread Diny van der Donk

At 13:01 9-1-01 +0800, Angietel wrote:
The following is my selection list, where should i put the dtml-var
custcountry in order to display the selected result.
  
You don't have to, as soon as one option is selected you're variable
custcountry gets the value from option value="Canada" and the text
between option value="Canada" and /option is being displayed.

option value="Canada"Canada/option
^ ^

If you have you're countries in a database you can let sql generate an
option list in stead of typing all the options. Something like this:

select name="custcountry"
  dtml-in "select_country(REQUEST)"
  option value='dtml-var country_field'dtml-var country_field/option
  /dtml-in
/select

Where select_country is a sql-method like:

select
country_field
from COUNTRY

Regards,

Diny


select name="custcountry" size="1" tabindex="9" style="HEIGHT: 22px;
WIDTH: 293px"

option value="."selectedPlease select a country/option
  
option value="Australia"Australia/option
option value="Cambodia"Cambodia/option
option value="Canada"Canada/option
option value="China"China/option
option value="Colombia"Colombia/option
[...]
option value="United States"United States/option
/select
Thank You!



DIVA, Faculty of Veterinary Medicine
Utrecht University,  The Netherlands
http://www.vet.uu.nl 

___
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] Can Zope ...

2001-01-08 Thread Olaf Zanger

hi there

Smith Ray schrieb:
 * Runs on Windows NT/2000 only. (Zope can + many others)
yes

 
 * Uses MS IIS only (I believe Zope can use IIS + built in web server +
 others)
apache, zserver, iis

 
 * Uses MS SQL Server (I believe Zope can + built in DB + others)
zope with mysql, postgresql, informix, ...

 
 * Allows non technical people to create content plus add users / managers
 etc without any HTML knowledge or knowledge outside of the package.
product: IEMethod
wysiwyg even in internet explorer. 
really great! check it out

 
 * Has good security system allowing users to belong to groups which
 "may" have different content. Also managers have profiles allowing
 the restriction of content and actions performed.
no problem

 
 * Has a news module with multiple classes of news.
products: ZDocumentStore, ...

 
 * Has a basic calendar system.
products: EventFolder (very powerfull), EvTracker (very simple)

 
 * Has a basic messaging system.
 
 * Has a basic knowledge base ... allows free format text to be entered
 and later searched.
"Catalog"

 
 * Allows external documents to be loaded associated with a group where
 keywords can be manually entered.
 These documents can then be opened or downloaded if users have correct
 permissions.
easy to realize i assume

 
 * Basically all content added can be added to specific groups, and if
 you don't have access that that group you don't have access to that
 content.
right (roles, users, acl-user-folders)

 
 There are probably a few things I missed but you get the idea.
 
 The cost thrown up in the air was in the order of $AUS20,000 for a
 3 year rental, per site (At the moment that is about $US35,000)
 When you start talking dozens of sites you quickly start looking
 for alternatives!
they must be jokeing

 
 My initial thought was Zope, I knew it existed and assumed with
 a good design and few months work a could produce similar results
 with a fraction of the costs.
 
 Okay, sorry for the long email ... my questions ...
 
 Are there any "Intranet" type packages which have similar
 functionality to what I have quickly described?
just go create it, 4 weeks and you know how it goes.

 
 If I had to build something like this myself would Zope be the tool
 of choice? (I'm assuming it would be since I'm on a Zope list!)
absolutely

 
 How long (rough estimate) would something like this take to develop
 for a Zope newbie?
 (Assume say 10 viewable screens and 10-20 maintenance screens with
 5-30 fields per screen.  I have programming (Cobol, VB, etc), HTML,
 DB and analysis experience)
about 3 months to make it decent

olaf
-- 
soli-con Engineering Zanger
Dipl.-Ing. (FH) Olaf Marc Zanger
Lorrainestrasse 23
3013 Bern / Switzerland
Fon: +41-31-332 9782
Mob: +41-76-572 9782
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
http://www.soli-con.com

begin:vcard 
n:Zanger;Olaf Marc
tel;cell:+41-76-572 9782
tel;work:+41-31-332 9782
x-mozilla-html:FALSE
url:www.soli-con.com
org:soli-con Engineering Zanger
adr:;;Lorrainestrasse 23;Bern;BE;3013;Switzerland
version:2.1
email;internet:[EMAIL PROTECTED]
title:Dipl.-Ing.
note;quoted-printable:IT-Consulting=0D=0AEmbedded Systems=0D=0AEnergy Systems=0D=0AOpen Source Solutions=0D=0A
x-mozilla-cpt:;-32176
fn:Olaf Zanger
end:vcard