Re: [Zope-dev] Suggestion: All wiki pages have the last modified date in the footer.ter.

2000-12-04 Thread Chris Withers

"Jay, Dylan" wrote:
 
 There is getting to be some out of date content and it would be great to see
 which is which.

Now there's a great idea :-)

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] ZUnit - feedback convocation

2000-12-04 Thread Michel Pelletier

On Thu, 30 Nov 2000, Lalo Martins wrote:

 Hi all
 
 I'trying to write a document on ZUnit and Unit Testing in
 general, following Michel's and Amos' documentation process. I
 wrote an outline, and now I'm stuck :-) anyone with a few free
 moments is welcome to take a look and send me some words. Also,
 anyone very interested in the subject is welcome to volunteer
 for editorial help (read the Process to know what this means).
 
 Thank you.
 

I have some suggestions for the outline:

In the first section, remove "where does it come from" if the section
involves the history of unit testing.  I'd say the history lesson is out
of scope. ;)

I would add a section in the beginning "Why do you want to use it".  

What does "refactor mercilessly!" mean?

Next section...

"Importing ZUnit" requires a whole section?  I suggest axing it.

I would add an "example" section before moving into fitting it into
Zope...

What are "Fixtures"?  What is the "persistence problem"?  If it is a bug
that should be fixed in Zope then it probably shouldn't go in the
documentation, if it is something the reader shouldn't do, then it should
probably go into "interfacing with the Zope environment".  A wart
doesn't justify adding a new section just to add a sub-section to document
it. ;)

Here's a modified outline I tweaked with my above comments:



Unit testing Zope Products with ZUnit

  by Lalo Martins

  Unit Testing

What is Unit Testing

Why do you want to unit test

How should it be done

Refactor mercilessly!  (?)

  Writing Tests
  
The TestCase class

An Example TestCase

Interfacing with the Zope environment

Fixtures (?)

  The persistence problem - leaving traces behind (?)

Grouping tests in TestSuites

Wrapping it all up in a creator function
  
  Running the tests
  
The TestRunner object

TestResults objects

Leaving objects behind for debugging



___
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] ZUnit - feedback convocation

2000-12-04 Thread Michel Pelletier

On Mon, 4 Dec 2000, Lalo Martins wrote:

  In the first section, remove "where does it come from" if the section
  involves the history of unit testing.  I'd say the history lesson is out
  of scope. ;)
  
  I would add a section in the beginning "Why do you want to use it".  
 
 The first section is the advocacy section; it will begin with
 "if you already do unit tests, you may want to skip this
 section". I'm not sure if the history lesson is out of scope,
 but "Why do you want to use it" is probably better.

Hmm... actually in that case you may want to axe both "why" and the history.

  What does "refactor mercilessly!" mean?
 
 I'll explain that one of the benefits of unit testing
 extensively is that you can modify your code without fear
 (you'll know when it breaks). This section is more advocacy
 than technical.

Ah, ok I like it.  I wonder if "refactor" is the right word; it's very
specific and it sounds like any kind of changing can be done.

  Next section...
  
  "Importing ZUnit" requires a whole section?  I suggest axing it.
 
 Hmm. Yes.
 
  I would add an "example" section before moving into fitting it into
  Zope...
 
 No, you can't do a lot without interfacing with Zope. I'd add
 an example *after* interfacing with Zope. Or both, perhaps.
 Maybe one example in the end of each subsection, so we don't
 need any subsection titled "example".

Oh, I was thinking of just a simple non-zope unit test to get the
flavor, but now that I think about it that's out of scope.  Yes, the
example after would be better.

  What are "Fixtures"?
 
 A method where you make many tests in a single TestCase class.
 You setup a situation (the "fixture") in a method named
 "setup", then you do the tests, then you clean up in a method
 named "teardown". In the HiperDom tests, for example, I use a
 Fixture to do most of the tests, because I initialize the
 Template object in setup.

Ah yes, I just went and RTFM.

  What is the "persistence problem"?  If it is a bug
  that should be fixed in Zope then it probably shouldn't go in the
  documentation, if it is something the reader shouldn't do, then it should
  probably go into "interfacing with the Zope environment".  A wart
  doesn't justify adding a new section just to add a sub-section to document
  it. ;)
 
 I don't consider this a bug in either Zope or ZUnit, it's just
 an "issue".

snip

 I allocated a subsection for this because just explaining the
 problem is already somewhat convoluted, as you see above ;-) in
 a printed book, I'd make it a sidebar or something, but...

Hmm.  I guess my concern was because it was the only subsection of
'Fixtures'.  Do fixtures need a more topical breakdown or are they
simple enough to sum up in one section?  Maybe we can think of some
'fixture use cases'.

-Michel


___
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] ZPatterns, ObjectDomain, UML and all that.....

2000-12-04 Thread Itai Tavor

Steve Spicklemire wrote:

I've been working out some issues with EMarket, and as a way to 'clear
the cruft'.. I decided to bite the bullet and do some more careful
object modeling. Other than scribbling on paper, and making up some
diagrams that look a little like those from Coad's book on Patterns
and Strategies, I've never used any object modeling tools before in my
life. S... I downloaded the eval version of ObjectDomain, and I
can go for about 5 minutes on a Mac before it crashes, and usually 10
or 15 on Windows before it stops responding to mouse/keyboard
input. Save early, save often.. ;-. Sure it's frustrating but it
seems more workable that ArgoUML which I've had even less luck
with (What are other folks using? Rose?) anyway after much more
time that I would have thought possible I've come up with:

I'm in about the same position as you right now - trying to learn 
formal object modeling and ZPatterns, so I'm not qualified to say 
anything about your model or questions... I just want to mention two 
things that I found:

- I didn't find any of the modeling tools you mentioned, or others 
I've tried, very useful on a Mac (or at all), and I ended up using 
ConceptDraw, which is a general purpose drawing tool with UML and 
Coad libraries.

- Steve Alexander wrote in a reply to your post:

I think Coad's notation is better and clearer, as it allows you to
communicate information about objects and their classes all in one
place. Coad's notation is more about showing interactions of objects,
whereas UML makes that awkward, and is mostly used for expressing static
information about relationships between classes.

Very true, IMVHO. I still find there's a big gap between a Coad model 
and a ZPatterns implementation, but it's much better than with UML.

HTH
-- 
Itai Tavor"Je sautille, donc je suis."
C3Works[EMAIL PROTECTED]  - Kermit the Frog

"If you haven't got your health, you haven't got anything"


___
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] Implementing [XOR A] 1 object connections in ZPatterns

2000-12-04 Thread Itai Tavor

Hi,

Continuing the saga of my struggles with ZPatterns, I'm trying to 
work out the best way to implement an object that can be related to 
one of several other objects.

For example, I have a Product class. A Product can come in different 
colors, so I also have a Color class. Products can have two photos of 
the product - small and large. Colors can also have a photo, showing 
the product in that particular color. So, a Photo object can be a 
large product photo, a small product photo, or a color photo.

I can think of two ways to implement this:

1. Add small_photo_id, large_photo_id properties to Product, and 
photo_id property to Color. Then I do something like:

 Product.editInstanceForm:

 dtml-if large_photo_id
   dtml-var "Photos.getItem(large_photo_id).viewInstance(...)"
 dtml-else
   form action="selectLargePhoto" method="post"
   dtml-var "Photos.selectPhotoSnippet(...)"
   /form
 /dtml-if

 methodProduct.selectLargePhoto/method:

 photo_id = self.Photos.selectPhoto(REQUEST)
 self.propertysheets.Basic.manage_changeProperties(large_photo_id=photo_id)


2. Add owner_id, photo_key properties to Photo. Then use:

 Product.editInstanceForm:

 dtml-var "Photos.selectPhotoForOwner(Photos, REQUEST, 
owner_id=id, photo_key='large')"

 Photos.selectPhotoForOwner:

 dtml-let photo="defaultRack.getItemForKey(owner_id, photo_key)"
   dtml-if photo
 dtml-var "photo.viewInstance(...)"
   dtml-else
 ...
 code for selecting/creating photo
 ...
 /dtml-let


The 2nd way seems to go better with OO principles - all handling of 
photos is delegated to the Photos Specialist and the Product doesn't 
care if the photo exists or not, or where it comes from. But it also 
increases complexity in Photos, because I need to implement an 
efficient way to retrieve photos (with a Catalog, or SQL searches), 
and because it introduces the photo_key. Storing photo_id in Product 
eliminates these complexities, but it moves some of the 
responsibility for managing photos into Product.

Can anyone add anything on making the choice? Or maybe a 3rd way I 
haven't thought of?

Thanks,
Itai
-- 
Itai Tavor"Je sautille, donc je suis."
C3Works[EMAIL PROTECTED]  - Kermit the Frog

"If you haven't got your health, you haven't got anything"


___
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] ZPetterns implementation qustions

2000-12-04 Thread Itai Tavor

Phillip J. Eby wrote:

At 06:19 PM 11/29/00 +1100, Itai Tavor wrote:
Hi,

I'm trying to figure out the right way to implement a set of classes
and roles in ZPatterns. I asked some questions about this a while
ago, and then went away and did some learning, but I'm stuck again
and I'm afraid I need to ask more questions.

I have two types of actors - Person (with properties name, phone,
email, password) and Organization (with properties name, phone, fax,
business_number).

I also have two participants - Customer and Reseller. Each
participant can be either a Person or an Organization.

The participants can fill several roles, like OrderingEntities,
BillableEntities, etc.

Starting from the bottom, I create a Specialist for each role, each
one with two virtual Racks - customerRack and ResellerRack, so I can
refer to an OrderingEntity without caring if it's a Reseller or
Customer.

My problem is in implementing the Participant Specialists and storing
Participant and Actor classes. Do I create Specialists for the
Actors? It seems to me that since there is either one Person or one
Organization per Customer, then the actor object should be created in
the Customers Specialist. So Customers will have 3 Racks -
defaultRack (using Customer object), personRack (using Person object)
and organizationRack (using Organization object). Does this make
sense?

I think what you want is to have an Actors specialist containing a
personRack and organizationRack.  That
is, treat "Actor" as a role relative to either Customer or Reseller.

The reason I say, "I think", is because I'm really not clear on why you're
doing certain things here to start with.  See below.


If this is a good way to do it, how do I handle creating and
accessing the Person and Organization objects? Do I call
personRack.newItem(newCustomerId) in the script that creates the
customer? Or do I somehow do it in a SkinScript in defaultRack? And
how do I get to the Person data? With an attribute provider? Or in

Here's a red flag: why are you creating a person when you create a
customer?  If a person is something that you only make when you have a
customer, then the actor-participant-transaction pattern isn't really
valid, IMHO.  For Actor-Participant-Transaction to make sense, you have to
have Actors that exist seperate from the Participants.  While it makes
sense to be able to create an Actor at the same time, your model needs to
also include a way to select an *existing* Actor as the Participant,
otherwise you are not gaining anything from the A-P-T pattern and you might
as well just have the Participant.

I think I have problems understanding the whole A-P-T pattern. Maybe 
someone can help clear it up for me...

An Actor is a Person or an Organization. A Participant can be (in my 
application) a Customer, Customer Contact, Reseller, ResellerContact, 
or Employee. Participants have different roles - for example, all 
Participants can place orders on behalf of customers, and they take 
on the OrderingEntity role. Orders are always paid for by Customers 
in their role as BillableEntities. Now, OrderingEntities and 
BillableEntities are roles that actualize the object connections 
between the Participants and the Transaction objects (in the above 
examples, the Transaction object would be Order), right? They are not 
new Participants. So in this application, while Participants can fill 
multiple roles, each Actor can only be a single Participant. A Person 
participating as a CustomerContact is (in the real world) employed by 
the Customer, so in the application she won't participate as anything 
else. So the A-P pattern seems to serve the purpose of reusing common 
properties and methods, rather than allowing for n-1 relationship 
between Actors and Participants. This seems to me to suggest that the 
application should have a Person class but that the Person will get 
created when a new Participant is created, and that a 'select 
existing Actor as Participant' interface, as Phillip suggests above, 
is not necessary. Am I right, or do I persist in misunderstanding 
A-P-T?

A related problem I've been struggling with is how to allow a 
Reseller to buy product for itself/herself. Normally orders are 
placed for Customers only. Would it make more sense to create a role 
for entities that receive orders (implemented as a Specialist with 
virtual Racks for Customers and Resellers), or to complicate the A-P 
pattern by allowing a single Actor to be both a Reseller and a 
Customer? The new role path seems to make more sense to me, but I've 
been known to be wrong before :).


