Re: [Zope-dev] License issues

2000-11-14 Thread Chris Withers

Juan David IbXXez Palomar wrote:
 
 software, but I know there's people that don't use Zope because of this
 incompatibility.

their loss...

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] License issues

2000-11-14 Thread Chris Withers

Juan David IbXXez Palomar wrote:
 
 And more, there's already zope software with the GPL license, for
 example ZWiki. ZWiki is included in Debian, probably the Debian
 developer that maintains the package is not aware of these license
 issues.

Has any open source license issue actually come to court yet?

How many people really care about this compared to the number of people
who just want to get on, develop and use software in an open source
community fashion and don't want to get involved in religious flame
wars?

My $0.02

Chris (who doesn't really bother about license issues and hasn't been
hurt by it yet...)

___
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] License issues

2000-11-14 Thread Juan David Ibáñez Palomar

 
 Has any open source license issue actually come to court yet?
 
 How many people really care about this compared to the number of people
 who just want to get on, develop and use software in an open source
 community fashion and don't want to get involved in religious flame
 wars?
 
 My $0.02
 
 Chris (who doesn't really bother about license issues and hasn't been
 hurt by it yet...)
 
 

this is not about religion and a flame war is the last thing I want

I only wanted to let you know about these facts, and yes there're
projects that have been hurt by "license issues", for example KDE.


regards,
jdavid (who has bet for Zope and is worried about its future)

___
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] License issues

2000-11-14 Thread Christopher Petrilli


 this is not about religion and a flame war is the last thing I want

 I only wanted to let you know about these facts, and yes there're
 projects that have been hurt by "license issues", for example KDE.

Regaurding licensing, twhile I wouldn't want to snuff out freedom of speech,
I would say that we have already had the "Licensing Wars" about 18 months
ago, and things are settled and non negotiable at this point.  Arguing only
creates tension in the community, which does more damage than good.  If
people choose not to use Zope because it doesn't have a GPL-style license,
that is their freedom and we are sorry to see them leave the community, but
it is impossible to please all of the people all of the time, and the ZPL
pleases most of the people most of the time---including our investors.

No speaking for Digital Creations! ;-)

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] License issues

2000-11-14 Thread Juan David Ibáñez Palomar

 
 
 
 Regaurding licensing, twhile I wouldn't want to snuff out freedom of speech,
 I would say that we have already had the "Licensing Wars" about 18 months
 ago, and things are settled and non negotiable at this point.  Arguing only
 creates tension in the community, which does more damage than good.  If
 people choose not to use Zope because it doesn't have a GPL-style license,
 that is their freedom and we are sorry to see them leave the community, but
 it is impossible to please all of the people all of the time, and the ZPL
 pleases most of the people most of the time---including our investors.
 
 No speaking for Digital Creations! ;-)
 
 Chris
 
 

I didn't know it had already been discussed, I wasn't here 18 months ago,
so that's all, thanks for your patience.


regards,
jdavid

___
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] Adding execute() to Zope DA's for use by External methods

2000-11-14 Thread Brad Clements

I have Python code that I use outside of Zope, and inside Zope via 
external methods. This code uses database adapters (anything version 
1 or later).

When my code is used within Zope, I have in the past had two database 
connections from within the Zope process. One connection is the actual 
Zope DA (I'm using gvib) and the other is a python db connection.

This has worked okay on Windows, but I'm getting strange lockup 
problems after moving to Linux.

In any case, it seems to me the better way to do this would be to allow 
external methods to get  db-like access to a zope DA.

Most Zope DA's are built in db-sig type db connectors, so it seems like 
a relatively simple matter to define a new interface for Zope DA's to 
make available that supports execute semantics.

The big issue in my mind is determining what kind of security needs to 
be applied to such a function, and how that security would be 
implemented.

I suppose stealing roles/rights from SQL_Methods for use here makes 
sense. If you can call an SQL method, you can call execute() directly.

Is there any support from the Zope community to add execute() like 
operations to Zope DA's?

If yes, where should I start in figuring out security for this.

And finally, how does an external method pass security information 
"back" to the DA?

For example, I tried passing my Gvib instance to an external method. 
But when that method called  the gvib instance to get a connection 
instance, it got a "no __call__ method" error.

So then I tried passing the connection from dtml,
ie
dtml-var "MyMethod(db=MyInterbaseConnection())"

but when MyMethod calls db.cursor() it gets a security error. Probably 
because this function isn't exposed by the security machinery.

(same thing probably for the __call__ error)


Brad Clements,[EMAIL PROTECTED]   (315)268-1000
http://www.murkworks.com  (315)268-9812 Fax
netmeeting: ils://ils.murkworks.com   AOL-IM: BKClements

___
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] License issues

2000-11-14 Thread Simon Michael

Juan, thanks for shining some light towards this murky area. Maybe
ZWiki and other zope products need to be LGPL or dual-licensed, maybe
the zope license can use some refinement. I for one won't know without
seeing some enlightened discussion of the issue.

This stuff is unsexy but important.

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




[Zope-dev] Two glaring omissions

2000-11-14 Thread Alexander Limi

Hi,

I've been working with Zope for almost two years now, and there are two
things that I feel is missing in the interface:

1. The ability to add a Base class after the class is created

2. The ability to rename properties after instances of the classes have
   been created (and have the data in those fields preserved)

Are there any technical reasons why these are not present? I know it is
possible to add base classes in retrospect via the hack described in

http://www.zope.org/Members/AlexR/ChangingBaseClasses

but are there plans for making this easier? 

As for #2, it is quite annoying and counter-productive not being able to
change a variable name that was decided a long time ago, or maybe by
others simply because there exist instantiated objects of that type.

Both of the above are pretty essential OO techniques (for me, at least),
and hinder my work quite a lot by not being there.

Any chance of these being fixed at all? Or are there reasons that I do not
know about that makes this impossible?


Regards,

-- 
Alexander Limi
[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] Two glaring omissions

2000-11-14 Thread Andy McKay

Of course all those points can be done in python, im assuming you are
talking about ZClasses.

--
  Andy McKay, Developer.
  ActiveState.
- Original Message -
From: "Alexander Limi" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 14, 2000 11:35 AM
Subject: [Zope-dev] Two glaring omissions


 Hi,

 I've been working with Zope for almost two years now, and there are two
 things that I feel is missing in the interface:

 1. The ability to add a Base class after the class is created

 2. The ability to rename properties after instances of the classes have
been created (and have the data in those fields preserved)

 Are there any technical reasons why these are not present? I know it is
 possible to add base classes in retrospect via the hack described in

 http://www.zope.org/Members/AlexR/ChangingBaseClasses

 but are there plans for making this easier?

 As for #2, it is quite annoying and counter-productive not being able to
 change a variable name that was decided a long time ago, or maybe by
 others simply because there exist instantiated objects of that type.

 Both of the above are pretty essential OO techniques (for me, at least),
 and hinder my work quite a lot by not being there.

 Any chance of these being fixed at all? Or are there reasons that I do not
 know about that makes this impossible?


 Regards,

 --
 Alexander Limi
 [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 )



___
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] Two glaring omissions

2000-11-14 Thread Shane Hathaway

Alexander Limi wrote:
 I've been working with Zope for almost two years now, and there are two
 things that I feel is missing in the interface:
 
 1. The ability to add a Base class after the class is created

This is a feature we'd like to have, but the way ZClasses work currently
makes it dangerous.  What gets pickled in the ZODB isn't information
about the class, it's the class itself.  In order to change bases
safely, you'd have to try to reverse-engineer the original parameters
for creating the class object as well as all changes made afterward,
then modify the parameters slightly and construct a new class.  That's
what the published hack essentially does.

Another pitfall of storing the class itself in the ZODB is that if any
of the bases disappear, the ZClass can no longer be loaded.

If these two issues are important enough, we have a good reason to
consider a new kind of ZClass.  With "lightweight" ZClasses, class data
would be stored in a meta-class object.  The meta-class would construct
the class instance.  Changes bases and failing gracefully when a base
disappears should be easy.

The part that may still be hard is getting object instances to sync up
with the ZClass immediately when the user has changed the ZClass. 
ZClasses are good at that, you see.

 2. The ability to rename properties after instances of the classes have
been created (and have the data in those fields preserved)

This is also more difficult than it sounds.  You'd have to either scan
through the entire ZODB and modify class instances or associate
properties with a magical, unchanging ID.  The latter solution is dead
wrong, but the first is actually kind of interesting.  If there were a
separate index for each object type in the ZODB, it would be possible. 
In fact, when ZODB is running from a relational database, there is
indeed a way to do that.  Hmmm...

Not that I have the time to work on these things.  I'm swamped.  Anyone
want to draft a proposal?

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] PythonMethods: Can't Slice context.REQUEST.PARENTS

2000-11-14 Thread Dieter Maurer

The Doctor What writes:
  Using context.this().id, self.this().id, m_self.this().id all get me
  the same things:
  Folder, Zope, and my method.  None give me the DTML Document
  foo_html.
If it is indeed a DTML Document, then "this()" should reference
this document. If it is a DTML Method, then "this()" will
reference the methods 'client', usually the methods parent.

  
  Did you mean to do a this().id?  That doesn't work at all, it gives
  me a Name Error.
No.
I am not yet familiar with PythonMethods and what binding
they define automatically. Obviously, you have
"context", "m_self" and "self".
My older PythonMethods installed seem to support only "self",
but I am not sure.

I would expect, that "context.this()" has the highest chance
of success, maybe "self.this()".

Note, that "foo_html" must be a DTML Document not a DTML Method!


  There *must* be a way to do this.
There is none for DTML Methods (other than modifying the code).


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] PythonMethods: Can't Slice context.REQUEST.PARENTS

2000-11-14 Thread The Doctor What

I got a reply from someone working on it.  It seems the answer is
that it doesn't exist yet, pending a change in ZOPE itself.

So I have to pass it in:
dtml-var expr="breadcrumbs(this())"

Not a big deal, but annoying.

I'll make the source available as soon as I coble together a
view-source method. :)

Ciao!

-- 
"Well, given that the universe is infinite, and that God is infinite, and that God 
created the universe, (pause) would you like a piece of toast?"
--Talkie Toaster (Red Dwarf episode: Dimension Jump)

The Doctor What: A Holtje Production http://docwhat.gerf.org/
[EMAIL PROTECTED]   KF6VNC

___
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] PythonMethods: Can't Slice context.REQUEST.PARENTS

2000-11-14 Thread Dieter Maurer

Evan Simpson writes:
  From: The Doctor What [EMAIL PROTECTED]
   Using context.this().id, self.this().id, m_self.this().id
  all get me
   the same things:
   Folder, Zope, and my method.  None give me the DTML
  Document
   foo_html.
  
   This would seem to be an important thing.
  
  The only information about your caller that you can get is
  the contents of their namespace.  So, in the final release,
  you would be able to bind the caller's namespace to "_" and
  write _.this().id.  That requires a change to Zope, though,
  so it doesn't work yet.  You *could* work around this by
  explicitly passing the namespace (or this(), for that
  matter).
Why can't I get the acquisition context as with External Methods?
(if they are called directly via the Web, namespaces are not
yet build and the acquisition context obtained via a "self"
parameter is everything I have).


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] ZPatterns Product distribution not showing up as a product?

2000-11-14 Thread jimbo

Hi,
   If I try to distribute it and leave it set for "Allow redistribution".
Its not showing up in the Zope products directory tree after I untar the 3 files into 
the file system products directory and restarting Zope.

I have a Dataskin based ZClass, 2 Specialist, the default constructor forms. I'm using 
Zope 2.2.2 on win98 ZPatterns 4.3b2.  Is this expected behaviour for a ttw product? It 
works if I export/import it.
-Jimbo

___
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] FYI: Digital Creations secures $12M round of investment

2000-11-14 Thread Tony McDonald

On 14/11/00 3:15 am, "Paul Everitt" [EMAIL PROTECTED] wrote:

 
 Hello Zope friends.  At long last we at Digital Creations are able to
 publicly say it: we've closed a $12M round of investment:
 
 http://www.digicool.com/News/CRound.html
 
 It's out on the newswire now.  We'll start pushing it out more over the next
 24 hours.
 

This is excellent news. Congratulations to all the DC troops...
--
Dr Tony McDonald,  Assistant Director, FMCC, http://www.fmcc.org.uk/
The Medical School, Newcastle University Tel: +44 191 222 5116
A Zope list for UK HE/FE  http://www.fmcc.org.uk/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 )




RE: [Zope] opinions please

2000-11-14 Thread Cornelis J. de Brabander

About webdav I don't know. In your first option it looks strange to me to
use email for your purpose. I would create a form with fields for the
attributes of the file to be uploaded an a field input type 'file'. Then I
would create a action method that essentially is a wrapper for the
'manage_addFile' method.
cb
 Subject: [Zope] opinions please


 hello,

 i am searching for opinions on a project i am considering. the
 project is to
 create a product or script to allow users to email documents into Zope as
 attachments. then the documents are to be placed in the proper folder
 according to information in the subject line of the email they rode in on.
 what i would like to know is, is this possible? if it is, how
 hard will this
 be to implement?

 the other idea was to create a client app where users can drop
 the document
 onto a desktop icon and the app uses webDAV to put it into Zope.
 would this
 be easier or harder?




___
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] Problems with Zope 2.2.2 and MS SQL Server

2000-11-14 Thread Pieter Claerhout

Hello all,

I'm having some troubles connecting Zope 2.2.2 to Microsoft SQL Server. I downloaded 
and installed the product ZODBCDA, and I was able to connect to the SQL Server. I was 
able to define the SQL methods, and when I test them, everything is successful. The 
problem is that when I use for example the dtml-in tag to iterate over the results, 
and display them in a page, I am always prompted for a password, but I can enter 
whatever password I want, I can never get through.

Does anybody has an idea of what I'm doing wrong and how I can solve it??

Thanks,


Pieter


___
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] Referecing items in subfolders

2000-11-14 Thread Pieter Claerhout

Hello all,

have a small question. Imagine you have the following folder structure in Zope:

http://testserver.pclaerhout.com/index_html
http://testserver.pclaerhout.com/resources/standard_header
http://testserver.pclaerhout.com/resources/standard_footer

How can I reference the standard_header document (which is in a subdirectory) from the 
index_html document, for example using a dtml-var standard_header?? I have the same 
question if the files in the subdirectory are for example SQL methods. I'm just 
looking for a way to separate different kinds of documents.

Kind regards,


Pieter

___
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] Referecing items in subfolders

2000-11-14 Thread Geir Bækholt


try :
dtml-with resources
dtml-var standard_header
/dtml-with

--
Geir Bækholt
web-developer/designer
[EMAIL PROTECTED]
http://www.funcom.com

on Tuesday, November 14, 2000 Pieter Claerhout wrote :
PC Hello all,
PC have a small question. Imagine you have the following folder structure in Zope:
PC http://testserver.pclaerhout.com/index_html
PC http://testserver.pclaerhout.com/resources/standard_header
PC http://testserver.pclaerhout.com/resources/standard_footer
PC How can I reference the standard_header document (which is in a subdirectory) from 
the index_html document, for example using a dtml-var standard_header?? I have the 
same question if the files
PC in the subdirectory are for example SQL methods. I'm just looking for a way to 
separate different kinds of documents.



___
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] Form variables with same name as folder names

2000-11-14 Thread Chris Withers

"Burwell, Becky " wrote:
 
 The simple answer:  use REQUEST.form['FOO']  to refer to the
 form variable.
 
 I just did an experiment and if I do the following my SQL Method:
dtml-if REQUEST.form['FOO']
 
 this is never true.

...because you're missing some " "

REQUEST.form['FOO'] is a python expression.

dtml-if REQUEST.form['FOO'] is short for dtml-var
name="REQUEST.form['FOO']"

so, unless you have a folder or document names 'REQUEST.form['FOO']', it
will return false :-S

What you want is dtml-if "REQUEST.form['FOO']", which is short for
dtml-if expr="REQUEST.form['FOO']".

This evaluates expr as a python expression...

 If I do:
 dtml-if "REQUEST.form['FOO']" or dtml-if "REQUEST.form['FOO]=='1'"
 
 I get name errors with REQUEST being unknown.

...an oddity of ZSQL methods :-( The REQUEST usually gets made available
in the namespace, but in ZSQL methods, only the parameters your specify
as 'arguments' get added to the namespace. At a guess, try adding
REQUEST to the 'Arguments' list...

good luck,

Chris

___
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] SSL and relative links (URLs)

2000-11-14 Thread Chris Withers

Dustin Engelhaupt wrote:
 
 My real problem is that when I call a zope object relatively (ex-
 href="zope_object" instead of href="zope_object.absolute_url()" or
 href="https://bla.com/zope/zope_object"), the protocol is displayed as
 http instead of https. I had this problem with absolute_url() until I
 installed SSLAbsoluteURL (shameless SSLAbsoluteURL plug). Is there
 anyway to remedy this situation with relative links?

I wonder if that's the fault of that damn base tag again?

cheers,

Chris

___
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] Referecing items in subfolders

2000-11-14 Thread Chris Withers

Sounds like you want Shane Hathaway's Transparent Folder product...

cheers,

Chris

Pieter Claerhout wrote:
 
 Hello all,
 
 have a small question. Imagine you have the following folder structure in Zope:
 
 http://testserver.pclaerhout.com/index_html
 http://testserver.pclaerhout.com/resources/standard_header
 http://testserver.pclaerhout.com/resources/standard_footer
 
 How can I reference the standard_header document (which is in a subdirectory) from 
the index_html document, for example using a dtml-var standard_header?? I have the 
same question if the files in the subdirectory are for example SQL methods. I'm just 
looking for a way to separate different kinds of documents.
 
 Kind regards,
 
 Pieter
 
 ___
 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] Referecing items in subfolders

2000-11-14 Thread Cornelis J. de Brabander

You could use:

dtml-with resources
dtml-var standard_header
/dtml-with