Here's a pattern for mapping A-P-T interactions onto ZPatterns, however...
If you are doing A-P-T, make sure you use a Specialist for access to the
Actors.  For example, in some applications Ty and I write, "acl_users" is
designated as the Specialist for actors if all actors in the system have to
be able to use the application.  The user interface and implementation for
creating and/or selecting 

Re: [Zope] REQUEST.set('n', n+1) broken on zope.org

2000-12-04 Thread Pavel V. Piankov

Maybe you should try this with the ""

ie

dtml-call "REQUEST.set('n', 1)"
dtml-call "REQUEST.set('n', n+1)"

regards.
-- 
Pavel
Cosmos-Mebel, JSC.   
http://www.cosmos-mebel.spb.ru
- Original Message - 
From: "Richard Jones" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 5 ??? 2000 ?. 9:16
Subject: [Zope] REQUEST.set('n', n+1) broken on zope.org


 As the subject says, REQUEST.set('n', n+1) is broken on zope.org. The
 following DTML will raise an AttributeError on __add__:
 
 dtml-call REQUEST.set('n', 1)
 dtml-call REQUEST.set('n', n+1)
 
 Is this a permanent change and is this going into the Zope codebase?
 
 
 Richard
 
 -- 
 Richard Jones
 [EMAIL PROTECTED]
 Senior Software Developer, Bizar Software
 www.bizarsoftware.com.au
 
 ___
 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] IMAP and WorldPilot?

2000-12-04 Thread Jørn Helge B. Dahl

* "Cymen Vig" [EMAIL PROTECTED]

| I'm trying to setup WorldPilot on one server with IMAP running on another.
| The documentation for the install says simply:
| 
| "Set your corresponding IMAP and SMTP servers, if they are not on
| localhost."
| 
| I went ahead and added a MailHost (SMTP) server but how do I add an IMAP
| one?  Do I need to digup a product?

No, you just need to add the names of your usual IMAP and SMTP-servers
to the config. The MailHost is not needed.
-- 
Jørn Helge B. Dahl
Falch.net developer - http://falch.net


___
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] Patch to avoid hypenation variables and more

2000-12-04 Thread Tino Wildenhain

Hi there,

finally I want to release my patch for the in-tag. I hope
it finds its way into the source-tree.
I was sick writing such ugly constructs as _[_['sequence-item']]
and so on, so I patched DT_In.py and DT_InSV.py 
(in lib/python/DocumentTemplate) to use sequence_item as well.
All hypenation variables have now a second representation with
underscores instead of hypenation. I hope, some time we can
drop these hypenation variables.

The second problem is if you put one in-tag into another.
You have to use dtml-let oder REQUEST.set() with variables
of the outher in-tag to be able to reference them in the inner
loop. The code becomes very ugly this way. So my idea was to
give the in-tag an optional argument, called "prefix" to 
prefix all the sequence-variables with a custom identifier.
So you can write:

dtml-in some_sequence prefix="outer_"
   dtml-in some_other_sequence
 dtml-var outer_sequence_item:dtml-var sequence_item
   /dtml-in the inner sequence
/dtml-in the outer sequence

What do you think about this? 

Attached are the patch files (g-zipped) They are a bit
of size, but I choosed to send them as diff, as requested to
avoid flames ;) (Althought the original files would be similar 
in size) If someone wants the whole files, feel free to write
to me)

Regards
Tino
 DT_In.py.diff.gz
 DT_InSV.py.diff.gz


Re: [Zope] Help - cannot import zexp

2000-12-04 Thread Oleg Broytmann

Hi!

   I already got it! :) I imported earlier zexp and removed default args
from the External Method. The site now seems to do export/import
flawlessly.

   As I said, it's undocumented misfeature. Thanks for documenting it. Can
you make it a Tip or a HOWTO and publish it on zope.org?

On Sun, 3 Dec 2000, Dieter Maurer wrote:
 Oleg Broytmann writes:
    functions as default parameters to external method functions
   cause import problems 
   
  "Cannot import default_render from module __main__". Oops! What's that?
   The default_render isn't in __main__, sure. I tried to create External
   Method before importing, but this didn't help :(
 This is a severe danger of "pickle" and the external method
 implementation:

   *  the implementation does not import the Python source files
  but reads them in and executes them.

  All functions and classes appear to be defined in the
  module "__main__".

   *  The implementation places the function default arguments
  into the ZODB (as a pickle).

   *  "unpickle" cannot load the corresponding object,
  as it imports "__main__" and looks there for the
  function -- in vain.


 As a rule:

   Avoid the use of class of function definitons from
   an external method source file for anything that
   may be written to the ZODB (or more generally
   be pickled; this applies e.g. to session context, too).
   This includes created object instances that may
   end up as attributes of Zope objects or
   function default parameters to external methods.

 If you defined such classes or functions in a true
 Python module, you should have no problem.



 What can you do, if your zexp is valuable?

   *  put a dummy definition of "default_render" in the
  "__main__" module.

  You should then be able to import your zexp
  and change the problematic external method.

  I do not know precisely, what Zope's "__main__"
  module is. I expect the "z2.py".
  If this is not the case, then a small dummy product
  that does "import __main__; __main__.default_render= 0"
  should do the trick, whatever "__main__" may be.

Oleg.

 Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
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] Accessing hierarchical information in a CORBA server

2000-12-04 Thread vonWedel



Hi folks,

I looked into Zope quite recently and I'm very impressed of all its features.
After getting started with some basics, I'd like to make a real-world application,
migrating from a set of CGI-scripts written in Python but I'm still puzzled how to actually
solve my problem, especially using the dtml-tree.

I want to access information in a CORBA server which is more or less hierarchically structured,
so I'd like to use the neat trees to display the hierarchy and selecting one of the items in the
hierarchy directly should open a page with further information about that object.

As I have to use CORBA, an external method written in Python seems the only possible way
to make a connection from the tree to the server. In the How-To's, I found the following example
(http://www.zope.org/Members/anthony/tree-coding-tricks):

class _dummy:
 def __init__(self, name):
   self.name=name

 def child_lookup(parent):
   c = []
   for i in range(0,5):
c.append(_dummy(%s.%d%(parent, i)))
   return c

used like this:

dtml-let name=0
dtml-tree id=name branches_expr=child_lookup(parent=name)
bdtml-var name/b
/dtml-tree
/dtml-let

This toy example is similar to what I would write, but I need to handle different object types on
different levels of the hierarchy. The tree can obviously only handle functions, not real CORBA
objects (as the note in the example section in the HowTo suggests...0, right? This means I have
to cope with large if-then-else constructs in the function given to branches_expr?

CORBA objects are identified by a so-called IOR which is some sort of a stringified object reference
but in a non-readable way. Can I use a non-unique 'display name' for each node in the tree and
some unique identfier (the IOR) internally?

Sorry for so many questions, but I haven't found a lot of info about using the dtml-tree together with
external methods.

Lars

[Zope] newbie guide to getting CVS version of Zope?

2000-12-04 Thread Cymen Vig

Is there a newbies guide to getting the CVS version of Zope off
cvs.zope.org?  I'd like to follow the examples in the Zope Book (draft) but
that is not possible in 2.2.4.

Thanks,
Cymen Vig
[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] ZSQLMethods

2000-12-04 Thread Tom Deprez

Hi,

I'm wondering how the following can be done.

I've 2 databases. I want to do a 'join' with 2 tables, both in a different
database. 
Is it possible to retrieve data of both tables with a ZSQLMethod and then
do a programatically join? What's the easiest python way?

Thanks, 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 )




[Zope] How to use newline_to_br?

2000-12-04 Thread Roland C. Reumerman

Scenario:
- a tried to show a multi-line text field in HTML with the current return 
line feeds converted to BR
- I made a request form with a text field called data
- in the response method there is a dtml-var data fmt="newline_to_br"
On viewing the former, and then submitting it to the latter:
Error Type: TypeError
Error Value: not all arguments converted
??
I tried some alternatives, but nothing worked.

_
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com


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




[Zope] FYI: Speakers for Zope Track at Python conference

2000-12-04 Thread Paul Everitt


Howdy folks, it's that time of year again.  The Python Conference:

  http://www.python9.org/

...is Mar 5-8 in Long Beach, CA, and we're having a Zope Track again this
year.  Last year's conference proved to be a watershed event, with the
attendance rising dramatically, the launching point for ActiveState getting
into Python, and the first Zope Track.  Plus all the snow. :^)

This year will likely be an even greater increase.  Now's the time for
getting the speakers on the Zope Track lined up.  (Actually, the time isn't
now, the time passed a while back.)

If you're interested in giving a presentation or a short talk on the Zope
track, please send me an email *today*.  It is a lot of fun and you'll be
the toast of the town, and as long as you're not slated after Jim's
"Acquisition Algebra" chat, everyone will love to hear what you have to say.
:^)

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




RE: [Zope] How to use newline_to_br?

2000-12-04 Thread Andy Dawkins

Almost got it

dtml-var data newline_to_br

:)

-Andy

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
 Roland C. Reumerman
 Sent: 04 December 2000 12:30
 To: [EMAIL PROTECTED]
 Subject: [Zope] How to use newline_to_br?


 Scenario:
 - a tried to show a multi-line text field in HTML with the current return
 line feeds converted to BR
 - I made a request form with a text field called data
 - in the response method there is a dtml-var data fmt="newline_to_br"
 On viewing the former, and then submitting it to the latter:
 Error Type: TypeError
 Error Value: not all arguments converted
 ??
 I tried some alternatives, but nothing worked.

 __
 ___
 Get more from the Web.  FREE MSN Explorer download :
 http://explorer.msn.com


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



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




Re: [Zope] dynpersist.dll for ZPatterns

2000-12-04 Thread Ot Ratsaphong

Thanks Chris for the link to the dll. Now, show I rename it to
dynpersist.dll? and where should I put it?

Thanks,
Ot

- Original Message -
From: "Chris Withers" [EMAIL PROTECTED]
To: "Ot Ratsaphong" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, December 04, 2000 8:49 PM
Subject: Re: [Zope] dynpersist.dll for ZPatterns



 Ot Ratsaphong wrote:
 
  I am new to Zope (1 week old) and have installed Zope 2.2.4 on my Win98
PC.
 
  I am interested in learning about the Object-Oriented capabilities of
Zope
  and am interested in installing ZPatterns. Unfortunately I do not have
MSVC
  6.0 installed on my PC 8^(. Subsequently I cannot built dynpersist.dll.

 http://zope.nipltd.com/public/lists/dev-archive.nsf/ByKey/CF999B6A9B3C5C68

 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] How to use newline_to_br?

2000-12-04 Thread Max Møller Rasmussen

From: Roland C. Reumerman [mailto:[EMAIL PROTECTED]]

- in the response method there is a dtml-var data fmt="newline_to_br"

You are allmost there:

dtml-var data newline_to_br

Should do it for you

Regards Max M

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




[Zope] How to specify to z sql methods, the connection object to use at runtime...time...

2000-12-04 Thread Frederic Quin

Hi all,

I have the same querry to execute on different servers. I don't want to
create as many z sql methods as servers I have. I would like to specify
to my z sql method, the connection object to use at run time. Do I have
to patch the files of z sql methods ? Can I use directly the connection
object ???


Thanks
Frederic Quin

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




Re: [Zope] newbie question -- database list/report with sort bycolumn header

2000-12-04 Thread Chris Gray

Here's a fragment from a table that allows sorting by clicking the header
in a dtml method named 'displayTable':

table
tr
tha href="displayTable?sort_key=ID+desc"ID/a/th
tha href="displayTable?sort_key=product"Product/a
/tr
dtml-in "SQLSelectQuery(sort_key=REQUEST['sort_key'])"

Then feed sort_key into your SQLSelectQuery to use in an ORDER BY clause.

select * from table order by dtml-var sort_key

You can change the properties of an object in DTML by callling its
manage_changeProperties method, for example:

dtml-call expr="foo.manage_changeProperties(bar='New Value')"

will changes the value of foo's bar property to 'New Value'.

There are several ways of getting the effect of assigning variables in
DTML, but it really isn't meant to have a direct way of declaring and
assigning variables.  The way you're trying to use an object's properties
will, I believe, cause problems in the case of simultaneous users, because
it will act as a global variable.

Cheers,
Chris