I would suggest, however, to reorganize your design and to put index_html in
a subfolder of a folder where standard-header and standard_footer reside and
let acquisition take care of the work.
cb


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
 Pieter Claerhout
 Sent: dinsdag 14 november 2000 10:52
 To: '[EMAIL PROTECTED]'
 Subject: [Zope] Referecing items in subfolders


 Hello all,

 have a small question. Imagine you have the following folder
 structure in Zope:

 http://testserver.pclaerhout.com/index_html
 http://testserver.pclaerhout.com/resources/standard_header
 http://testserver.pclaerhout.com/resources/standard_footer

 How can I reference the standard_header document (which is in a
 subdirectory) from the index_html document, for example using a
 dtml-var standard_header?? I have the same question if the
 files in the subdirectory are for example SQL methods. I'm just
 looking for a way to separate different kinds of documents.

 Kind regards,


 Pieter

 ___
 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] Zope and Windows DB's = NOT! ?

2000-11-14 Thread Mark Pratt

hi,

is anybody successfully using a Windows DB such as MS SQL
server 7 with Zope? 

it seems that the ODBC adaptor is ancient and very error 
prone  so can i conclude that Zope and DB integration 
under windows is not an option?

regards,

mark

--
mark pratt  (managing director) [EMAIL PROTECTED]
beehive elektronische medien GmbH   http://www.beehive.de
phone: +49 30 847-82 0  fax: +49 30 847-82 299


___
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] Authentication

2000-11-14 Thread seb bacon

This is strange: when I type 

  http://www.foo.com/roles 

as an authenticated user, Zope thinks I'm just an Anonymous user.  When I type 

  http://www.foo.com/roles/

It realises I'm authenticated.

I'm using Apache / ProxyPass on Zope 2.2.2.  Any ideas?

seb.

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




Re: [Zope] Zope and Windows DB's = NOT! ?

2000-11-14 Thread Rik Hoekstra



 hi,
 
 is anybody successfully using a Windows DB such as MS SQL
 server 7 with Zope?
 
 it seems that the ODBC adaptor is ancient and very error
 prone  so can i conclude that Zope and DB integration
 under windows is not an option?

In general, the ODBC adapter may be old, but it works well and generally
without problems in my experience. In the Zope Book it's even claimed
that it's commercially supported! The point is just that it's single
threaded. If you need to use SQL Server 7 there also is a mxODBC
adapter, that claimed to be multithreaded. I don't know about its status
right now.


Rik

___
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] Website search

2000-11-14 Thread Tiago Antão



On Mon, 13 Nov 2000, Andy McKay wrote:

andym I think installing ht://Dig is "programmer-oriented" and is not much more
andym simple... ZCatalog is your best bet and its not that complicated really, its
andym about as simple as you  are going to get. The docs should give you a fairly
andym simple explanation of how to add one.

  Is there an easy way to integrate search to non-zope sites inside
ZCatalog?

Best regards,
Tiago


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




Re: [Zope] Zope and Windows DB's = NOT! ?

2000-11-14 Thread Mark Pratt

hi rik,

On Tue, 14 Nov 2000, Rik Hoekstra wrote:

 In general, the ODBC adapter may be old, but it works well and generally
 without problems in my experience. 

wow. we've had exactly the opposite experience and judging
by my informal discussions with other Zope users at the
Systems 2000 convention in Munich -- so have others.

 In the Zope Book it's even claimed that it's commercially 
 supported! 

guess i should take a look at that book again.

 The point is just that it's single
 threaded. 

like i said ancient 

 If you need to use SQL Server 7 there also is a mxODBC
 adapter, that claimed to be multithreaded. I don't know 
 about its status right now.

this was an option we discussed at systems. this adaptor
seems to be continually improved and well supported.

regards,

mark

--
mark pratt  (managing director) [EMAIL PROTECTED]
beehive elektronische medien GmbH   http://www.beehive.de
phone: +49 30 847-82 0  fax: +49 30 847-82 299


___
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] FYI: Digital Creations secures $12M round of investment

2000-11-14 Thread J. Atwood

Congrats!

It is great to see a company that has not only pledged itself to the 
Open Source Movement but been extremely successful in doing so. Keep 
up the great work, good fight and outstanding products. Looking 
forward to seeing what else you have up your collective sleeves.

J

At 10:15 PM -0500 11/13/2000, Paul Everitt wrote:
Hello Zope friends.  At long last we at Digital Creations are able to
publicly say it: we've closed a $12M round of investment:

   http://www.digicool.com/News/CRound.html

It's out on the newswire now.  We'll start pushing it out more over the next
24 hours.


___
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] Referecing items in subfolders

2000-11-14 Thread Matt

I would have thought the dtml-with resources way was possibly a more flexible
way of organizing things such that instead of making a base product that people
duplicate and customize, all you need to do is set custom resource folders for
each person and load these into the name space of the single instance of the
product to give it a custom skin or user specific data.  It is also why most of
my base product are methods that can't hold any properties that may get
clobbered.   I tend to place headers in these user resource directories so that
they can make them as fancy as they want.  Acquisition works nicely that way.

matt



"Cornelis J. de Brabander" wrote:

 You could use:

 dtml-with resources
 dtml-var standard_header
 /dtml-with

 I would suggest, however, to reorganize your design and to put index_html in
 a subfolder of a folder where standard-header and standard_footer reside and
 let acquisition take care of the work.
 cb

  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
  Pieter Claerhout
  Sent: dinsdag 14 november 2000 10:52
  To: '[EMAIL PROTECTED]'
  Subject: [Zope] Referecing items in subfolders
 
 
  Hello all,
 
  have a small question. Imagine you have the following folder
  structure in Zope:
 
  http://testserver.pclaerhout.com/index_html
  http://testserver.pclaerhout.com/resources/standard_header
  http://testserver.pclaerhout.com/resources/standard_footer
 
  How can I reference the standard_header document (which is in a
  subdirectory) from the index_html document, for example using a
  dtml-var standard_header?? I have the same question if the
  files in the subdirectory are for example SQL methods. I'm just
  looking for a way to separate different kinds of documents.
 
  Kind regards,
 
 
  Pieter
 
  ___
  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] Referecing items in subfolders

2000-11-14 Thread Cornelis J. de Brabander

Sure, but the setup you sketch is different in design than Pieter's. He just
wanted to organize 'different kinds of documents'.
cb

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Matt
 Sent: dinsdag 14 november 2000 13:09
 To: [EMAIL PROTECTED]
 Subject: Re: [Zope] Referecing items in subfolders


 I would have thought the dtml-with resources way was possibly a
 more flexible
 way of organizing things such that instead of making a base
 product that people
 duplicate and customize, all you need to do is set custom
 resource folders for
 each person and load these into the name space of the single
 instance of the
 product to give it a custom skin or user specific data.  It is
 also why most of
 my base product are methods that can't hold any properties that may get
 clobbered.   I tend to place headers in these user resource
 directories so that
 they can make them as fancy as they want.  Acquisition works
 nicely that way.

 matt



 "Cornelis J. de Brabander" wrote:

  You could use:
 
  dtml-with resources
  dtml-var standard_header
  /dtml-with
 
  I would suggest, however, to reorganize your design and to put
 index_html in
  a subfolder of a folder where standard-header and
 standard_footer reside and
  let acquisition take care of the work.
  cb
 
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
   Pieter Claerhout
   Sent: dinsdag 14 november 2000 10:52
   To: '[EMAIL PROTECTED]'
   Subject: [Zope] Referecing items in subfolders
  
  
   Hello all,
  
   have a small question. Imagine you have the following folder
   structure in Zope:
  
   http://testserver.pclaerhout.com/index_html
   http://testserver.pclaerhout.com/resources/standard_header
   http://testserver.pclaerhout.com/resources/standard_footer
  
   How can I reference the standard_header document (which is in a
   subdirectory) from the index_html document, for example using a
   dtml-var standard_header?? I have the same question if the
   files in the subdirectory are for example SQL methods. I'm just
   looking for a way to separate different kinds of documents.
  
   Kind regards,
  
  
   Pieter
  
   ___
   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 )





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




Re: [Zope] Zope and Windows DB's = NOT! ?

2000-11-14 Thread Pavel V. Piankov

 is anybody successfully using a Windows DB such as MS SQL
 server 7 with Zope?
i`ve been using it with MS SQL6.5  1,5 year, no problem...

 it seems that the ODBC adaptor is ancient and very error
 prone  so can i conclude that Zope and DB integration
 under windows is not an option?
Hmm... are you talking about ZODBCDA 3.0.3 or ZmxODBCDA 0.0.1 ?
I`ve had some problems with ZmxODBCDA but it is only 0.0.1, younger versions
of ZODBCDA were error prone, 3.0.3 is very good.

regards.
--
Pavel
Cosmos-Mebel, JSC.
http://cosmos-mebel.spb.ru



___
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 access column names in DTML Methods

2000-11-14 Thread Jose Soares

Great!
Thank you very much Curtis.