On Mon, 4 Dec 2000, John Cappelletti wrote:

 
 I am listing the results of a database query using dtml-in. I'd like to
 be able to give the user the option to re-sort the list by clicking on a
 column header. ok... I'm starting small with a form and radio buttons to
 allow the user to specify the sort.
 
 I've created what I believe to be a global variable for this page using
 the property screen. The variable is to capture the column name for the
 sort. My simple question is how do I assign a value to this variable
 inside of the dtml method! I'm not finding a description of variable
 assignment in the documentation (yeah, I must be missing the obvious).
 
 Any pointers would be appreciated.  (also, know if anyone has
 implemented interactive sort by column header?)
 
 thanks,
 John Cappelletti
   AverStar, Inc.
   1593 Spring Hill Road, Suite 700
   Vienna, VA 22182-2249
   Tel: (703) 827-2606 x 4291 (also, 301 443-7509)
   Fax: (703) 827-5560
 
 
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )
 



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




Re: [Zope] newbie guide to getting CVS version of Zope?

2000-12-04 Thread Chris Gray

The page you're looking for is http://www.zope.org/Resources/CVS_info.

Chris


On Mon, 4 Dec 2000, Cymen Vig wrote:

 Is there a newbies guide to getting the CVS version of Zope off
 cvs.zope.org?  I'd like to follow the examples in the Zope Book (draft) but
 that is not possible in 2.2.4.
 
 Thanks,
 Cymen Vig
 [EMAIL PROTECTED]
 
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )
 



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




[Zope] Import into Data.fs from (unknown) by Zope - Urgent

2000-12-04 Thread Rodrigo Leme de Mello

Hi Zopers,

Have you ever seen any message like this ?

import into /home/zope/214/var/Data.fs from (unknown) by Zope on Dec 3 at
12:25:13
import into /home/zope/214/var/Data.fs from (unknown) by Zope on Dec 3 at
12:23:50
import into /home/zope/214/var/Data.fs from (unknown) by Zope on Dec 3 at
12:10:07
 import into /home/zope/214/var/Data.fs from (unknown) by Zope on Dec 3 at
12:05:30
 import into /home/zope/214/var/Data.fs from (unknown) by Zope on Dec 3 at
11:57:56

I get this message at UNDO log generated by Zope. This is happening every 5
minutes.

Regards

Rodrigo






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




[Zope] How to build a c extension on a linux system

2000-12-04 Thread r . seiffert

i would like to install a zope product that includes a c extension
(DynPersist.c) with a Setup file like this:

*shared*
DynPersist DynPersist.c-I../../ZODB
-I../../../Components/ExtensionClass

has anybody an idea, how to start the compilation ?
thx Ruediger

~
http://www.herrenausstatter.de - Der Online-Herrenausstatter
Kostenlose Serviceline: 0800 -999 66 33
Versandkostenfreie Lieferung - 30 Tage Rückgaberecht
~
Verwaltungsadresse:
DePauli.com Aktiengesellschaft
Stahlgruberring 3 - 81829 München
Telefon: 089 / 530 75 170 - Telefax 089 / 514 50 666

___
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] The inverse of REQUEST.set is ??

2000-12-04 Thread Dennis Nichols

I can do

   dtml-call "REQUEST.set('something','whatever')"

Having done that, I'd like to be able delete 'something' and I do NOT mean just

   dtml-call "REQUEST.set('something','')"

I want it gone! Come on, humor me... is there a good way to do this?

--
Dennis Nichols
[EMAIL PROTECTED]


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




Re: [Zope] ZSQLMethods

2000-12-04 Thread Chris Gray

You want something along these lines:

dtml-in selectFromTable1
   dtml-in expr="selectFromTable2(id=_['id'])"
  display record
   /dtml-in
/dtml-in

This would be more efficient than pulling out the whole of two tables.

Chris

On Mon, 4 Dec 2000, Tom Deprez wrote:

 Hi,
 
 I'm wondering how the following can be done.
 
 I've 2 databases. I want to do a 'join' with 2 tables, both in a different
 database. 
 Is it possible to retrieve data of both tables with a ZSQLMethod and then
 do a programatically join? What's the easiest python way?
 
 Thanks, 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 )
 


___
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] The not-very-Super user

2000-12-04 Thread Brian Lloyd

 I notice there were some CVS checkins about renaming it to the
 'emergency user'. Cool, does this mean you're going to be able to define
 a manager at install-time?

Yes - the whole lame login-as-superuser-create-a-manager-and-relogin 
process will be gone in 2.3. At install time you'll create a first 
manager and just use that. A "superuser" will not even exist, unless 
and until you need it and explicitly create it.

 Hmmm, if so, what is it that the emergency/super user can do that a
 normal manager can't?

He can un-screw permissions or users if you ever manage to 
get totally locked out of your site. Think of it as a user mounted 
in a box on the wall labeled "in case of emergency, break glass". 

In practice, few should ever have to break the glass.

Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com 




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




Re: [Zope] How to build a c extension on a linux system

2000-12-04 Thread Oleg Broytmann

On Mon, 4 Dec 2000 [EMAIL PROTECTED] wrote:
 i would like to install a zope product that includes a c extension
 (DynPersist.c) with a Setup file like this:

 *shared*
 DynPersist DynPersist.c-I../../ZODB
 -I../../../Components/ExtensionClass

 has anybody an idea, how to start the compilation ?

   make -f $SOMEWHERE/Makefile.pre.in boot  make

Oleg.

 Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


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

2000-12-04 Thread Tom Deprez

Hi Chris,

Thanks, is this code still efficient if the tables relate to 1:1 and you
need to show a list of all records in a tabulare table?

eg key, NAME, ALIAS, 

where NAME is from database1 and ALIAS is from database2

The code below would impact that for every record in database1, I've to
query database2
Is there another way to do this? (more efficient?, ie less database query)

Tom.

- Original Message -
From: "Chris Gray" [EMAIL PROTECTED]
To: "Tom Deprez" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, December 04, 2000 3:45 PM
Subject: Re: [Zope] ZSQLMethods


 You want something along these lines:

 dtml-in selectFromTable1
dtml-in expr="selectFromTable2(id=_['id'])"
   display record
/dtml-in
 /dtml-in

 This would be more efficient than pulling out the whole of two tables.

 Chris

 On Mon, 4 Dec 2000, Tom Deprez wrote:

  Hi,
 
  I'm wondering how the following can be done.
 
  I've 2 databases. I want to do a 'join' with 2 tables, both in a
different
  database.
  Is it possible to retrieve data of both tables with a ZSQLMethod and
then
  do a programatically join? What's the easiest python way?
 
  Thanks, 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 )
 


 ___
 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] The not-very-Super user

2000-12-04 Thread Max Møller Rasmussen

From: Brian Lloyd [mailto:[EMAIL PROTECTED]]

Yes - the whole lame login-as-superuser-create-a-manager-and-relogin 
process will be gone in 2.3. At install time you'll create a first 
manager and just use that. A "superuser" will not even exist, unless 
and until you need it and explicitly create it.

Any timeframe on that 2.3 beast?

regards

Max M

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

2000-12-04 Thread Chris Gray

Try something like:

dtml-in selectFromTable1
  dtml-in selectFromTable2
 dtml-if idFromTable1 = idFromTable2
display parts of the two records
 /dtml-if
  /dtml-in
/dtml-in

This keeps it to two db queries and the join work is done by Zope.

Chris

On Mon, 4 Dec 2000, Tom Deprez wrote:

 Hi Chris,
 
 Thanks, is this code still efficient if the tables relate to 1:1 and you
 need to show a list of all records in a tabulare table?
 
 eg key, NAME, ALIAS, 
 
 where NAME is from database1 and ALIAS is from database2
 
 The code below would impact that for every record in database1, I've to
 query database2
 Is there another way to do this? (more efficient?, ie less database query)
 
 Tom.
 
 - Original Message -
 From: "Chris Gray" [EMAIL PROTECTED]
 To: "Tom Deprez" [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Monday, December 04, 2000 3:45 PM
 Subject: Re: [Zope] ZSQLMethods
 
 
  You want something along these lines:
 
  dtml-in selectFromTable1
 dtml-in expr="selectFromTable2(id=_['id'])"
display record
 /dtml-in
  /dtml-in
 
  This would be more efficient than pulling out the whole of two tables.
 
  Chris
 
  On Mon, 4 Dec 2000, Tom Deprez wrote:
 
   Hi,
  
   I'm wondering how the following can be done.
  
   I've 2 databases. I want to do a 'join' with 2 tables, both in a
 different
   database.
   Is it possible to retrieve data of both tables with a ZSQLMethod and
 then
   do a programatically join? What's the easiest python way?
  
   Thanks, 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 )
  
 
 
  ___
  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] The not-very-Super user

2000-12-04 Thread Chris Withers

Brian Lloyd wrote:
 
  I notice there were some CVS checkins about renaming it to the
  'emergency user'. Cool, does this mean you're going to be able to define
  a manager at install-time?
 
 Yes - the whole lame login-as-superuser-create-a-manager-and-relogin
 process will be gone in 2.3. At install time you'll create a first
 manager and just use that. 

Yay!

As Max asked, any 2.3 timeframe? Python Scripts and no Super User alone
make it _very_ enticing :-))

 He can un-screw permissions or users if you ever manage to
 get totally locked out of your site. Think of it as a user mounted
 in a box on the wall labeled "in case of emergency, break glass".

How does this differ from a normal manager and how would you 'create a
super user' as you descriebd in the bit I snipped?

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] ZSQLMethods

2000-12-04 Thread Chris Gray

Just had a few additional points:

Should be dtml-if idFromTable1 == idFromTable2 of course.

You'll have problems if columns have the same name in the two tables.  You
may have to modify ZSQL methods from 'select column_name' to 'select
column_name as distinct_name' to get around this.

Chris


On Mon, 4 Dec 2000, Chris Gray wrote:

 Try something like:
 
 dtml-in selectFromTable1
   dtml-in selectFromTable2
  dtml-if idFromTable1 = idFromTable2
 display parts of the two records
  /dtml-if
   /dtml-in
 /dtml-in
 
 This keeps it to two db queries and the join work is done by Zope.
 
 Chris
 
 On Mon, 4 Dec 2000, Tom Deprez wrote:
 
  Hi Chris,
  
  Thanks, is this code still efficient if the tables relate to 1:1 and you
  need to show a list of all records in a tabulare table?
  
  eg key, NAME, ALIAS, 
  
  where NAME is from database1 and ALIAS is from database2
  
  The code below would impact that for every record in database1, I've to
  query database2
  Is there another way to do this? (more efficient?, ie less database query)
  
  Tom.
  
  - Original Message -
  From: "Chris Gray" [EMAIL PROTECTED]
  To: "Tom Deprez" [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Sent: Monday, December 04, 2000 3:45 PM
  Subject: Re: [Zope] ZSQLMethods
  
  
   You want something along these lines:
  
   dtml-in selectFromTable1
  dtml-in expr="selectFromTable2(id=_['id'])"
 display record
  /dtml-in
   /dtml-in
  
   This would be more efficient than pulling out the whole of two tables.
  
   Chris
  
   On Mon, 4 Dec 2000, Tom Deprez wrote:
  
Hi,
   
I'm wondering how the following can be done.
   
I've 2 databases. I want to do a 'join' with 2 tables, both in a
  different
database.
Is it possible to retrieve data of both tables with a ZSQLMethod and
  then
do a programatically join? What's the easiest python way?
   
Thanks, 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 )
   
  
  
   ___
   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] How to build a c extension on a linux system

2000-12-04 Thread Steve Spicklemire



I keep my own CVS'ed versions of ZPatterns and PlugIns so I can
patch/change with a little control. For my own convenience I 
put a build.py file in the ZPatterns directory and my usual
sequence is:


cvs co ZPatterns
cvs co PlugIns

cd ZPatterns
python build.py

this way I don't have to think very hard when 
I'm installing on a new Zope 


build.py:
--
import os


os.system('cp /usr/local/lib/python1.5/config/Makefile.pre.in .')
os.system('make -f Makefile.pre.in boot')
os.system('make')

--

Is that what you're looking for?

-steve

R 
R 
R i would like to install a zope product that includes a c extension
R (DynPersist.c) with a Setup file like this:
R 
R *shared*
R DynPersist DynPersist.c-I../../ZODB
R -I../../../Components/ExtensionClass
R 
R has anybody an idea, how to start the compilation ?
R thx Ruediger
R 
R ~
R http://www.herrenausstatter.de - Der Online-Herrenausstatter
R Kostenlose Serviceline: 0800 -999 66 33
R Versandkostenfreie Lieferung - 30 Tage Rückgaberecht
R ~
R Verwaltungsadresse:
R DePauli.com Aktiengesellschaft
R Stahlgruberring 3 - 81829 München
R Telefon: 089 / 530 75 170 - Telefax 089 / 514 50 666
R 
R ___
R Zope maillist  -  [EMAIL PROTECTED]
R http://lists.zope.org/mailman/listinfo/zope
R **   No cross posts or HTML encoding!  **
R (Related lists - 
R  http://lists.zope.org/mailman/listinfo/zope-announce
R  http://lists.zope.org/mailman/listinfo/zope-dev )
R 

___
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] The not-very-Super user

2000-12-04 Thread Brian Lloyd

   I notice there were some CVS checkins about renaming it to the
   'emergency user'. Cool, does this mean you're going to be 
 able to define
   a manager at install-time?
  
  Yes - the whole lame login-as-superuser-create-a-manager-and-relogin
  process will be gone in 2.3. At install time you'll create a first
  manager and just use that. 
 
 Yay!
 
 As Max asked, any 2.3 timeframe? Python Scripts and no Super User alone
 make it _very_ enticing :-))

I would reaaally like to see a beta by the end of 
Dec. - but don't quote me yet. Part of what I'm doing 
today is figuring what the resource situation looks like.


  He can un-screw permissions or users if you ever manage to
  get totally locked out of your site. Think of it as a user mounted
  in a box on the wall labeled "in case of emergency, break glass".
 
 How does this differ from a normal manager and how would you 'create a
 super user' as you descriebd in the bit I snipped?

An example might be: if somehow someone took all permissions
away from all of your managers, they'd be out of luck. The 
superuser could still log in and fix that though.

I don't know the exact details of how a superuser is created 
yet - I expect that you will run zpasswd.py with a special 
option though (and restart). The relevant install docs will 
be updated to outline this when that branch is merged.


Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com 





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




Re: [Zope] ZSQLMethods

2000-12-04 Thread Phil Harris

Depending on the number of records in the tables this could get *very* slow
*very* quickly.

Surely the ideal would be to move/copy the tables into the same DB.

Phil

- Original Message -
From: "Chris Gray" [EMAIL PROTECTED]
To: "Tom Deprez" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, December 04, 2000 3:21 PM
Subject: Re: [Zope] ZSQLMethods


 Try something like:

 dtml-in selectFromTable1
   dtml-in selectFromTable2
  dtml-if idFromTable1 = idFromTable2
 display parts of the two records
  /dtml-if
   /dtml-in
 /dtml-in

 This keeps it to two db queries and the join work is done by Zope.

 Chris

 On Mon, 4 Dec 2000, Tom Deprez wrote:

  Hi Chris,
 
  Thanks, is this code still efficient if the tables relate to 1:1 and you
  need to show a list of all records in a tabulare table?
 
  eg key, NAME, ALIAS, 
 
  where NAME is from database1 and ALIAS is from database2
 
  The code below would impact that for every record in database1, I've to
  query database2
  Is there another way to do this? (more efficient?, ie less database
query)
 
  Tom.
 
  - Original Message -
  From: "Chris Gray" [EMAIL PROTECTED]
  To: "Tom Deprez" [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Sent: Monday, December 04, 2000 3:45 PM
  Subject: Re: [Zope] ZSQLMethods
 
 
   You want something along these lines:
  
   dtml-in selectFromTable1
  dtml-in expr="selectFromTable2(id=_['id'])"
 display record
  /dtml-in
   /dtml-in
  
   This would be more efficient than pulling out the whole of two tables.
  
   Chris
  
   On Mon, 4 Dec 2000, Tom Deprez wrote:
  
Hi,
   
I'm wondering how the following can be done.
   
I've 2 databases. I want to do a 'join' with 2 tables, both in a
  different
database.
Is it possible to retrieve data of both tables with a ZSQLMethod and
  then
do a programatically join? What's the easiest python way?
   
Thanks, 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 )
   
  
  
   ___
   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: [Zope-ZEO] Zope 2.2.4 ZEO 0.4.1 (latest anyway) doesn't want to add Products

2000-12-04 Thread Jason Cunliffe

 Shane Hathaway wrote:

  Bill Anderson wrote:
On a related note, has anyone successfully made a mounted ZEOStorage
thingum yet (mounted FileStorage for ZEO).
 
  The Wikis folder on zope.org is now a ZEO mount.  We have chosen to use
  the ExternalMount product we created internally.  It calls an external
  method to open the storage and create the database.  It has the
  flexibility advantages we need; for example it lets you move a .fs file
  from non-ZEO to ZEO and back without going through a long recataloging
  process.
 
  Anyone interested in it?
 
  Shane

 Yes please.

We are also interested. =+ 'Yes Please'

- Jason
_
Jason Cunliffe = Nomadics['Zmaps'].design




___
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] PythonScripts and ExternalMethods

2000-12-04 Thread Chris Gray

I notice that the CVS tree for Zope2 has incorporated (internal)
PythonScripts and gotten rid of (external) PythonScripts.  This leaves the
old ExternalMethods but without the Bindings tab.  Will External Methods
eventually include this and present a form for passing argument values
when the TryIt tab is used?

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] ZSQLMethods

2000-12-04 Thread Tom Deprez

Yes, that's true, but then you're doubling the amount of data. And everytime
you change the table in one database, you've to copy the table in the other
database. What if this has to be done daily?

So, I need to find a way from which we'll benefit the most.

Tom.

- Original Message -
From: "Phil Harris" [EMAIL PROTECTED]
To: "Chris Gray" [EMAIL PROTECTED]; "Tom Deprez"
[EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, December 04, 2000 5:06 PM
Subject: Re: [Zope] ZSQLMethods


 Depending on the number of records in the tables this could get *very*
slow
 *very* quickly.

 Surely the ideal would be to move/copy the tables into the same DB.

 Phil

 - Original Message -
 From: "Chris Gray" [EMAIL PROTECTED]
 To: "Tom Deprez" [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Monday, December 04, 2000 3:21 PM
 Subject: Re: [Zope] ZSQLMethods


  Try something like:
 
  dtml-in selectFromTable1
dtml-in selectFromTable2
   dtml-if idFromTable1 = idFromTable2
  display parts of the two records
   /dtml-if
/dtml-in
  /dtml-in
 
  This keeps it to two db queries and the join work is done by Zope.
 
  Chris
 
  On Mon, 4 Dec 2000, Tom Deprez wrote:
 
   Hi Chris,
  
   Thanks, is this code still efficient if the tables relate to 1:1 and
you
   need to show a list of all records in a tabulare table?
  
   eg key, NAME, ALIAS, 
  
   where NAME is from database1 and ALIAS is from database2
  
   The code below would impact that for every record in database1, I've
to
   query database2
   Is there another way to do this? (more efficient?, ie less database
 query)
  
   Tom.
  
   - Original Message -
   From: "Chris Gray" [EMAIL PROTECTED]
   To: "Tom Deprez" [EMAIL PROTECTED]
   Cc: [EMAIL PROTECTED]
   Sent: Monday, December 04, 2000 3:45 PM
   Subject: Re: [Zope] ZSQLMethods
  
  
You want something along these lines:
   
dtml-in selectFromTable1
   dtml-in expr="selectFromTable2(id=_['id'])"
  display record
   /dtml-in
/dtml-in
   
This would be more efficient than pulling out the whole of two
tables.
   
Chris
   
On Mon, 4 Dec 2000, Tom Deprez wrote:
   
 Hi,

 I'm wondering how the following can be done.

 I've 2 databases. I want to do a 'join' with 2 tables, both in a
   different
 database.
 Is it possible to retrieve data of both tables with a ZSQLMethod
and
   then
 do a programatically join? What's the easiest python way?

 Thanks, 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 )

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

2000-12-04 Thread Chris Gray

Right, Phil.  Mental lapse on my part.

The nested dtml-ins will be very inefficient because the select on the
whole of table2 in the inner one will be repeated once for each record in
table1.  I was thinking it would only get executed once.

The first solution I offered is better especially if table2 is indexed on
id, but you're still executing a repeated query on table2.

dtml-in selectFromTable1
  dtml-in expr="selectFromTable2(id=_['id'])"
 display record
  /dtml-in
/dtml-in

Chris


On Mon, 4 Dec 2000, Phil Harris wrote:

 Depending on the number of records in the tables this could get *very* slow
 *very* quickly.
 
 Surely the ideal would be to move/copy the tables into the same DB.
 
 Phil
 
 - Original Message -
 From: "Chris Gray" [EMAIL PROTECTED]
 To: "Tom Deprez" [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Monday, December 04, 2000 3:21 PM
 Subject: Re: [Zope] ZSQLMethods
 
 
  Try something like:
 
  dtml-in selectFromTable1
dtml-in selectFromTable2
   dtml-if idFromTable1 = idFromTable2
  display parts of the two records
   /dtml-if
/dtml-in
  /dtml-in
 
  This keeps it to two db queries and the join work is done by Zope.
 
  Chris
 
  On Mon, 4 Dec 2000, Tom Deprez wrote:
 
   Hi Chris,
  
   Thanks, is this code still efficient if the tables relate to 1:1 and you
   need to show a list of all records in a tabulare table?
  
   eg key, NAME, ALIAS, 
  
   where NAME is from database1 and ALIAS is from database2
  
   The code below would impact that for every record in database1, I've to
   query database2
   Is there another way to do this? (more efficient?, ie less database
 query)
  
   Tom.
  
   - Original Message -
   From: "Chris Gray" [EMAIL PROTECTED]
   To: "Tom Deprez" [EMAIL PROTECTED]
   Cc: [EMAIL PROTECTED]
   Sent: Monday, December 04, 2000 3:45 PM
   Subject: Re: [Zope] ZSQLMethods
  
  
You want something along these lines:
   
dtml-in selectFromTable1
   dtml-in expr="selectFromTable2(id=_['id'])"
  display record
   /dtml-in
/dtml-in
   
This would be more efficient than pulling out the whole of two tables.
   
Chris
   
On Mon, 4 Dec 2000, Tom Deprez wrote:
   
 Hi,

 I'm wondering how the following can be done.

 I've 2 databases. I want to do a 'join' with 2 tables, both in a
   different
 database.
 Is it possible to retrieve data of both tables with a ZSQLMethod and
   then
 do a programatically join? What's the easiest python way?

 Thanks, 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 )

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




[Zope] where (required)

2000-12-04 Thread Tom Deprez

Hi,

I've a sort of interpretation error :

I want to use the following query 2 ways :

1. Provinding the variables. (will give me one record)
2. Without providing the variables. (will give me all records).

I use the following query :

select *
from address
dtml-sqlgroup where
dtml-sqltest A_CENTRENO column=ADDRESS.CENTRE_NO type=int optional
  dtml-and
dtml-sqltest A_NAMELINE1 column=ADDRESS.NAME_LINE1 op=CONTAINING
type=nb optional
  dtml-and
dtml-sqltest A_POSTALCODE column=ADDRESS.POSTAL_CODE type=nb optional
  dtml-and
dtml-sqltest A_CITY op=CONTAINING column=ADDRESS.CITY type=nb optional
  dtml-and
dtml-sqltest A_STATEPROVINCE column=ADDRESS.STATE_PROVINCE type=nb
optional
  dtml-and
dtml-sqltest A_AREANO column=ADDRESS.AREA_NO type=nb optional
  dtml-and
dtml-sqltest A_PHONENO column=ADDRESS.PHONE_NO type=nb optional

Although the where clause is optional, even the parameters are optional, if
I just call the method without parameters, I get the following error. Is
this normal? Why then is there a parameter 'required' with the Where-tag?

Error Type: Bad Request
Error Value: ['A_CENTRENO', 'A_NAMELINE1', 'A_POSTALCODE', 'A_CITY',
'A_STATEPROVINCE', 'A_AREANO', 'A_PHONENO']

Thanks,
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] Patch to avoid hypenation variables and more

2000-12-04 Thread Tino Wildenhain

Hi Chris,

Chris Withers schrieb:
 
 Tino Wildenhain wrote:
 
  finally I want to release my patch for the in-tag. I hope
  it finds its way into the source-tree.
 
 Looks very cool :-)
 
 Is it in the collector yet?