Curtis Maloney wrote:

 On Tue, 14 Nov 2000, Jose Soares wrote:
  Hi all,
 
  I'm trying to display the column names of a Record object without success.
  I'm able to access column data using sequence-item but I don't know
  how to display column names.
 
 

 Here is some code I use in a production site:

 dtml-let Fields="sqlQuery().names()"
   dtml-in Fields
 do your loop stuff here
   /dtml-in
 /dtml-let

 I only used the dtml-let because I use the list twice... so;

 dtml-in "sqlQuery().names()"
   blah
 /dtml-in

 should work fine (not testsed.)  I believe there is some more detail in what
 exactly is in an SQL return object (try the ZQR :)

 
  Thanks for any help
  José
 

 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 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: SSL and relative links (URLs)

2000-11-14 Thread Ross Lazarus

Do a search on the zope site for ssl.

You'll find two very useful howto's - one describes the apache httpd.conf virtual host 
pixie dust using proxy and proxyrewrite
directives (you need to build apache with mod_rewrite and mod_proxy as well as 
mod_ssl) and the other has some details on
integrating the siteroot product to do the url munging in zope - be warned that the 
siteroot product can lead to some interesting
consequences if it isn't installed just right - it works a treat now but I would have 
been in serious trouble if I'd tried
installing it on a production site - get it right with a development site before 
bringing it over to your production machine
particularly if your dropping it into your zope root folder.

I just finished setting this up and found these two resources solved many problems 
before I encountered them (!) although there was
the inevitable headbanging needed to get everything just rightI ended up NOT using 
fastcgi although that was my original
intention. Right now, mod_proxy allows me to serve a zope running on another machine 
(!) through ssl.


In [EMAIL PROTECTED], Dustin Engelhaupt [EMAIL PROTECTED] wrote:
 
   I am running Zope 2.2.2 and accessing it through Apache  FastCGI. I 
   want to access some of the content through SSL and some without. What 
I 
   have done is set up 2 FastCgiExternalServer directives in Apache. One 
in 
   the non-SSL area (/non-SSL/dir/zope) and one in the SSL enabled area 
   (/SSL/dir/zope_ssl).


___
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: requests for some dtml tags

2000-11-14 Thread Jeffrey P Shell

 From: jacintha menezes  [EMAIL PROTECTED]
 
 Hi,
  Is there any dtml tags for creating a new work space also for locking
 some page.Locking some page in the sense for second user the operations in
 that page should not be processed
 unless the process for first user is completed.If there dtml tags for these
 kindly give me
 those tags.
 
 waiting for your reply.

Regarding locking:

Do you mean in the sense that if person A wants to edit a page (like a Wiki
page), person B shouldn't be able to update the page until person A clicks
"Submit changes"?  The WriteLocking project (see the Projects area on
http://dev.zope.org/) will include an API that can be called, even from DTML
(with proper permissions), to grant an exclusive write lock to a user.

If you mean you want to protect against two HTTP requests that are operating
on the same page\object from overwriting each other in process, the built in
ZODB\ZPublisher transaction handling that's been in Zope before there was
Zope takes care of this automatically.  A REQUEST-RESPONSE cycle is treated
as a single transaction.

Jeffrey P Shell, [EMAIL PROTECTED]
http://www.digicool.com/ | http://www.zope.org



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




[Zope] Re: [Fwd: [Zope] Re: Advanced search in ZCatalog (Micha)]

2000-11-14 Thread daniel dias


Hi,

Ok, I could achieve something with this approach. But
it's not clear for me how to set the ZCatalog to
create an index from the result of an external method.
Can you please explain how to achieve this?

Also, the ZCatalog queries use an "and" chain for each
token provided (eg. if a query is requested for "a b
c" it will be interpreted as "a" and "b" and "c"), and
I'd like to implement an "or" chain in the queries.

Thanks for the help,

Daniel

--- Maik Röder [EMAIL PROTECTED] wrote:  
Hi Daniel !
 
 daniel dias wrote:
  
  you've a copy of this python method to send me?
  thanks maik!
 
 Look at what Michael Kobald wrote:
 
 Regards,
 
 Maik 
 
 michael Kobald wrote:
  
  Hi,
  I played with ZCatalog and ZClasses a time ago.
  Due to the fact that ZCatalog can Index all
 Objects - You Can Index a
  Method, .!!!
  This Methods can be External-, Phython-, or
 DTML-Methods.
  But they have to return something to the catalog
 (DTML-RETURN Tag).
  You can give this method a name like
 "PrincipiaSearchSource" or what the
  hell you think of.
  
  In my case I index about 10 different ZClass, 100
 Instances of them, with a
  PythonMethod called text_inhalt (text_contents)
  Param: self
  Code
  return string.join((self.id, self.inhalt), '; ')
  
  Or in an  subclass
  return string.join((self.id, self.teaser,
 self.gericht, self.keys, self.art,
  self.norm, self.parteien), '; ')
  
  Be warned you can use a DTML Method and return
 something with the
  dtml-return tag, but this is not working very well
 within a ZCLass, !!!
  ??
  
  P.S.:
  If you want to call a resultObject (e.g. a ZClass)
 directly through
  Zope/DTML/Python use the PyMethod "fetchObj" much
 cooler than only via
  catalog.getpath (which is link /hfg/kkjk/)
  
  to do somthing like this:
  
  dtml-in mein Result from a canned search
  
  dtml-call
 

"REQUEST.set('meineURL',fetchObj(_,Catalog.getpath(_.int(_['sequence-item'])
  )))"convert /parent/child to an real object
 parent.child
  
  dtml-var meineURL  *** points to a ZClass
 [Base:Renderable] calling the
  Object/Class directly, which renders itself
  
  /dtml-in
  
  use something like this:
  
  Python Method: fetchObj
  
  Param: _,fetchStr, attr=None
  
  obj = _
  for p in string.split(fetchStr, '/'):
 obj = obj[p]
  if attr is None:
 return obj
  else:
 return render(_.getattr(obj, attr))
  
  Greetings from Heidelberg
  
  Michael Kobald
  
  ___
  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 )




Do You Yahoo!?
Crie o seu e-mail grátis do Yahoo! Mail com 6 Megabytes livres!
http://mail.yahoo.com.br

___
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: [Fwd: [Zope] Re: Advanced search in ZCatalog (Micha)]

2000-11-14 Thread daniel dias


Hi,

Ok, I could achieve something with this approach. But
it's not clear for me how to set the ZCatalog to
create an index from the result of an external method.
Can you please explain how to achieve this?

Also, the ZCatalog queries use an "and" chain for each
token provided (eg. if a query is requested for "a b
c" it will be interpreted as "a" and "b" and "c"), and
I'd like to implement an "or" chain in the queries.

Thanks for the help,

Daniel

--- Maik Röder [EMAIL PROTECTED] wrote:  
Hi Daniel !
 
 daniel dias wrote:
  
  you've a copy of this python method to send me?
  thanks maik!
 
 Look at what Michael Kobald wrote:
 
 Regards,
 
 Maik 
 
 michael Kobald wrote:
  
  Hi,
  I played with ZCatalog and ZClasses a time ago.
  Due to the fact that ZCatalog can Index all
 Objects - You Can Index a
  Method, .!!!
  This Methods can be External-, Phython-, or
 DTML-Methods.
  But they have to return something to the catalog
 (DTML-RETURN Tag).
  You can give this method a name like
 "PrincipiaSearchSource" or what the
  hell you think of.
  
  In my case I index about 10 different ZClass, 100
 Instances of them, with a
  PythonMethod called text_inhalt (text_contents)
  Param: self
  Code
  return string.join((self.id, self.inhalt), '; ')
  
  Or in an  subclass
  return string.join((self.id, self.teaser,
 self.gericht, self.keys, self.art,
  self.norm, self.parteien), '; ')
  
  Be warned you can use a DTML Method and return
 something with the
  dtml-return tag, but this is not working very well
 within a ZCLass, !!!
  ??
  
  P.S.:
  If you want to call a resultObject (e.g. a ZClass)
 directly through
  Zope/DTML/Python use the PyMethod "fetchObj" much
 cooler than only via
  catalog.getpath (which is link /hfg/kkjk/)
  
  to do somthing like this:
  
  dtml-in mein Result from a canned search
  
  dtml-call
 

"REQUEST.set('meineURL',fetchObj(_,Catalog.getpath(_.int(_['sequence-item'])
  )))"convert /parent/child to an real object
 parent.child
  
  dtml-var meineURL  *** points to a ZClass
 [Base:Renderable] calling the
  Object/Class directly, which renders itself
  
  /dtml-in
  
  use something like this:
  
  Python Method: fetchObj
  
  Param: _,fetchStr, attr=None
  
  obj = _
  for p in string.split(fetchStr, '/'):
 obj = obj[p]
  if attr is None:
 return obj
  else:
 return render(_.getattr(obj, attr))
  
  Greetings from Heidelberg
  
  Michael Kobald
  
  ___
  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 )




Do You Yahoo!?
Crie o seu e-mail grátis do Yahoo! Mail com 6 Megabytes livres!
http://mail.yahoo.com.br

___
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] Deleted product breaks SQL_Method Advanced tab - How to fix?

2000-11-14 Thread Brad Clements

Zope 2.2.2 binary on Linux (also shows up on Windows version)

I'm looking for suggestions on how to fix this, I can't access the 
advanced tab of any of my SQL_Methods.

I had played with some products, deleted them from the file system and 
removed them from the products list in Zope (is order important here?)

Now when I choose Advanced on any SQL Method, I get this:

ImportError

Sorry, a Zope error occurred.

Traceback (innermost last):
  File /home/bkc/door2door/lib/python/ZPublisher/Publish.py, line 222, in 
publish_module
  File /home/bkc/door2door/lib/python/ZPublisher/Publish.py, line 187, in publish
  File /home/bkc/door2door/lib/python/Zope/__init__.py, line 221, in 
zpublisher_exception_hook
(Object: SQL_GetOrgList)
  File /home/bkc/door2door/lib/python/ZPublisher/Publish.py, line 171, in publish
  File /home/bkc/door2door/lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: manage_advancedForm)
  File /home/bkc/door2door/lib/python/ZPublisher/Publish.py, line 112, in call_object
(Object: manage_advancedForm)
  File /home/bkc/door2door/lib/python/App/special_dtml.py, line 120, in __call__
(Object: manage_advancedForm)
(Info: /home/bkc/door2door/lib/python/Shared/DC/ZRDB/advanced.dtml)
  File /home/bkc/door2door/lib/python/DocumentTemplate/DT_String.py, line 528, in 
__call__
(Object: manage_advancedForm)
  File /home/bkc/door2door/lib/python/Shared/DC/ZRDB/DA.py, line 508, in 
manage_product_zclass_info
(Object: SQL_GetOrgList)
  File /home/bkc/door2door/lib/python/ZODB/Connection.py, line 447, in setstate
ImportError: No module named ZamlBase

And this appears from the python process

2000-11-14T14:42:42 ERROR(200) ZODB Couldn't load state for 
'\000\000\000\000\000\000\036\031'
Traceback (innermost last):
  File /home/bkc/door2door/lib/python/ZODB/Connection.py, line 447, in setstate
ImportError: No module named ZamlBase

How can I remove this object from the zodb? How do I find it?

Any idea why SQL_Method even cares about this?

Thanks for any suggestions

Brad Clements,[EMAIL PROTECTED]   (315)268-1000
http://www.murkworks.com  (315)268-9812 Fax
netmeeting: ils://ils.murkworks.com   AOL-IM: BKClements

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

2000-11-14 Thread Alejandro Pancani

if I have a string that represent a date with the format dd/mm/
How could I do to obtain a DateTime object from it?


Alejandro Pancani
[EMAIL PROTECTED]



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




[Zope] CMS isn't word, is it? ($12M round of investment)

2000-11-14 Thread peter bengtson

"content management", says Paul
Is that word different from "content management system"? Known also as CMS?

My mother tongue is not english, but this feels like a techie (or perhaps
e-business) question of english.
I feel that if I were to deliver a management interface for a client I would
probably not give them /manage access. Rather I would give them a few
Security protected forms to fill in and work with.

Sometimes people say "Zope?? Isn't it that content mangement system tool for
portals an stuff?"

I think of a content management system as an interface to handle content
such as images and text and files etc.
And the content management system Zope has, as an interface to handle
objects and work and visualization etc.

Am I completely wrong, or is there a big confusion with these words?

 What will this mean?  First and foremost, Zope and Digital Creations will
 become very competitive, very quickly, along a number of axes. As the
 PythonLabs move indicated, we are taking aggressive steps to become a
 dramatic force in the worlds of content management, web application
 services, and Open Source leadership.  With this round, our business model
 has been validated.




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




Re: [Zope] Zope and Windows DB's = NOT! ?

2000-11-14 Thread tom smith

on 14/11/00 12:51 pm, Pavel V. Piankov at [EMAIL PROTECTED] wrote:

 it seems that the ODBC adaptor is ancient and very error
 prone  so can i conclude that Zope and DB integration
 under windows is not an option?
I found the oDBC stuff works fine with Access and SQLServer. Though passing
variables to the sqlMethod is little bit of a black art

good luck

tom


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




RE: [Zope] Zope and Windows DB's = NOT! ?

2000-11-14 Thread Farrell, Troy

I've been using ZODBCDA 3.1.0b3 for 3 months on MS Acccess with no problems.
Zope 2.2.2
Access 97 SR2
NT 4 SP6a
100MHz P5
32MB Ram

Troy

___
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] Deleted product breaks SQL_Method Advanced tab - How to fix?

2000-11-14 Thread seb bacon

 
 How can I remove this object from the zodb? How do I find it?
 
 Any idea why SQL_Method even cares about this?

there was a longish thread about this recently (search for something like 'Data.fs 
corrupted?!').  the upshot was, i think, that products that haven't been written 
carefully can cause problems like this because they don't get cleaned up from the DB 
when they're erased.  seemingly random relationships between products (like yours) are 
often reported but rarely investigated.  the possible solutions suggested were:

1) truncate your FileStorage (yuk)
2) reinstall the offending product, then go into the ZODB via the debugger, and do 
some surgery (yuk)
3) export all your objects, get a fresh Data.fs, reimport them (yuk)


___
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: why DTML confusing

2000-11-14 Thread Irene Barg

To all of you that responded, I appreciate your comments.  I
will admit, after reading some of your comments, and going
back to the DTML Reference, this topic is discussed in the
section under "The special namespace variable".  Right before
my eyes, there is an example doing exactly what I wanted:

dtml-if "_['sequence-length']  20"

The dtml-in variables don't follow Zope's own rules on variable
names, but I've been told that this might change.  Beyond this,
when you need to do anything complex with DTML, the code gets
really ugly.  I have found it cleaner to just write an external
Python method to take care of such complex things like parsing
fields for wildcards, etc.. I will also look at Python Methods
and ZClasses.  

Finally, don't get me wrong.  I like Zope.  It's the best
solution I have found for through-the-web management and
program development.  I thank all of the Zope folks for that!

Cheers,
--irene
"Spicklemire, Jerry" wrote:
 
 Irene says:
 
  I get so frustrated with DTML, I want to scream.
  Please don't tell me to buy the Zope book,
  DTML should be more intuitive.
  DTML maybe the heart of Zope,
  but it's also it's achilles heel.
 
 You're right about the confusion, frustration, nor are you alone.
 Still, DTML isn't the heart of Zope, it's more like the fascia.
 DTML was intended to make the task of delivering dynamic content
 wrapped up in HTML-ish Templates easier. It evolved, and took on
 a broader scope that made it enticing for lot's of "other stuff".
 
 Like most evolution, there are obvious benefits, and some
 unfavorable outcomes. The most glaring problems show up when
 you start trying to do things that seem to be just a step or
 two more sophisticated than simple examples that "just work".
 
 There's good news. Python Methods, or whatever we end up calling
 them, make actually implementing such things as easy as Py(thon).
 For some folks, it may look like the bad news is, "Now I have to
 learn Python". In perspective, learning Python is way better than
 wading through the Zope API via DTML. Way way better.
 
 So, the moral is, keep the DTML as simple as it can be. For
 anything else, reach for another tool. Zope has bunches of them.
 
 BTW, the dtml-if "_['sequence-item'}" stuff is the tip of the
 DTML Complexity Iceberg. The sooner you get comfortable with
 Python Methods, ZClasses, etc., the happier you'll be.
 
 One last point. Python Methods (a.k.a. Restricted, Internal, or
 some other as yet unheard of alternative, which we are all
 anxiously awaiting) is an add-on at this point. Target date
 for inclusion as part of the standard "Core Zope" is Zope v.2.3.
 
 For now, see: http://www.zope.org/Members/4am/PythonMethod
 
 Later,
 Jerry S.
 

-- 

Irene BargEmail:  [EMAIL PROTECTED]
Steward Observatory   Phone:  520-621-2602
933 N. Cherry Ave.
University of Arizona FAX:520-621-1891
Tucson, AZ  85721 http://nickel.as.arizona.edu/~barg


___
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] Website search

2000-11-14 Thread Andy McKay

Depends what you mean by easy. You can catalog objects outside of Zope
inside Zope by creating a non-persistent object. If you want to make a
search engine like google... then you'd need to write a spider to create
these objects.. no, not easy.

--
  Andy McKay, Developer.
  ActiveState.

- Original Message -
From: "Tiago Antão" [EMAIL PROTECTED]
To: "Andy McKay" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, November 14, 2000 3:56 AM
Subject: Re: [Zope] Website search




 On Mon, 13 Nov 2000, Andy McKay wrote:

 andym I think installing ht://Dig is "programmer-oriented" and is not
much more
 andym simple... ZCatalog is your best bet and its not that complicated
really, its
 andym about as simple as you  are going to get. The docs should give you
a fairly
 andym simple explanation of how to add one.

   Is there an easy way to integrate search to non-zope sites inside
 ZCatalog?

 Best regards,
 Tiago


 ___
 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] FYI: Digital Creations secures $12M round of investment

2000-11-14 Thread Andy McKay

Congratulations, with Guido and pals moving to DC as well this is a great
month for DC and Zope.

--
  Andy McKay, Developer.
  ActiveState.