I've put it on the collector, but I'm not very sure I did it the
right way ;-)
But lets hope we can have it in the next release...

Regards 
Tino

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

2000-12-04 Thread Stefan H. Holek

On Mon, 4 Dec 2000, Tom Deprez wrote:

 Thanks, is this code still efficient if the tables relate to 1:1 and you
 need to show a list of all records in a tabulare table?
 
 eg key, NAME, ALIAS, 
 
 where NAME is from database1 and ALIAS is from database2
 
 The code below would impact that for every record in database1, I've to
 query database2
 Is there another way to do this? (more efficient?, ie less database query)

This might not apply to your case, but with many RDBMS you can also use
the dbname when qualifying columns. With MySQL for example, having 2 dbs
on the same server you can say:

select db1.table1.column1, db2.table2.column2
from db1.table1, db2.table2
...


HTH,
Stefan


___
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] siblings of me, rather than of parent

2000-12-04 Thread Randall Kern



ahahhaha!!! (sorry, been up _way_ too 
long.)

the trick was returning ob.aq_base.__of__(self), 
not ob.aq_inner.__of__(self)!

Seems to work great now.
-Randy

  - Original Message - 
  From: 
  Randall Kern 
  
  To: [EMAIL PROTECTED] 
  Sent: Sunday, December 03, 2000 11:08 
  PM
  Subject: Re: [Zope] siblings of me, 
  rather than of parent
  
  Sorry, my __bobo_traverse__ method is working, 
  the PARENTS stack is exactly as I would hope, with my module as the parent of 
  the category, rather than the root.
  
  Here's the whole story:
  
  /
   index_html 
  (dtml method)
   index.html 
  (dtml method)
   category (Folder)
  foo.html 
  (dtml method)
   blah 
  (Module)
   
  category (Folder)
   
  header.html (dtml method)
   weather 
  (Category)
  
  /index_html:
   dtml-var 
  index.html
  
  /index.html:
   dtml-var 
  standard_html_header
  
   dtml-if expr="meta_type == 
  'Category'" !-- true in cases of url like 
  /blah/weather --

  dtml-call expr="REQUEST.set('splevel', category)"
   /dtml-if
  
   dtml-with splevel 
  mapping

  dtml-var header.html
   
/dtml-with
  
   dtml-var 
  standard_html_footer
  
  
  Now, what I hope to happen is that the dtml-with 
  would bind to the /blah/category folder, and therefore be able to find 
  header.html. However, somehow it's getting the /category folder instead, 
  which doesn't have header.html.
  
  Anyone understand why this is 
  happening?
  
  Thanks again,
  -Randy
  
- Original Message - 
From: 
Randall 
Kern 
To: [EMAIL PROTECTED] 
Sent: Sunday, December 03, 2000 8:08 
PM
Subject: [Zope] siblings of me, rather 
than of parent

My site has two main classes of objects, 
Modules (and their derivatives), and Categories. A normal setup might 
look something like this:

root
 blab 
(Module)
 weather 
(Category)
 rain 
(Category)
  sun 
(Category)
 region 
(Category)

I need to handle URLs like 
/root/blab/weather. The problem is that I need weather.__of__(blab) on 
the stack, rather than weather.__of__(root) on top. This is because 
blab (in some cases) overrides default behaviors from root.

I thought the proper way to do this was by 
adding a __bobo_traverse__ method to my Module, like this:

 def __bobo_traverse__(self, 
REQUEST, name): 
try: 
parents = 
REQUEST['PARENTS'] 
parent = 
parents[-2] 
if hasattr(parent, 
name): 
ob = getattr(parent, 
name) 
if ob.meta_type == 
'Category': 
return 
ob.aq_inner.__of__(self) 
except: 
pass

 
return getattr(self, name)

But that doesn't seem to change anything, 
although it does perform the return (and doesn't throw any 
exceptions.)

Basically, I'm trying to offer my siblings as 
if they were my children, so if they fail to offer something, it will be 
looked for in me, rather than my parent.

Thanks,
-Randy


Re: [Zope] Patch to avoid hypenation variables and more

2000-12-04 Thread Michel Pelletier

On Mon, 4 Dec 2000, Tino Wildenhain wrote:

 Hi there,
 
 finally I want to release my patch for the in-tag. I hope
 it finds its way into the source-tree.
 I was sick writing such ugly constructs as _[_['sequence-item']]
 and so on, so I patched DT_In.py and DT_InSV.py 
 (in lib/python/DocumentTemplate) to use sequence_item as well.
 All hypenation variables have now a second representation with
 underscores instead of hypenation. I hope, some time we can
 drop these hypenation variables.

Or drop DTML entirely.
 
 The second problem is if you put one in-tag into another.
 You have to use dtml-let oder REQUEST.set() with variables
 of the outher in-tag to be able to reference them in the inner
 loop. The code becomes very ugly this way. So my idea was to
 give the in-tag an optional argument, called "prefix" to 
 prefix all the sequence-variables with a custom identifier.
 So you can write:
 
 dtml-in some_sequence prefix="outer_"
dtml-in some_other_sequence
  dtml-var outer_sequence_item:dtml-var sequence_item
/dtml-in the inner sequence
 /dtml-in the outer sequence
 
 What do you think about this? 

It's cool.  Your patches are big and therefore, naturally, are a bit
worrisome to us in terms of checking them into the core.  Do you have a
set of test DTML scripts that verify your patch?  Say, a set of scripts
that verifies backwards compatibity, and a set of scripts that verifies
the new functionality?  I would suggest even investigating "ZUnit" and
creating DTML unit tests.  Then we would *really* love you.  ;)

-Michel



___
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: [Zope-ZEO] Zope 2.2.4 ZEO 0.4.1 (latest anyway) doesn't want to add Products

2000-12-04 Thread Shane Hathaway

Jason Cunliffe wrote:
 
  Shane Hathaway wrote:
 
   Bill Anderson wrote:
 On a related note, has anyone successfully made a mounted ZEOStorage
 thingum yet (mounted FileStorage for ZEO).
  
   The Wikis folder on zope.org is now a ZEO mount.  We have chosen to use
   the ExternalMount product we created internally.  It calls an external
   method to open the storage and create the database.  It has the
   flexibility advantages we need; for example it lets you move a .fs file
   from non-ZEO to ZEO and back without going through a long recataloging
   process.
  
   Anyone interested in it?
  
   Shane
 
  Yes please.
 
 We are also interested. =+ 'Yes Please'

Just packaged up.

http://www.zope.org/Members/hathawsh/ExternalMount

Shane

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




[Zope] Why is acl_users Contents hidden?

2000-12-04 Thread Kyler B. Laird


I've been planning on using roles to control
access to folders.  Unfortunately, I find that
if a user doesn't have the "Manage" role, 
requests to acl_users/manage_workspace will
get redirected to acl_users/manage_access and
no "Contents" tab will be shown.

The user can still go to acl_users/manage_main
and manage users, but he must know how to get
there.  Is there a simple fix?

Thanks.

--kyler

___
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] PythonScripts and ExternalMethods

2000-12-04 Thread Evan Simpson

From: Chris Gray [EMAIL PROTECTED]
 I notice that the CVS tree for Zope2 has incorporated
(internal)
 PythonScripts and gotten rid of (external) PythonScripts.
This leaves the
 old ExternalMethods but without the Bindings tab.  Will
External Methods
 eventually include this and present a form for passing
argument values
 when the TryIt tab is used?

Jim and I expect to make External Methods obsolete, rather
than upgrading them.  In the near future, you will be able
to get most of the functionality of External Methods from
Python Scripts' import capability.  In the longer term, we
expect Zope 3 to completely change the way you write Zope
code.

In the meantime, External Methods work pretty well.

Cheers,

Evan @ digicool  4-am


___
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] Restart...

2000-12-04 Thread Cees de Groot

I said:
I'll probably start experimenting with ZEO and IDLE and a way to get 
unrestricted Python code into ZODB. Smalltalk kicks ass, and Zope is only that 
far from becoming a superset of it.


I did a quick hack that might be interesting to take a look at. I posted
it on zope-dev, here's the link:
  http://lists.zope.org/pipermail/zope-dev/2000-December/008164.html

Basically it's a quick hack to let you browse Zope's ZODB from within
IDLE. The next steps I'm thinking about is see whether tkhtml works
with Tkinter (anyone?) and if yes, open tkhtml windows as a double
click action on the DB browser tree (with communication, if possible,
through Python and not through HTTP).

I'm aware of the (stalled?) Zope-devenv-under- mozilla project. The
approach by extending IDLE seems much simpler to me, and I think Zope
really needs a decent development environment in order to move from
useful to insanely useful - I did a pilot project with Zope last week
(http://domein.worldsites.be), and while I am not unhappy with the 
result as a producer, I am very unhappy with the result as a software
engineer. Zope needs an IDE and a decent versioning system (the current
CVS project is a good start, but as far as I can see it at the moment
too cumbersome to be practical), and until that time I fear I'll 
have do all my work in Python (maybe with Webware, it seems decent
enough and has better support, through its single-shot adapter, for
development-time work in Python).


-- 
Cees de Groot   http://www.cdegroot.com [EMAIL PROTECTED]
GnuPG 1024D/E0989E8B 0016 F679 F38D 5946 4ECD  1986 F303 937F E098 9E8B

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




Re: [Zope] dtml methods and properties

2000-12-04 Thread Dieter Maurer

Willem Broekema writes:
  As a DTML method is said to work with the properties of the object it
  is called at:
  
  DTML method "m":
   dtml-var bobobase_modification_time
  
  root folder of site/m 
   displays the date/time when the last change happened to any file
   in the root folder
  
  root folder/m/m
   displays last change date/time of method m
  
  Why does the method not display it's modification time on the first
  occasion? Or: why does it not give the folder's modification time
  on the second occasion?
I suggest, you read the sections about the DTML namespace
in the upcoming Zope book (online on zope.org).

  You will learn that the namespace is a stack of bindings. When a name
  is looked up, the bindings on the stack are successively asked about
  the looked up name. The first binding that knows the name succeeds
  and returns the value.

At a different place in the book, you learn that

  a DTML method (in contrast to a DTML document) does not
  push itself onto the DTML namespace.
  Thus, you look through the DTML method onto the object,
  the method has been called for.
  You will not see the DTML method's own attributes or methods.


In your first example, "bobobase_modification_time"
is the attribute of the object, "m" has been called for:
this is "root folder of site".

In second first example, "bobobase_modification_time"
is the attribute of the object, "m" has been called for:
this is "m" in "root folder of site".
Thus, you see "m"'s "bobobase_modification_time".
It is however, the first, not the second "m".


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] REQUEST.set('n', n+1) broken on zope.org

2000-12-04 Thread Dieter Maurer

Richard Jones writes:
  As the subject says, REQUEST.set('n', n+1) is broken on zope.org. The
  following DTML will raise an AttributeError on __add__:
  
  dtml-call REQUEST.set('n', 1)
  dtml-call REQUEST.set('n', n+1)
There may be a simple explanation
(someone else already pointed out, that you need to use "...";
I expect, you did as otherwise, you would get a "KeyError"):

  There may be an object named "n" somewhere in the
  acquisition context. An object that does not define
  an "__add__" method.

As you probably know (or can reread in the documentation),
"REQUEST" has quite a low priority for lookups
(in fact, it is at the bottom of the acquisition context).
It is therefore easy to have a REQUEST definition overridden.
Use "REQUEST['n']+1" instead of "n+1".



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] Accessing hierarchical information in a CORBA server

2000-12-04 Thread Dieter Maurer

[EMAIL PROTECTED] writes:
  Dies ist eine mehrteilige Nachricht im MIME-Format.
  --=_alternative 0034F414C12569AB_=
  Content-Type: text/plain; charset="us-ascii"
Can you avoid to send MIME messages into this list?

  ... tree for hierarchical data on CORBA server ...
  ... from (http://www.zope.org/Members/anthony/tree-coding-tricks:
  class _dummy:
 def __init__(self, name):
self.name=name
  
 def child_lookup(parent):
c = []
for i in range(0,5):
   c.append(_dummy("%s.%d"%(parent, i)))
return c
  
  used like this:
  
  dtml-let name="0"
  dtml-tree id=name branches_expr="child_lookup(parent=name)"
  bdtml-var name/b
  /dtml-tree
  /dtml-let
  
  
  The tree can obviously only handle 
  functions, not real CORBA
  objects
The tree can (and does) handle objects.
The expression "branches_expr" is evaluated in the context of
the current objects.

As Python is dynamically typed, the objects can have
different types. The only restriction: "branches_expr" must
be evaluable in each context.

  CORBA objects are identified by a so-called IOR which is some sort of a 
  stringified object reference
  but in a non-readable way. Can I use a non-unique 'display name' for each 
  node in the tree and
  some unique identfier (the IOR) internally?
Of cause, the "display names" must be locally unique (i.e. in their parent).
They need not be globally unique.

  Sorry for so many questions, but I haven't found a lot of info about using 
  the dtml-tree together with
  external methods.
I saw two questions. That's not a lot.



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] Passing lists in a get request (ZCatalog Search)

2000-12-04 Thread Dieter Maurer

[EMAIL PROTECTED] writes:
  | Someone else suggested to use a post (rather than get) request.
  | In general, I would warn you against this solution.
  | It will break the "dtml-in" batch support.
  
  Could you elaborate on this?
"dtml-in"'s batch support uses the CGI variable QUERY_STRING.
This is only defined for GET requests.

As a consequence, there is no batch support (i.e. automatically
splitting long list displays over several pages) for
POST requests.


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] ZSQLMethods

2000-12-04 Thread Dieter Maurer

Tom Deprez writes:
  I'm wondering how the following can be done.
  
  I've 2 databases. I want to do a 'join' with 2 tables, both in a different
  database. 
  Is it possible to retrieve data of both tables with a ZSQLMethod and then
  do a programatically join? What's the easiest python way?
Search the (seachable) list archive.

  There was recently a thread about getting data from two ODBC
  data sources and joining the results.



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] confusing access error

2000-12-04 Thread Dieter Maurer

Matthew Wilbert writes:
  I am getting an access error I don't understand at all,
  
  dtml-in "ZopeFind(this())"
 dtml-var sequence-item
  
  Zope Error
  Zope has encountered an error while publishing this resource.
  Unauthorized
   
  You are not authorized to access title_or_id.


What Zope version do you use.

You need at least Zope 2.2.2 as there was a bug in earlier
Zope versions. This bug may present itself exactly as
you described.


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] On DTML and Python Script.

2000-12-04 Thread Jason C. Leach

hi,

For Christmas I'd like a way to be able to use PHP or ASP type scripting
rather than DTML.

like:

%py

My python Script or Code.

py%

Or
dtml

My DTML.

/dtml

Having to manager all those dtml  and tags is not as good as it could
be.  I suspect it's more of a deturant than anything else. I do agree that
DMTL should be use as little as possible with Python used for anything
over 10 lines.  But why have a scripting language for both methods over
and under 10 lines?

j.

..
. Jason C. Leach
... University College of the Cariboo.
.. 


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




[Zope] Problem with DCOracle interface for Python

2000-12-04 Thread Slim_Bouzguenda



To who it may concern:

I am having a problem when I try to run a python application on a Sun server:
it crashes when it interfaces with the oracle database.  The error message that
I got after debugging is the following:
/usr/local/lib/python1.5/DCOracle/ociCurs.py(269)execute( )

Here are the versions of the program, file, and the Oracle server that I am
using:
- python  version 1.5
- ociCurs  version 1.8
- Oracle8.1.6 server

Note: I tried to run the same python application to do the same task in HP
server, and I did NOT have any problem; the interface with the database went
fine, and the application rans smoothly.

I am not sure why it did crash on the Sun server, but it did not on HP server.
The versions of the file, programs, and the Oracle server are the same for both
HP and Sun.

It would be great if someone could give me some suggestions or hints to solve
the problem.  I would appreciate that.  I can be reached at (303) 215-7872 or by
e-mail.

Best regards,

Slim Bouzguenda
E-mail: [EMAIL PROTECTED]
Office: (303) 215-7872



___
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] PythonScripts and ExternalMethods

2000-12-04 Thread jpenny

On Mon, Dec 04, 2000 at 03:27:23PM -0500, Evan Simpson wrote:
 From: Chris Gray [EMAIL PROTECTED]
  I notice that the CVS tree for Zope2 has incorporated
 (internal)
  PythonScripts and gotten rid of (external) PythonScripts.
 This leaves the
  old ExternalMethods but without the Bindings tab.  Will
 External Methods
  eventually include this and present a form for passing
 argument values
  when the TryIt tab is used?
 
 Jim and I expect to make External Methods obsolete, rather
 than upgrading them.  In the near future, you will be able
 to get most of the functionality of External Methods from
 Python Scripts' import capability.  In the longer term, we
 expect Zope 3 to completely change the way you write Zope
 code.
 

Would you please clarify this.

Are you talking about how the interaction between Zope and
the programmer is performed?  Are you talking about API?
Or what?

In particular, are you talking about killing DTML?  This would
be very worrisome, as I have enough code that I would not like
to rewrite it all in the near future.

Jim 

 
 Cheers,
 
 Evan @ digicool  4-am
 
 
 ___
 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] PythonScripts and ExternalMethods

2000-12-04 Thread Jason Cunliffe

From: Evan Simpson [EMAIL PROTECTED]
 Jim and I expect to make External Methods obsolete, rather
 than upgrading them.  In the near future, you will be able
 to get most of the functionality of External Methods from
 Python Scripts' import capability.  In the longer term, we
 expect Zope 3 to completely change the way you write Zope
 code.

 In the meantime, External Methods work pretty well.

This is very interesting ..

Does this mean typically Python Exterbal Method code will be moved inside of
Python Scripts, then modified and the ralted DTML simplified and/or
eliminated?

Hopefully Python Scripts will then be much more straightforward and any
needed 'power' modules are accessed via import.

I would like to hear more about how you envisage the actual workflow would
happen.
For example making changes to scripts - debugging - updating etc.

How Zope import export may work in realtionship to this.
say, bundling a folder of Python Scripts in.zexp file?

How you imagine it working with ZEO setups when one needs to bounce scripts
around and how script namespace will be handled..?

- Jason
___
Jason CUNLIFFE = NOMADICS['Interactive Art and Technology']



___
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] The inverse of REQUEST.set is ??

2000-12-04 Thread Dieter Maurer

Dennis Nichols writes:
  ... deleting an item from request ...
DTML will not let you do that.

In Python, you can use "del REQUEST.other['something']"


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

2000-12-04 Thread Stephane Bortzmeyer



Searching a tool to edit DTML on MS-Windows, I read:

http://www.zope.org/Members/cba/HTML_Kit

It says that HTML-Kit can edit files through FTP. I found that it can only 
retrieve files, without being able to browse directories, and that it cannot 
save back files with FTP. Absolutely not a competitor for GNU Emacs.

Or did I miss something? 




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




Re: [Zope] where (required)

2000-12-04 Thread Dieter Maurer

Tom Deprez writes:
  ... optional tests and optional paramters in Z SQL methods ...

The "where" of "dtml-group" will generate a "where" keyword,
if the enclosed query is not empty.

However, you must pass the declared parameters whether or
not you use them.

You can provide default values, though.
The syntax is

parameter=""

to give "parameter" the empty string as default value.


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] Problem with DCOracle interface for Python

2000-12-04 Thread Shane Hathaway

[EMAIL PROTECTED] wrote:
 I am having a problem when I try to run a python application on a Sun server:
 it crashes when it interfaces with the oracle database.  The error message that
 I got after debugging is the following:
 /usr/local/lib/python1.5/DCOracle/ociCurs.py(269)execute( )
 
 Here are the versions of the program, file, and the Oracle server that I am
 using:
 - python  version 1.5
 - ociCurs  version 1.8
 - Oracle8.1.6 server

What version of DCOracle?  1.3.2 is the latest.

 Note: I tried to run the same python application to do the same task in HP
 server, and I did NOT have any problem; the interface with the database went
 fine, and the application rans smoothly.
 
 I am not sure why it did crash on the Sun server, but it did not on HP server.
 The versions of the file, programs, and the Oracle server are the same for both
 HP and Sun.
 
 It would be great if someone could give me some suggestions or hints to solve
 the problem.  I would appreciate that.  I can be reached at (xxx) xxx- or by
 e-mail.

Are you able to perform other operations on the database?  Have you
tried DCOracle_test.py?

Shane

P.S. You should be more careful with your phone number.

___
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] News article.

2000-12-04 Thread Martijn Pieters

On Sun, Dec 03, 2000 at 04:00:30PM -0500, J. Michael Mc Kay wrote:
 If anyone has a copy of a recent news article in the Fredericksburg Free
 Lance Star about DC, would they please send me a copy to
 [EMAIL PROTECTED]

I have no paper copy, but the article is online at:

  http://fredericksburg.com/news/Local/Business/1114digi.htm

-- 
Martijn Pieters
| Software Engineer  mailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   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] string splitting in dtml

2000-12-04 Thread Mike Kelland



I have a date string (ie dd/mm/yy) which I'm 
drawing out of a database (ODBC connection to Access) with a Z SQL method and I 
need to use that data to set the initial condition of a set of 3 select items 
(ie day, month and year). Is there a way to split this date (it'll come 
out looking like dd/mm/yy) to get the components of it so that I can do: 


select name="start_month"dtml-in 
"1,2,3,4,5,6,7,8,9,10,11,12"dtml-if"some_split_of_date_string_to_get_month(start_date)== 
_['sequence-item']"option value="dtml-var sequence-item" 
selecteddtml-var 
sequence-item/optiondtml-elseoption 
value="dtml-var sequence-item"dtml-var 
sequence-item/option/dtml-if/dtml-in/select

??


Thanks!

Mike Kelland
[EMAIL PROTECTED]



[Zope] Passing lists in a get request (ZCatalog Search) Continued...

2000-12-04 Thread Darin Lee

Zopistas, 

Everyone, Thanks for the help so far. My searchable form and indexes are working 
great, except for one small problem. Whenever I pass in a string to search on a 
text-index, along with the sort_on and/or sort_order parameters I keep getting the 
following error:

Error Type: TypeError
Error Value: loop over non-sequence

Traceback (innermost last):
  File C:\PROGRA~1\DEQ_UP~1\lib\python\ZPublisher\Publish.py, line 222, in 
publish_module
  File C:\PROGRA~1\DEQ_UP~1\lib\python\ZPublisher\Publish.py, line 187, in publish
  File C:\PROGRA~1\DEQ_UP~1\lib\python\Zope\__init__.py, line 221, in 
zpublisher_exception_hook
(Object: Traversable)
  File C:\PROGRA~1\DEQ_UP~1\lib\python\ZPublisher\Publish.py, line 171, in publish
  File C:\PROGRA~1\DEQ_UP~1\lib\python\ZPublisher\mapply.py, line 160, in mapply
(Object: search)
  File C:\PROGRA~1\DEQ_UP~1\lib\python\ZPublisher\Publish.py, line 112, in call_object
(Object: search)
  File C:\PROGRA~1\DEQ_UP~1\lib\python\OFS\DTMLMethod.py, line 172, in __call__
(Object: search)
  File C:\PROGRA~1\DEQ_UP~1\lib\python\DocumentTemplate\DT_String.py, line 528, in 
__call__
(Object: search)
  File C:\PROGRA~1\DEQ_UP~1\lib\python\DocumentTemplate\DT_In.py, line 473, in renderwb
(Object: Catalog)
  File C:\PROGRA~1\DEQ_UP~1\lib\python\Products\ZCatalog\ZCatalog.py, line 455, in 
searchResults
(Object: Traversable)
  File C:\PROGRA~1\DEQ_UP~1\lib\python\Products\ZCatalog\Catalog.py, line 602, in 
searchResults
  File C:\PROGRA~1\DEQ_UP~1\lib\python\Products\ZCatalog\Catalog.py, line 555, in 
_indexedSearch
TypeError: (see above)

So, on a hunch - I tried the query directly on the Catalog method itself (not my 
home-brew code). 
I typed in 
"http://myserver/Catalog/report?main_references=Airsort_on=categorysort_order=reverse"


Same problem - I f I try to query against a zCatalog text-index, and also pass the 
sort_on or sort_order parameters - I get the error.

Is this a Zope bug?

I'd appreciate any information anyone can pass on - I'm so close to getting this thing 
working...

Thanks in advance,
-Darin Lee



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




RE: [Zope] FTP in HTML-Kit? (Or other editor on MS-Windows)