- Original Message -
From: "Paul Everitt" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, November 13, 2000 7:15 PM
Subject: [Zope] FYI: Digital Creations secures $12M round of investment



 Hello Zope friends.  At long last we at Digital Creations are able to
 publicly say it: we've closed a $12M round of investment:

   http://www.digicool.com/News/CRound.html

 It's out on the newswire now.  We'll start pushing it out more over the
next
 24 hours.

 This, needless to say, is a big deal, one that we've worked on really,
 really hard this year.  With the tech market downturn since March, and
with
 Open Source particularly getting a beating, it's vindicating to get good
 funding from strong partners.  When everyone else was getting wads of cash
 during the go-go times, we were quietly at work, being frugal, making
money,
 making a business case, and being profitable. We're proud to say that we
got
 our money when money was hard to find.

 Let's put it this way: Open Source business is hardly dead.  It's just
 different, and better.

 What will this mean?  First and foremost, Zope and Digital Creations will
 become very competitive, very quickly, along a number of axes. As the
 PythonLabs move indicated, we are taking aggressive steps to become a
 dramatic force in the worlds of content management, web application
 services, and Open Source leadership.  With this round, our business model
 has been validated.

 As a member of the Zope community, I view this as "the dream delivered".
 Many of us care deeply about this thing we're involved in, and sometimes
it
 feels like a longshot.  Though this is still a David vs. Goliath, David
now
 has a slingshot, and a bit of steel in his eye.  Thanks go to the folks
here
 at DC, to the Zope and Python communities, and to the companies around the
 world that are basing their business on Zope.

 Onward!

 --Paul


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



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




Re: [Zope] Zope and Windows DB's = NOT! ?

2000-11-14 Thread Andy McKay

I have used Zope 2.1.6, 2.2.0, 2.2.1, 2.2.2 with MS Access 2000, MS SQL 7
and MS SQL 2000 Beta and Full.

The only problem was with 2.2.0 where permissions broke the ZODBC driver was
broken, there was a patch and 2.2.1 up had the problem fixed.

What version of Zope, OS, ZODBC and DB are you using and what is the
problem?

--
  Andy McKay, Developer.
  ActiveState.

- Original Message -
From: "Mark Pratt" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 14, 2000 3:30 AM
Subject: [Zope] Zope and Windows DB's = NOT! ?


 hi,

 is anybody successfully using a Windows DB such as MS SQL
 server 7 with Zope?

 it seems that the ODBC adaptor is ancient and very error
 prone  so can i conclude that Zope and DB integration
 under windows is not an option?

 regards,

 mark

 --
 mark pratt  (managing director) [EMAIL PROTECTED]
 beehive elektronische medien GmbH   http://www.beehive.de
 phone: +49 30 847-82 0  fax: +49 30 847-82 299


 ___
 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: [Fwd: [Zope] Re: Advanced search in ZCatalog (Micha)]

2000-11-14 Thread Andy McKay

A ZCatalog reads a classes methods, so you can only make an external method
be read if the External method is part of your ZClass. If this is the case,
simply make an external method call my_index that returns a string. Then
when object is recatalogued, ZCatalog will read that external method.


--
  Andy McKay, Developer.
  ActiveState.

- Original Message -
From: "daniel dias" [EMAIL PROTECTED]
To: "Maik Röder" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, November 14, 2000 6:43 AM
Subject: [Zope] Re: [Fwd: [Zope] Re: Advanced search in ZCatalog (Micha)]



 Hi,

 Ok, I could achieve something with this approach. But
 it's not clear for me how to set the ZCatalog to
 create an index from the result of an external method.
 Can you please explain how to achieve this?

 Also, the ZCatalog queries use an "and" chain for each
 token provided (eg. if a query is requested for "a b
 c" it will be interpreted as "a" and "b" and "c"), and
 I'd like to implement an "or" chain in the queries.

 Thanks for the help,

 Daniel

 --- Maik Röder [EMAIL PROTECTED] wrote: 
 Hi Daniel !
 
  daniel dias wrote:
  
   you've a copy of this python method to send me?
   thanks maik!
 
  Look at what Michael Kobald wrote:
 
  Regards,
 
  Maik
 
  michael Kobald wrote:
  
   Hi,
   I played with ZCatalog and ZClasses a time ago.
   Due to the fact that ZCatalog can Index all
  Objects - You Can Index a
   Method, .!!!
   This Methods can be External-, Phython-, or
  DTML-Methods.
   But they have to return something to the catalog
  (DTML-RETURN Tag).
   You can give this method a name like
  "PrincipiaSearchSource" or what the
   hell you think of.
  
   In my case I index about 10 different ZClass, 100
  Instances of them, with a
   PythonMethod called text_inhalt (text_contents)
   Param: self
   Code
   return string.join((self.id, self.inhalt), '; ')
  
   Or in an  subclass
   return string.join((self.id, self.teaser,
  self.gericht, self.keys, self.art,
   self.norm, self.parteien), '; ')
  
   Be warned you can use a DTML Method and return
  something with the
   dtml-return tag, but this is not working very well
  within a ZCLass, !!!
   ??
  
   P.S.:
   If you want to call a resultObject (e.g. a ZClass)
  directly through
   Zope/DTML/Python use the PyMethod "fetchObj" much
  cooler than only via
   catalog.getpath (which is link /hfg/kkjk/)
  
   to do somthing like this:
  
   dtml-in mein Result from a canned search
  
   dtml-call
  
 

"REQUEST.set('meineURL',fetchObj(_,Catalog.getpath(_.int(_['sequence-item'])
   )))"convert /parent/child to an real object
  parent.child
  
   dtml-var meineURL  *** points to a ZClass
  [Base:Renderable] calling the
   Object/Class directly, which renders itself
  
   /dtml-in
  
   use something like this:
  
   Python Method: fetchObj
  
   Param: _,fetchStr, attr=None
  
   obj = _
   for p in string.split(fetchStr, '/'):
  obj = obj[p]
   if attr is None:
  return obj
   else:
  return render(_.getattr(obj, attr))
  
   Greetings from Heidelberg
  
   Michael Kobald
  
   ___
   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 )



 
 Do You Yahoo!?
 Crie o seu e-mail grátis do Yahoo! Mail com 6 Megabytes livres!
 http://mail.yahoo.com.br

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



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




Re: [Zope] Zope and Windows DB's = NOT! ?

2000-11-14 Thread Mark Pratt

hello andy, hello all others who answered my post,

first of all thank you for letting me know the positive
experiences you have had with the ODBC adaptor and your
various installations. i'm relieved that Zope and window's 
DB's do work together -- and this prompted some new 
tests on my part.

their still seems to be a minor issue with an error message 
the first time we query a MS SQL 6.5 DB. a few reloads later 
everything seems to work fine. kind of weird.

guess the only major thing left is the single thread issue.

thanks again,

mark

--
mark pratt  (managing director) [EMAIL PROTECTED]
beehive elektronische medien GmbH   http://www.beehive.de
phone: +49 30 847-82 0  fax: +49 30 847-82 299

On Tue, 14 Nov 2000, Andy McKay wrote:

 I have used Zope 2.1.6, 2.2.0, 2.2.1, 2.2.2 with MS Access 2000, MS SQL 7
 and MS SQL 2000 Beta and Full.
 
 The only problem was with 2.2.0 where permissions broke the ZODBC driver was
 broken, there was a patch and 2.2.1 up had the problem fixed.
 
 What version of Zope, OS, ZODBC and DB are you using and what is the
 problem?
 
 --
   Andy McKay, Developer.
   ActiveState.
 
 - Original Message -
 From: "Mark Pratt" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, November 14, 2000 3:30 AM
 Subject: [Zope] Zope and Windows DB's = NOT! ?
 
 
  hi,
 
  is anybody successfully using a Windows DB such as MS SQL
  server 7 with Zope?
 
  it seems that the ODBC adaptor is ancient and very error
  prone  so can i conclude that Zope and DB integration
  under windows is not an option?
 
  regards,
 
  mark
 
  --
  mark pratt  (managing director) [EMAIL PROTECTED]
  beehive elektronische medien GmbH   http://www.beehive.de
  phone: +49 30 847-82 0  fax: +49 30 847-82 299
 
 
  ___
  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: Advanced search in ZCatalog PartII

2000-11-14 Thread michael Kobald

Hi,

First Part: Create Index

First, create the index "name of mymethod" in the Catalog.
ZCatalog can only index objects he knows of !
eg. use "find item to ZCatalog" tab, use the index method or use
CatalogAware as base Class for ZClass.
Additionally you have to reindex your object if its content changes (via
DTML-Callreindex.)

What does the ZCatalog for you ?
He takes your object, applies all the indexes that are possible, and reads
his data. (so we´re back,
you have to return something from your method).

This data is store in the Catalog itself, and not in the object.

Second Part: OR Query:

mmmh, did i get you right ?

I Think it´s this way:
1. Case: looking for a or b or c - type 'a b c' as query string
2. Case: looking for a and b and c - type 'a AND b AND c' as query string
3. Case: looking for a and b or c - type 'a AND b OR c' as query string
4. Case: looking for 'a  b  c' - type '"a b c"' as query string