2000-12-04 Thread Steve Drees

 http://www.zope.org/Members/cba/HTML_Kit
 
 It says that HTML-Kit can edit files through FTP. I found that it 
 can only 
 retrieve files, without being able to browse directories, and 
 that it cannot 
 save back files with FTP. Absolutely not a competitor for GNU Emacs.

Get the latest beta. It has a workspace option that just plain ROCKS.

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




[Zope] Problem with DCOracle interface for Python

2000-12-04 Thread Spicklemire, Jerry

Slim Says:

 I am having a problem when I try to run a python application on a Sun
server:

We had some problems like this too. If memory serves, an incompatibility
between older versions (Oracle 7.x) of the Oracle Networking package, and
the new version (Oracle 8) of the database "backend" was the cause. The new
(Net8) code can talk to older RDBM engines, but the old code can't talk to
Oracle 8. 

Good Luck,
Jerry S.

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




[Zope] Software registration

2000-12-04 Thread art

Dear Sir or Madame,

Our company Asesoft Com. involved in Web related services, in conjunction with Esex 
Gmbh. and the PromoSoft organization is developing at this moment a new software 
portal (http://www.eRomania-net.com/, www.eRomania-net.ro), which we intend to be from 
the beginning one of the most important european sites in that domain, and than from 
the entire net. Here we are also going to provide informations from other various 
domains like banking, assurances, health, travels, music, electronics, computers, 
Internet and much more.
That's why, we would like to present your applications on this site, in our software 
section, so anyone could see a detailed description of your product and download a 
trial version.
If you are interested, please visit our software submission page at 
http://www.eRomania-net.com/software/adsoft.php, where all you have to do is to 
complete a form with a detailed description of your software, your license agreement 
and any other terms that you require, the category where it should be included, a link 
to your order or contact page and a direct link to your shareware or freeware product. 
Please feel free to contact us with any additional questions or suggestions regarding 
our new site.
Thank-you in advance for your participation.



With best regards,

Arthur Radulescu,
Project Manager

Email: [EMAIL PROTECTED]
Mobile phone: (040) 93 620 084
Web site: http://www.asesoft.ro


___
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] PythonScripts and ExternalMethods

2000-12-04 Thread Evan Simpson

From: [EMAIL PROTECTED]
 Are you talking about how the interaction between Zope and
 the programmer is performed?  Are you talking about API?
 Or what?

Both, and more.  The details haven't even begun to be worked
out yet, we're still brainstorming.

 In particular, are you talking about killing DTML?  This
would
 be very worrisome, as I have enough code that I would not
like
 to rewrite it all in the near future

I envision tools that will make DTML obsolete, but killing
it?  No, as long as it's useful to you, you'll be able to
keep using it.

Cheers,

Evan @ digicool  4-am


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




[Zope] string splitting in dtml

2000-12-04 Thread Spicklemire, Jerry

Mike asked:

 I have a date string (ie dd/mm/yy) which I'm drawing out of a database
 (ODBC connection to Access) with a Z SQL method and I need to use that
 data to set the initial condition of a set of 3 select items (ie day,
 month and year).  Is there a way to split this date (it'll come out
 looking like dd/mm/yy) to get the components of it 

You could use the Python "string slice" syntax, like so:

dtml-let day_of_month="_['start_date'][:2]"
  month_of_year="_['start_date'][3:5]"
  year_of_century="_['start_date'][6:8]"
The dtml-var day_of_month day,br
of the dtml-var month_of_year month,br
of the year 20dtml-var month_of_centurybr
/dtml-let

Later,
Jerry S.

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




Re: [Zope] string splitting in dtml

2000-12-04 Thread Andy McKay

dtml-var "_.string.split(start_date, '/')[1]"

will be the 2nd element of the start_date, in this case mm
--
  Andy McKay, Developer.
  ActiveState.


- Original Message -
From: "Mike Kelland" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 04, 2000 1:14 PM
Subject: [Zope] string splitting in dtml


I have a date string (ie dd/mm/yy) which I'm drawing out of a database (ODBC
connection to Access) with a Z SQL method and I need to use that data to set
the initial condition of a set of 3 select items (ie day, month and year).
Is there a way to split this date (it'll come out looking like dd/mm/yy) to
get the components of it so that I can do:

select name="start_month"
dtml-in "1,2,3,4,5,6,7,8,9,10,11,12"
dtml-if "some_split_of_date_string_to_get_month(start_date) ==
_['sequence-item']"
option value="dtml-var sequence-item" selecteddtml-var
sequence-item/option
dtml-else
option value="dtml-var sequence-item"dtml-var sequence-item/option
/dtml-if
/dtml-in
/select

??



Thanks!

Mike Kelland
[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] confusing access error

2000-12-04 Thread Matthew Wilbert

Dieter,

I think you must be right.  I tried it under 2.2.0 on Linux and NT, and got the error, 
but after receiving your message 
I tried it on a 2.2.2 Linux installation I have running and the problem went away.

Thank you very much.  I have a strong bias against assuming
that things are other people's bugs, so it might have been quite a while before I 
figured it out.  Time to do a 
couple of upgrades...

Thanks again,

Matt
-Original Message-
From:Dieter Maurer [EMAIL PROTECTED]
Sent:Mon, 4 Dec 2000 21:19:00 +0100 (CET)
To:  [EMAIL PROTECTED]
CC:  [EMAIL PROTECTED]
Subject: Re: [Zope] confusing access error


Matthew Wilbert writes:
  I am getting an access error I don't understand at all,
  
  dtml-in "ZopeFind(this())"
 dtml-var sequence-item
  
  Zope Error
  Zope has encountered an error while publishing this resource.
  Unauthorized
   
  You are not authorized to access title_or_id.


What Zope version do you use.

You need at least Zope 2.2.2 as there was a bug in earlier
Zope versions. This bug may present itself exactly as
you described.


Dieter



___
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.


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




Re: [Zope] FTP in HTML-Kit? (Or other editor on MS-Windows)

2000-12-04 Thread Peter Bengtsson

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

/P

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



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




Re: [Zope] FTP in HTML-Kit? (Or other editor on MS-Windows)

2000-12-04 Thread Oliver Bleutgen



 Searching a tool to edit DTML on MS-Windows, I read:

 http://www.zope.org/Members/cba/HTML_Kit

 It says that HTML-Kit can edit files through FTP. I found that it can only
 retrieve files, without being able to browse directories, and that it
 cannot
 save back files with FTP. Absolutely not a competitor for GNU Emacs.

 Or did I miss something?

Maybe the newest built of html-kit (from 29. Nov).
The changes file suggests that ftp-support is now very 
good. (save/load/update ... everything you can do with a
local file seems now to work with remote-files too).
Look at http://www.chami.com/html-kit/news/


A very interesting feature for zope seems to be the following:

" Ability to map local folders to remote servers, for the purpose 
of previewing files with server-side scripting through the server 
("Edit | Preferences... | Preview | Edit Preview Rules..."). 
The user interface for this option has not been finalized."

HTML-Kit is free and very customizable, I really like it.
The developer is very responsive and there's a load of plugins
available - chances are that any modifications to make it 
play better with zope can be incorporated.

And it's free (as in beer).

cheers,
oliver


  

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




RE: [Zope] FTP in HTML-Kit? (Or other editor on MS-Windows)

2000-12-04 Thread Steve Drees

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

Except that you become a criminal.


___
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] Uploading web sites

2000-12-04 Thread Eva Alam


Hi,
I was wondering if it was possible to easily upload whole
existing large-scale web-sites into the zope infrastructure -- even
if the website uses its own RDBMS (like oracle say)?
How would zope interpret the actual existing webpages which
may be written in HTML/JavaScript?
Appreciate your response!

Eva.
Title: Tell us what you think


 




 

   
   

 

 
  Search
  | Download
  | Documentation
  | Resources
  | Members
  


  
   Search


   
   

  
 
 


   

   





   Guest
  
   Join Zope.org 
   
   Log in
  
		
   
 
 

Zope Exits
 
  Zope Newbies
  Technocrat.net
 Appwatch.com
 




 
  
   

 
   
Tell us what you think





If you need to submit a bug or feature request for this web site,
 use the Tracker.

If what you need to say doesn't easily fit in those categories,
 feel free to email the webmaster:


 
 
From

   
   
Email address

   

Subject

   
  
  
   
Body

   
  
  
   feedback to zope.org goes to
  the zope-web mailing list.
  You may subscribe if you like.
   
   
  
 



  
 


		
   
   
  
  
   
   
   
Privacy policy 

   Printable Page


   Feedback about Zope.org
   
  DTML Source
 
   
   
  
  
   
   
   
   
   
  
 
 
 
  2000, 
Digital Creations, Inc. All rights reserved.




Re: [Zope] Patch to avoid hypenation variables and more

2000-12-04 Thread Curtis Maloney

On Monday 04 December 2000 17:07, Tino Wildenhain wrote:

  Hi there,

 finally I want to release my patch for the in-tag. I hope
 it finds its way into the source-tree.
 I was sick writing such ugly constructs as _[_['sequence-item']]
 and so on, so I patched DT_In.py and DT_InSV.py
 (in lib/python/DocumentTemplate) to use sequence_item as well.
 All hypenation variables have now a second representation with
 underscores instead of hypenation. I hope, some time we can
 drop these hypenation variables.


insert raucous applause here
Thank you for finding the time to do what I did not have the time to. (o8

As I have said several times on this list, this is well overdue.  Hopefuly 
the '-' tags can migrate their way out of Zope the way !--# has.

 The second problem is if you put one in-tag into another.
 You have to use dtml-let oder REQUEST.set() with variables
 of the outher in-tag to be able to reference them in the inner
 loop. The code becomes very ugly this way. So my idea was to
 give the in-tag an optional argument, called "prefix" to
 prefix all the sequence-variables with a custom identifier.
 So you can write:

 dtml-in some_sequence prefix="outer_"
dtml-in some_other_sequence
  dtml-var outer_sequence_item:dtml-var sequence_item
/dtml-in the inner sequence
 /dtml-in the outer sequence

 What do you think about this?


I like!  I like it a lot!  This is, imho, quite an elegant solution to an 
ugly problem.

I know these two were considered 'minor' problems, and thus not given much 
attention, but they're just one more niggling problem that will no longer 
elicit the same old newbie questions to this list.

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] Simple site - hard to make ?

2000-12-04 Thread Michael Jenner

I would like to set up a site with the following contents /
requirements:

1. One main-page (no header / footer). Mainly a clickable image + a few
links.

2. A section with articles. Including the "Print this page" option. This
section should use one set of headers and footers. Contents and
formatting should be separated. Authors should be allowed to correct
articles.

3. A section with news. This section should use another set of headers
and footers.

4. A section with exits.

All pages except the main page should have a common navigation system.
(simple is fine).

Is this easy to do in Zope or ??

Thanks in advance,

Michael





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




RE: [Zope] FTP in HTML-Kit? (Or other editor on MS-Windows)

2000-12-04 Thread Jeff Peterson

Homesite is NOT shareware, it is a licensed product from Allaire.  There is
a 30 day trial available which you are obviously referring to.  While I
agree that Homesite 4.5.1 is great, I personally cannot use it even though I
paid for the license.  It has a terrible memory leak which forces you to
reboot often, and slows me down considerably.  If the folks at Allaire would
address the memory leak I may return but not until then.  In the mean time,
I have found that Html-Kit while maybe not quite as nice as Home site from a
UI perspective, is close to if not equal to it in function.  In addition, it
is free, and extensible as well.   Finally, in the latest release it allows
browsing of folders, download from as well as upload of edited files to the
remote host...very nice...did I mention free?

Just my $.02,

+-+
|   Jeffrey D. Peterson   ---   Webmaster |
|Range Broadband Services  ---  218-262-0050|
+-+

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Peter
Bengtsson
Sent: Monday, December 04, 2000 4:04 PM
To: Stephane Bortzmeyer
Cc: [EMAIL PROTECTED]
Subject: Re: [Zope] FTP in HTML-Kit? (Or other editor on MS-Windows)


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

/P



 Searching a tool to edit DTML on MS-Windows, I read:

 http://www.zope.org/Members/cba/HTML_Kit

 It says that HTML-Kit can edit files through FTP. I found that it can only
 retrieve files, without being able to browse directories, and that it
cannot
 save back files with FTP. Absolutely not a competitor for GNU Emacs.

 Or did I miss something?



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


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