OR

Did you mean somthing like this ?

return self.Catalog(
   {'meta_type' :
['pressemitteilung','volltext','kommentar','kurztext'],
'rubrik_id' : self.id,
'review': 0
   }
  )



Regards
Michael Kobald


___
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] Problems with Zope 2.2.2 and MS SQL Server

2000-11-14 Thread Rik Hoekstra


 I'm having some troubles connecting Zope 2.2.2 to Microsoft SQL Server. I
downloaded and installed the product ZODBCDA, and I was able to connect to
the SQL Server. I was able to define the SQL methods, and when I test them,
everything is successful. The problem is that when I use for example the
dtml-in tag to iterate over the results, and display them in a page, I am
always prompted for a password, but I can enter whatever password I want, I
can never get through.

 Does anybody has an idea of what I'm doing wrong and how I can solve it??


Did you use a Search interface on you SQL Methods (it is a standard product
in your Zope installation)? Did  it give the same problems?

Rik


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




Re: [Zope] Zope and Windows DB's = NOT! ?

2000-11-14 Thread Rik Hoekstra


 hello andy, hello all others who answered my post,

 first of all thank you for letting me know the positive
 experiences you have had with the ODBC adaptor and your
 various installations. i'm relieved that Zope and window's
 DB's do work together -- and this prompted some new
 tests on my part.

 their still seems to be a minor issue with an error message
 the first time we query a MS SQL 6.5 DB. a few reloads later
 everything seems to work fine. kind of weird.

there used to be a similar issue in a previous version, that had to do with
single threads and transactions not being committed. But that was patched
long ago. That's probably not it and I know it's kind of cryptic, just
thought I'd bring it up, just in case.


 guess the only major thing left is the single thread issue.

yes, that's bad.

Rik



___
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] ZCatalog problem on insert

2000-11-14 Thread Menard . Jean-Francois

I'm experiencing some problems with the zCatalog.  I made some customized
forms for inserting data.  Yes, I use the ...reindex_object.  And Yes, I
use ...manage_addProduct.

I can see the objects in the Catalog, but my search results are always
empty!  If I update the Catalog manually (in the "Cataloged Objects" tab),
everything is OK, until I insert data again.

It only happens when I insert data, not when I modify or delete an object.
So, as soon as I insert objects via my custom form, my Catalog search stop
working ! 

Am I the only one experiencing this problem ?

I use Catalog in a lot of sites, it's the first time I have such problem.  

Any clue would be very appreciated...  I'm supposed to demo the site
tomorrow morning... :\

Jean-François Ménard
Intranet DPAS
Pratiques d'affaires et orientations
*(514) 840-3000  poste 3939
*  (514) 840-5585
*  [EMAIL PROTECTED]
* 855 Ste-Catherine est, 6e étage
  Montréal, Qué. H2L 4P5


___
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] ppc.rpm built from src.rpm

2000-11-14 Thread addyd

RPM gurus?

Couldn't find Zope 2.2.2 RPMs for LinuxPPC, so attempted to create my own
from src.rpms at Jeff Rush's site.
Followed the directions given at the LinuxPPC FAQ-O-Matic. Everything
seemed to go well and it build an entire set of ppc.rpms with no error
messages. Installed the whole enchilada Zope-2.2.2-1.ppc.rpm and then the
Z-Server rpm. Everything seemed to install normally and an RPM -q shows me
they are installed. However, when I attempt to get the Manage screen by
doing the http://my.machine:8080/manage I get a Connection Refused (server
may not be accepting connections/may be busy).

The machine is up (and Apache and ProFTP are listening). What do I need to
check next?
If I can determine that the problem is NOT with the RPMs, I'd like to make
them available to the LinuxPPC community.

Darren Addy
Web Specialist
Information Technology Services
University of Nebraska at Kearney


___
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] FYI: Digital Creations secures $12M round of investment

2000-11-14 Thread Gijs Reulen

 Congratulations, with Guido and pals moving to DC as well this is a great
 month for DC and Zope.


All good things come in three, as we say in the Netherlands.
Wonder what will happen next   ;-)

Gijs

 --
   Andy McKay, Developer.
   ActiveState.

 - Original Message -
 From: "Paul Everitt" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Monday, November 13, 2000 7:15 PM
 Subject: [Zope] FYI: Digital Creations secures $12M round of investment


 
  Hello Zope friends.  At long last we at Digital Creations are able to
  publicly say it: we've closed a $12M round of investment:
 
http://www.digicool.com/News/CRound.html
 
  It's out on the newswire now.  We'll start pushing it out more over the
 next
  24 hours.
 
  This, needless to say, is a big deal, one that we've worked on really,
  really hard this year.  With the tech market downturn since March, and
 with
  Open Source particularly getting a beating, it's vindicating to get good
  funding from strong partners.  When everyone else was getting
 wads of cash
  during the go-go times, we were quietly at work, being frugal, making
 money,
  making a business case, and being profitable. We're proud to say that we
 got
  our money when money was hard to find.
 
  Let's put it this way: Open Source business is hardly dead.  It's just
  different, and better.
 
  What will this mean?  First and foremost, Zope and Digital
 Creations will
  become very competitive, very quickly, along a number of axes. As the
  PythonLabs move indicated, we are taking aggressive steps to become a
  dramatic force in the worlds of content management, web application
  services, and Open Source leadership.  With this round, our
 business model
  has been validated.
 
  As a member of the Zope community, I view this as "the dream delivered".
  Many of us care deeply about this thing we're involved in, and sometimes
 it
  feels like a longshot.  Though this is still a David vs. Goliath, David
 now
  has a slingshot, and a bit of steel in his eye.  Thanks go to the folks
 here
  at DC, to the Zope and Python communities, and to the companies
 around the
  world that are basing their business on Zope.
 
  Onward!
 
  --Paul
 
 
  ___
  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 )




[Zope] re: ppc.rpm from src.rpm: RTFD

2000-11-14 Thread addyd

Sorry all,
To answer my own question:
/etc/rc.d/init.d/zope start

Seems I need to read to the bottom of the documentation on the download
page before asking questions.
Sheesh, some people's kids!
blushing

Darren Addy
Web Specialist
Information Technology Services
University of Nebraska at Kearney


___
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] creating ZClass instances from an external method

2000-11-14 Thread Gary Reynolds

I have a need to do some creating of objects from python code.

Am I correct in thinking that to add a new object, that is one of my
products, I need to do something like:

  folder.manage_addProduct['ProductName'](id='foo', title='bar')

I have sample code to create simple things like using
manage_addDTMLMethod, etc, but nothing for a product.

The way I've got my data stored is in a combination of dictionaries
and lists... it was an ugly enough process to export it - now
importing it seems worse.

Any help would be appreciated.

Cheers,
Gary

-- 
Web Site Developer
Faculty of Dentistry
University of Sydney

Ph: 02 9351 8350
[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] Problems with Zope 2.2.2 and MS SQL Server

2000-11-14 Thread Hugo Ramos

- Original Message -
From: "Rik Hoekstra" [EMAIL PROTECTED]
To: "Pieter Claerhout" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, November 14, 2000 8:52 PM
Subject: Re: [Zope] Problems with Zope 2.2.2 and MS SQL Server

  I'm having some troubles connecting Zope 2.2.2 to Microsoft SQL Server.
I
 downloaded and installed the product ZODBCDA, and I was able to connect to
 the SQL Server. I was able to define the SQL methods, and when I test
them,
 everything is successful. The problem is that when I use for example the
 dtml-in tag to iterate over the results, and display them in a page, I am
 always prompted for a password, but I can enter whatever password I want,
I
 can never get through.
 
  Does anybody has an idea of what I'm doing wrong and how I can solve
it??


There was a patch for this problem. Someone posted it in this mailing list
before... search for it!


regards


=
Hugo Ramos - [EMAIL PROTECTED]
ZopersORG - http://www.zopers.org
=
Do not meddle in the affairs of programmers, for they are easy to annoy,
and have all the source code!!!


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

2000-11-14 Thread Dieter Maurer

Alejandro Pancani writes:
  if I have a string that represent a date with the format dd/mm/
  How could I do to obtain a DateTime object from it?

  dtml-call "REQUEST.set('tmplist',_.string.split(udate,'/'))"
  dtml-call "tmplist.reverse()"
  dtml-var "ZopeTime(_.string.join(tmplist,'/'))"

is one solution.


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] Zope and Windows DB's = NOT! ?

2000-11-14 Thread Dieter Maurer

Mark Pratt writes:
  is anybody successfully using a Windows DB such as MS SQL
  server 7 with Zope? 
  
  it seems that the ODBC adaptor is ancient and very error 
  prone  so can i conclude that Zope and DB integration 
  under windows is not an option?
I use Zope 2.1.6 and ZODBCDA to access an Access database.

I had only the usual Zope 2.1.6 Shared.DC.ZRDB.DA problems.


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] Building dynamically class instances using external methods.

2000-11-14 Thread Dieter Maurer

Hannes Grund writes:
  I have an external Method 
  which creates dynamically an instance from of a class depending on 
  some input to a function contained in this method.
  In short the code (of the external method)
  
  class Classname:
  
  Called from Zope this does not work. The pickle module raises an 
  error: 

The External Method documentation tells you that you may
not define a class inside the the source file and return
instances thereof into the Zope world.

Place such classes in standard Python module files
(the documentation suggests a subpackage in "Shared")
and import them in your external method source file.

  QUESTION 3: The lifetime of an instance has should not to be longer than 
  the current REQUEST is performed,  is there any possibility to
  create the instance as an subobject of the current REQUEST ?? 
self.REQUEST.set('xxx', your instance)


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] How to access column names in DTML Methods

2000-11-14 Thread Dieter Maurer

Jose Soares writes:
  I'm trying to display the column names of a Record object without success.
  I'm able to access column data using sequence-item but I don't know
  how to display column names.
The "Results" object has a method "names()" returning the
column names.

A Record object hides the names in a private attribute that
cannot be accessed from DTML (but it is possible from Python).


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: [Zope-dev] Re: [Zope] FIX for the infamous __call__ bug - testers needed!

2000-11-14 Thread Dieter Maurer

Chris Withers writes:
  What was the manifestation of this problem again?
I know, you know the searchable archive ;-)

The easiest way to reproduce the problem:

F1/
F2/
D (DTML Document): dtml-with F1/dtml-with

F2/D raises an AttributeError __call__ for "F1".



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] Forcing Content-Type of Image object

2000-11-14 Thread Dieter Maurer

Peter Bengtsson writes:
  I don't want Zope to find out what content type an Image has. I want to be able to 
 force that programmatically myself from DTML.
  
  Here are some code examples that doesn't work:
  
  dtml-call "PARENTS[0].manage_addImage('awapimage.wbmp',file,'Give it a 
 Title','','image/vnd.wap.wbmp')"
This one should work.

How did it not?



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] Where to store my data?

2000-11-14 Thread Karl Anderson

"Andy McKay" [EMAIL PROTECTED] writes:

 XML (page contents)-- every URL should result in an XML document,
 containing all the information that will be presented on that page.  Written
 in DTML?
 
 XMLDocument.

XMLDocument might or might not be what you want here - while it does
provide this, there are other ways to produce XML from arbitrary
objects.

-- 
Karl Anderson  [EMAIL PROTECTED]

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




[Zope] Cut, copy paste

2000-11-14 Thread Robert

I am returning to some Zope work after a long absence and I cannot get cut, 
copy  paste to work in the management screens. I have a brand new install 
of 2.2.2 on NT4/SP6, using IE5 (with cookies enabled) and if I cut/copy 
something in the management screens, the paste button appears as expected. 
If I go to another folder, no paste button. If I go back to the original 
folder the paste button has disappeared. This happens as the super-user or 
any other user I have defined.
A quick search of the mailing list and Zope site failed to turn up 
anything. Can anyone shed some light on this, as it's a giant pain to have 
to export each time I want to move something.

TIA
Robert
PS Please cc me directly on this as I am in digest mode. Thanks.


___
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] PropertyManager

2000-11-14 Thread Max M

Does anybody know a good example that shows the working of the
PropertyManager??

An example with a product that subclasses the PropertyManager and sets the
"_properties" and the "__ac_permissions__" would be preferable. But anything
will do.

Regards Max M


Max M. W. Rasmussen,Denmark.   New Media Director
private: [EMAIL PROTECTED] work: [EMAIL PROTECTED]
-
Specialization is for insects.  -  Robert A. Heinlein


___
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: install win32all for Zope

2000-11-14 Thread kentsin

Mark,

The problem is : I have 2.0 installed on the box. But, Zope do not use 2.0
yet. It comes with its own python 1.52. The directory layout is:

Python20 --- Python 2.0 for the whole system
Program Files
--- | Zope  --  Zope installation
 |  | bin  -- Python 1.52
 |- | lib   python 1.52 lib
 |  | Lib Zope lib...

Actually I have win32all for python 2.0 installed for the whole system. But
it is not working with zope's 1.52.

Is it impossible to do what I want?
- Original Message -
From: Mark Hammond [EMAIL PROTECTED]
To: kentsin [EMAIL PROTECTED]
Sent: Wednesday, November 15, 2000 6:15 AM
Subject: RE: install win32all for Zope


 At that page, it clearly says 136 is for Python 1.5.2, while 135 is for
 Python 2.0.  You have Python 2.0, so therefore you need win32all-135

 Mark.

  -Original Message-
  From: kentsin [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, 14 November 2000 2:41 PM
  To: [EMAIL PROTECTED]
  Subject: install win32all for Zope
 
 
  Dear Mark,
 
  I have python2.0 installed on my win98 box and Zope2.2 were still using
  1.52.
 
  Now I want to use the JetDA product for Zope, and it require Win32All to
  work. I have download the build 136  win32all for Python 1.5.2. But it
can
  not install because it does not found the python 1.52 on the win32 box.
 
  Would you please help me to install it?
 
  Thanks in advance.
 
  PS : The mailto: link of the
  http://www.activestate.com/Products/ActivePython/win32all.html
  have an extra
  tailing / which make the mailing address invalid:
  mailto:[EMAIL PROTECTED]/
 
 
  Best Regards,
 
 
  Sin Hang Kin
  
  To service you is our GREATE HONOR
  Kent at Assembleia Legislativa de MACAU
  Aterros da Baia da Praia Grande, Praca da Assembleia Legislativa, Edf.
da
  Assembeia Legislativa, MACAU.
  This mail drop is for work, Please direct all private communications to
  [EMAIL PROTECTED] or [EMAIL PROTECTED] Thank you.
 
 
 


___
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] PropertyManager

2000-11-14 Thread Jonothan Farr

The Local File System product does this. You can check out the source code at
http://www.zope.org/Members/jfarr/Products/LocalFS.

--jfarr

- Original Message -
From: "Max M" [EMAIL PROTECTED]
To: "Zope@Zope. Org" [EMAIL PROTECTED]
Sent: Tuesday, November 14, 2000 4:39 PM
Subject: [Zope] PropertyManager


 Does anybody know a good example that shows the working of the
 PropertyManager??

 An example with a product that subclasses the PropertyManager and sets the
 "_properties" and the "__ac_permissions__" would be preferable. But anything
 will do.

 Regards Max M


 Max M. W. Rasmussen,Denmark.   New Media Director
 private: [EMAIL PROTECTED] work: [EMAIL PROTECTED]
 -
 Specialization is for insects.  -  Robert A. Heinlein


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

2000-11-14 Thread Aaron Payne

To view it as a DateTime object:

dtml-var "_.DateTime(yourstring)"

or
Create a DateTime object with an id of datestring to be rendered later.
dtml-call "REQUEST.set('datestring',_.DateTime(yourstring)"

To view it:
dtml-var datestring

At 12:03 AM 11/15/00 -0300, Alejandro Pancani wrote:
if I have a string that represent a date with the format dd/mm/
How could I do to obtain a DateTime object from it?


Alejandro Pancani
[EMAIL PROTECTED]



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



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




Re: [Zope] Do Zope Haz Templates?

2000-11-14 Thread Curtis Maloney

On Wed, 15 Nov 2000, Padrino wrote:
 I Was Serching And looking For Templates and I Was Guessing if Zope
 really Has It?


DTML.  Document Template Markup Language.

DTML is Zopes templating language.  Look at DTML Documents and DTML Methods. 

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 )




RE: [Zope] ZGDChart product...

2000-11-14 Thread Furbach, Andreas

Hello.

The function _chartdata in ZGDchart.py returns only one label column and one
data column. 
You may want to change this to:
*

def _chartdata(self):
"""
return the first and second columns of sql query
results as a pair of tuples
"""
rows = getattr(self, self.SQL)()
# data[0] is list of labels
data =  []
start = 0
for row in rows:
# each row is a list of fields
# initialize empty lists for each column
if start == 0:
  start = 1
  for i in range(len(row)):
data.append([])
#
# Only insert rows with zero values if
# it is not a pie chart
# Pie Chart only makes sense with 1 data column
#
for i in range(len(row)):
if (self.REQUEST['zgdchart_runtime_type'] !=
GDC_3DPIE and self.REQUEST['zgdchart_runtime_type'] != GDC_2DPIE) or row[1]
!= 0:
  #
  # Coerce the first field into a string
  # and other fields into a float
  #
  if i == 0:
  data[i].append( str  (row[i]))
  else:
  data[i].append( float(row[i]))
#
# convert lists to tuples
# apparently, gdchart.chart() accepts lists
# as well, but I better check with
# M Steed first.
#
# I just tried.
return data


***

and restart Zope, which worked for me.

Andreas Furbach
___
EDS Informationstechnologie und Service GmbH
Semerteichstr. 50-52
D-44141 Dortmund

Tel.: 0231 / 944-1533
mailto: [EMAIL PROTECTED]

Hi.

This is really a great product.

Unfortunately, I'm not able to create a chart with multiple columns using a

ZSQL Data Method.
Multiple columns with a DTML-Method works fine.

Do I miss something. Any ideas?

Thanks for any help. Regards, Marc Ludwig ([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 )