2000-12-04 Thread Richard Folwell

 I've 2 databases. I want to do a 'join' with 2 tables, both in a different
 database.
 Is it possible to retrieve data of both tables with a ZSQLMethod and then
 do a programatically join? What's the easiest python way?

If you are using ODBC then the EasySoft SQL Engine might solve your problem:

"Databases which can be accessed through the Engine include DB2, Postgres,
MySQL or any ODBC driver. It will enhance the functionality of any existing
ODBC driver to ODBC 3.5 and enable the seamless joining of data from two or
more ODBC data sources."

http://www.easysoft.com/products/sql_engine/main.phtml?SessionID=RefID=

I have not tried it myself, but the EasySoft people seem OK - very responsive
on queries and support, with a clear commitment to quality.

Richard


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




RE: [Zope] Uploading web sites

2000-12-04 Thread Michael Fox

try this

http://www.zope.org/Members/itamar/load_site

Michael.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 5 December 2000 8:56 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [Zope] Uploading web sites


Hi,
I was wondering if it was possible to easily upload whole 
existing large-scale web-sites into the zope infrastructure -- even 
if the website uses its own RDBMS (like oracle say)? 
How would zope interpret the actual existing webpages which 
may be written in HTML/JavaScript? 
Appreciate your response! 
Eva. 


___
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] Public CVS Zope won't compile (fwd)

2000-12-04 Thread Chris Gray

OK. I guess I'm an abductee or something.  I've successfully checked out
and compiled Zope2 twice today on different machines.  There is only one
difference in what I did from what wasn't working for me on the weekend;
today I left off the -z7 option recommended on the Zope.org CVS_Info page.  
Was this corrupting the download somehow?

Thanks for the response, Michel.

Chris


On Sun, 3 Dec 2000, Michel Pelletier wrote:
 
 Works dandy here, neither w_pcgi.py or wo_pcgi.py have been modified in
 over a year.  I agree that the code your traceback reports on line 98 is a
 syntax error, but it doesn't match what is on line 98 in the CVS.
 
 -Michel
 
 


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

2000-12-04 Thread Yvonne Totty



I 
heard a nasty rumor that Dreamweaver could be made
to 
use Zope. Is this true? If so, how do I do it?

TIA
Yvonne
~~~
Yvonne Totty
Database Engineer
-
Wolverine: You actually go outside 
in these things?Cyclops: Well, what would you prefer? Yellow 
spandex?



[Zope] Software registration

2000-12-04 Thread art

Dear Sir or Madame,

Our company Asesoft Com. involved in Web related services, in conjunction with Esex 
Gmbh. and the PromoSoft organization is developing at this moment a new software 
portal (http://www.eRomania-net.com/, www.eRomania-net.ro), which we intend to be from 
the beginning one of the most important european sites in that domain, and than from 
the entire net. Here we are also going to provide informations from other various 
domains like banking, assurances, health, travels, music, electronics, computers, 
Internet and much more.
That's why, we would like to present your applications on this site, in our software 
section, so anyone could see a detailed description of your product and download a 
trial version.
If you are interested, please visit our software submission page at 
http://www.eRomania-net.com/software/adsoft.php, where all you have to do is to 
complete a form with a detailed description of your software, your license agreement 
and any other terms that you require, the category where it should be included, a link 
to your order or contact page and a direct link to your shareware or freeware product. 
Please feel free to contact us with any additional questions or suggestions regarding 
our new site.
Thank-you in advance for your participation.



With best regards,

Arthur Radulescu,
Project Manager

Email: [EMAIL PROTECTED]
Mobile phone: (040) 93 620 084
Web site: http://www.asesoft.ro


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

2000-12-04 Thread Max M

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Yvonne
Totty

I heard a nasty rumor that Dreamweaver could be made
to use Zope. Is this true? If so, how do I do it?

You just log onto Zope via ftp and do a "get site"

getting to the dtml tags in the editor can be a bother though.

I believe Dreamweaver 4.0 is better in this regards.

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] zope.org down, my fault

2000-12-04 Thread ethan mindlace fremen

Zopatistas:

Never try to scp a file onto itself. Especially if it's your httpd.conf.

I'll be back up in a bit.

~ethan


___
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] Wampum generator on Zope 2.2.4 fails / _isBeingUsedAsAMethod

2000-12-04 Thread Brad Clements

On 3 Dec 2000, at 21:46, Steve Spicklemire wrote:

 Hmm.. I *know* I've seen this before. I think it was when I was trying to
 move ZClasses that were *created* under Zope 2.2.0+ to Zope 2.1.x. Are you
 sure you're working with 100% 2.2.4?

Yep, fresh install of 2.2.4

Although the Data.fs was moved from 2.1.x, I didn't install the Wampum 
product until on 2.2.4


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 )




Re: [Zope] Patch to avoid hypenation variables and more

2000-12-04 Thread Adam Karpierz

- Original Message -
From: "Michel Pelletier" [EMAIL PROTECTED]
To: "Tino Wildenhain" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, December 04, 2000 7:10 PM
Subject: Re: [Zope] Patch to avoid hypenation variables and more

[...]
 It's cool.

Yes !. It is _very_ cool and very long awaited.
Thank you Tino :)

Maybe also is a good time to mix and apply
my old patch for 'sort' attribute with Tino's patch ?.
Please, take a look at:
http://classic.zope.org:8080/Collector/1542/view
http://classic.zope.org:8080/Collector/1541/view

Regards

Adam Karpierz
[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] Patch to avoid hypenation variables and more

2000-12-04 Thread Jonothan Farr

I've had patches for this for some time at
http://www.zope.org/Members/jfarr/Patches/Patches/dtml-in-sv

I was told they weren't being considered for inclusion because they will be
superceded by the named dtml-in construct (which would also supercede your
second patch). No word on when or if named dtml-in will actually happen, though.

--jfarr


- Original Message -
From: "Adam Karpierz" [EMAIL PROTECTED]
To: "Michel Pelletier" [EMAIL PROTECTED]
Cc: "Zope Mail List" [EMAIL PROTECTED]
Sent: Monday, December 04, 2000 5:36 PM
Subject: Re: [Zope] Patch to avoid hypenation variables and more


 - Original Message -
 From: "Michel Pelletier" [EMAIL PROTECTED]
 To: "Tino Wildenhain" [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Monday, December 04, 2000 7:10 PM
 Subject: Re: [Zope] Patch to avoid hypenation variables and more

 [...]
  It's cool.

 Yes !. It is _very_ cool and very long awaited.
 Thank you Tino :)

 Maybe also is a good time to mix and apply
 my old patch for 'sort' attribute with Tino's patch ?.
 Please, take a look at:
 http://classic.zope.org:8080/Collector/1542/view
 http://classic.zope.org:8080/Collector/1541/view

 Regards

 Adam Karpierz
 [EMAIL PROTECTED]




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



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




[Zope] News article

2000-12-04 Thread Tres Seaver

 "J. Michael Mc Kay" [EMAIL PROTECTED] wrote:

 If anyone has a copy of a recent news article in the
 Fredericksburg Free-Lance Star about DC, would they please
 send me a copy to [EMAIL PROTECTED]

 http://fredericksburg.com/news/Local/Business/1114digi.htm

-- 
===
Tres Seaver[EMAIL PROTECTED]
Digital Creations "Zope Dealers"   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] Accessing hierarchical information in a CORBA server

2000-12-04 Thread Tres Seaver

[EMAIL PROTECTED] wrote:

 Dies ist eine mehrteilige Nachricht im MIME-Format.

Please don't post MIME-formatted mail to the lists.

 I looked into Zope quite recently and I'm very impressed of all
 its features.  After getting started with some basics, I'd like
 to make a real-world application, migrating from a set of
 CGI-scripts written in Python but I'm still puzzled how to
 actually solve my problem, especially using the dtml-tree.
 
 I want to access information in a CORBA server which is more or
 less hierarchically structured, so I'd like to use the neat
 trees to display the hierarchy and selecting one of the items
 in the hierarchy directly should open a page with further
 information about that object.
 
 As I have to use CORBA, an external method written in Python
 seems the only possible way to make a connection from the tree
 to the server.

 In the How-To's, I found the following example
 (http://www.zope.org/Members/anthony/tree-coding-tricks):
 
 class _dummy: def __init__(self, name): self.name=name
 
def child_lookup(parent): c = [] for i in range(0,5):
c.append(_dummy("%s.%d"%(parent, i))) return c
 
 used like this:
 
 dtml-let name="0"
 dtml-tree id=name  branches_expr="child_lookup(parent=name)"
  bdtml-var  name/b
 /dtml-tree
 /dtml-let
 
 This toy example is similar to what I would write, but I need
 to handle different object types on different levels of the
 hierarchy. The tree can obviously only handle functions, not
 real CORBA objects (as the note in the example section in the
 HowTo suggests...0, right? This means I have to cope with large
 if-then-else constructs in the function given to branches_expr?
 
 CORBA objects are identified by a so-called IOR which is some
 sort of a stringified object reference but in a non-readable
 way. Can I use a non-unique 'display name' for each node in the
 tree and some unique identfier (the IOR) internally?
 
 Sorry for so many questions, but I haven't found a lot of info
 about using the dtml-tree together with external methods.
 
 Lars

I have a proposal on dev.zope.org for adding CORBA client support
to Zope:

 http://dev.zope.org/Wikis/DevSite/Proposals/CorbaClientIntegration

One of the initial applications I had in mind for this feature was
a COSNaming browser, which would be very like what you are doing.

Tres.
-- 
===
Tres Seaver[EMAIL PROTECTED]
Digital Creations "Zope Dealers"   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 )




RE: [Zope] Dreamweaver

2000-12-04 Thread Todd Coram


In Dreamweaver 4, you can also use WebDAV to talk to Zope.

---
"Sardonic Slaughterer of Sacred Cows"
Todd Coram - mailto:[EMAIL PROTECTED]
Digital Creations, Inc - http://www.digicool.com
Publishers of Zope - http://www.zope.org

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Max M
 Sent: Monday, December 04, 2000 7:47 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: RE: [Zope] Dreamweaver


 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Yvonne
 Totty

 I heard a nasty rumor that Dreamweaver could be made
 to use Zope. Is this true? If so, how do I do it?

 You just log onto Zope via ftp and do a "get site"

 getting to the dtml tags in the editor can be a bother though.

 I believe Dreamweaver 4.0 is better in this regards.

 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] Re: [Zope-ZEO] Zope 2.2.4 ZEO 0.4.1 (latest anyway) doesn't want to add Products

2000-12-04 Thread Bill Anderson

Shane Hathaway wrote:
...
The Wikis folder on zope.org is now a ZEO mount.  We have chosen to use
the ExternalMount product we created internally.  It calls an external
method to open the storage and create the database.  It has the
flexibility advantages we need; for example it lets you move a .fs file
from non-ZEO to ZEO and back without going through a long recataloging
process.
   
Anyone interested in it?
   
Shane
  
   Yes please.
 
  We are also interested. =+ 'Yes Please'
 
 Just packaged up.
 
 http://www.zope.org/Members/hathawsh/ExternalMount

And there was almost much rejoicing.
It doesn't seme to want to mount the root of a Data.fs, at least
according to the add form. Is this by design? Were there problems with
mounting the root of a Data.fs, or is it just a limitation of the add
form?



Bill Anderson


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




Re: [Zope] Editing SQL methods from Emacs (+ FTP server)?

2000-12-04 Thread Anthony Baxter

 Anthony Baxter wrote
 I added a patch for ftp-enabling SQL Methods to either the collector
 or the zopeshell patch manager on sourceforge (I forget which right 
 now, and it's late and I'm going to bed right now...) If you can't
 find it, email me and I'll dig it up.

Ok, found it:

http://sourceforge.net/patch/download.php?id=101925

Ignore that note at the top saying it needs other patches, 
this should work by itself fine.

Anthony

___
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] Manage menu problem

2000-12-04 Thread nmcdowell

Hi,

When i use the Zope management screen i notice that on load
in the browser it calls it's own(the server it's installed)
IP address when loading the manage_workspace link.  This is
fine when working with the box directly, but when trying to
manage Zope from outside our protected LAN (using a firewall
that has a public IP which redirects all request to the Zope
box which uses a static private address) the manage screen
won't load as it can't find the protected private IP
address.

Ideally i want to manage my Zope both internally via the LAN
and externally from wherever.  I was wondering if it's just
a config/startup setting as i have noticed some IP settings
in the z2.py file.  Any pointers would be greatly
appreciated.

Cheers
Nick

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