Re: [Zope-dev] ZClasses - Two glaring omissions

2000-11-15 Thread Chris Withers

There was lots of talk a while back about redoing ZClasses.

I wonder what ever happened to that?

cheers,

Chris

Andy McKay wrote:
 
 Of course all those points can be done in python, im assuming you are
 talking about ZClasses.
 
 --
   Andy McKay, Developer.
   ActiveState.
 - Original Message -
 From: "Alexander Limi" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, November 14, 2000 11:35 AM
 Subject: [Zope-dev] Two glaring omissions
 
  Hi,
 
  I've been working with Zope for almost two years now, and there are two
  things that I feel is missing in the interface:
 
  1. The ability to add a Base class after the class is created
 
  2. The ability to rename properties after instances of the classes have
 been created (and have the data in those fields preserved)
 
  Are there any technical reasons why these are not present? I know it is
  possible to add base classes in retrospect via the hack described in
 
  http://www.zope.org/Members/AlexR/ChangingBaseClasses
 
  but are there plans for making this easier?
 
  As for #2, it is quite annoying and counter-productive not being able to
  change a variable name that was decided a long time ago, or maybe by
  others simply because there exist instantiated objects of that type.
 
  Both of the above are pretty essential OO techniques (for me, at least),
  and hinder my work quite a lot by not being there.
 
  Any chance of these being fixed at all? Or are there reasons that I do not
  know about that makes this impossible?
 
 
  Regards,
 
  --
  Alexander Limi
  [EMAIL PROTECTED]
 
 
  ___
  Zope-Dev maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope-dev
  **  No cross posts or HTML encoding!  **
  (Related lists -
   http://lists.zope.org/mailman/listinfo/zope-announce
   http://lists.zope.org/mailman/listinfo/zope )
 
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )

___
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] large PersistentMapping

2000-11-15 Thread Chris Withers

Talk to Tres Seaver about the observer interface and the event channel
stuff.

He has lots of ideas about this and I think it does pretty much what you
want...

cheers,

Chris

Robin Becker wrote:
 
 I'm trying to build a Reverse Cross Referencing Product. The idea is to
 enable documents to know which other documents in the Zope data base are
 pointing at them.
 I would like to use a persistent mapping to store the link information,
 but since eventually the object might be quite large will I get a
 performance hit when accessing only a small part of the object.
 
 It certainly seems to work for small instances, but I'm worried about
 what happens as my structure gets larger. Is there an alternate way to
 do this?
 
 The heart of the object are the methods
 
 
 def __init__(self, id, title):
 '''Initialise a new instance of RXRef'''
 self.id=str(id)
 self.title = str(title)
 self.title = title
 self._N = PersistentMapping()
 
 def addNode(self,n):
 '''Add a new node if not known'''
 N = self._N
 if not N.has_key(n): N[n]=[]
 
 def addLinks(self,src,DST):
 '''We have a single src and multiple destinations'''
 if type(DST) not in SEQTYPES: DST = [DST]
 N = self._N
 for dst in DST:
 self.addNode(dst)
 if src not in N[dst]: N[dst].append(src)
 
 def delLinks(self,src,DST):
 '''We have a single src and multiple destinations'''
 if type(DST) not in SEQTYPES: DST = [DST]
 N = self._N
 for dst in DST:
 if N.has_key(dst):
 if src in N[dst]:
 N[dst].remove(src)
 if N[dst]==[]: del N[dst]
 
 def getRLinks(self,dst):
 '''get links pointing to dst'''
 N = self._N
 return N.has_key(dst) and N[dst][:] or []
 
 --
 Robin Becker
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )

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




Re: [Zope-dev] TTW Product distribution

2000-11-15 Thread Chris Withers

jimbo wrote:
 
 Hi,
If I try to distribute it and leave it set for "Allow redistribution".
 Its not showing up in the Zope products directory tree after I untar the 3 files 
into the file system products directory and restarting Zope.
 
 I have a Dataskin based ZClass, 2 Specialist, the default constructor forms. I'm 
using Zope 2.2.2 on win98 ZPatterns 4.3b2.  Is this expected behaviour for a ttw 
product? It works if I export/import it.

This used to be really buggy and maybe it still is. The DC guys working
on the PTK found and fixed some of the bugs but I don't know if they've
landed in a Zope release yet. Maybe 2.2.3?

Anyone got any definite knowledge?

Chris

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




Re: [Zope-dev] License issues

2000-11-15 Thread Paul Everitt


Some quick points on this.

First, feel free to talk on this list about ways that Zope
developers can license their stuff.  It's a constructive
discussion, and since I'm not a Zope developer, I can ignore
it. :^)

Second, regarding the licensing of Zope itself, ChrisP is
right that I'm the guy on that.  Or more specifically, Hadar
Pedhazur (our board chairman) and I run the zope-license
email alias.  He and I had previously decided that, after
the round closed, we'd take a fresh look at our licensing
strategy.

Basically, we'd like to get out of the business of having
our own license, and we're open to the idea of a license
that is more GPL-friendly, in the spirit of Apache, Python,
etc.

Thus, continue discussing what you need to do your jobs and
give us some time to hash out a proposal.  Thanks!

--Paul

On 14 Nov 2000 09:29:11 -0800
 Simon Michael [EMAIL PROTECTED] wrote:
 Juan, thanks for shining some light towards this murky
 area. Maybe
 ZWiki and other zope products need to be LGPL or
 dual-licensed, maybe
 the zope license can use some refinement. I for one won't
 know without
 seeing some enlightened discussion of the issue.
 
 This stuff is unsexy but important.
 
 Best regards,
 -Simon
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )
 


___
Zope-Dev 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] __replaceable__ or whatever it is ;-)

2000-11-15 Thread Chris Withers

Shane Hathaway wrote:
 
 FYI I actually added the docs in two places, but they were promptly
 removed from the place they did not belong: the help system.
 Unfortunately the InterfacesWiki is currently the only good place.

Guess we'll have to wait for 2.3 :-)

  Could whoever did the coding please put something in the Interfaces Wiki
  or point us to where the official documentation lives?
 
 http://www.zope.org/Members/michel/Projects/Interfaces/ObjectManagerItem
 (See the bottom.)

Thanks... I guess the behavior that was associated with
ObjectManager.NOT_REPLACEABLE is obtained by just not havign a
__replaceable__ attribute?
...or does ObjectManager.NOT_REPLACEABLE exist, just in an undocumented
fashion ;-)

  Also, when is it going to land in a erleased Zoep version? 2.3 I
  guess...
 
 That's the plan.

Bad question, I know, but any idea when that'll be?

cheers,

Chris

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




[Zope-dev] Automatic conversion to pdf format

2000-11-15 Thread stefano . ciccarelli

Newbie Alert

I am currently setting up a support website using Knowledge Kit.
I would like to integrate it with ZpdfDocument, so that some documents could
be automatically converted to pdf, without the need to cut and paste from
Knowledge Kit to ZpdfDocument.

Since I am a Zope newbie I did not find a way to make it work.

I would really appreciate your help,

Stefano Ciccarelli


___
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] Local Factories in Products

2000-11-15 Thread Johan Carlsson

Zopers,

In ZClasses it is possible to control where a ZClass instance
should be permitted to be added, in other words show up
in the factory listing in a ObjectManagers manage_main view.
(I this correct by the way?)

What I need to do is someway restrict in what Containers (myContainer 
subclass od ObjectManage ) my Zope Product Instances (myClass) 
should be abled to be added (show up in the factory list).

When registerClass "myClass" in the initialize method of __init__.py
it seems that the "myClass" gets addable everywhere.

I have temporary solved this by removing the objects registration
from the initialize method and adding manual add factories in the
myContainer. This is bad though because the meta_types doesn't
get registered and maybe some other problems as well.

So how could I control dependencies for adding Zope Classes in 
other Zope Classes?

Regards,
Johan Carlsson





___
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] is _getCopy slow?

2000-11-15 Thread seb bacon

My product is performing incredibly badly.  I profiled it and got the following 
results:

   ncalls  tottime  percall  cumtime  percall filename:lineno(function)
   ...snip...
  4/10.0100.0036.3606.360 WebFactory.py:92(change_theme)
 37/60.4400.0126.3301.055 CopySupport.py:426(_getCopy)
 37/60.7100.0196.2701.045 ExportImport.py:126(importFile)
   380.0200.0011.9300.051 BaseStorage.py:200(tpc_finish)
   381.9100.0501.9100.050 FileStorage.py:768(_finish)

For each folder in the instance, a method change_theme() is called recursively on each 
of its subfolders.  The culprit appears to be the _getCopy call, which in turn calls 
importFile, and takes a whole second to call each time.

The object being copied is in each case typically a folder containing 3 - 5 documents.

Is _getCopy inherently slow, or am I misreading the profiler output, or is it more 
likely there's something wrong with my code?

Cheers,

seb

___
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] __replaceable__ or whatever it is ;-)

2000-11-15 Thread Phillip J. Eby

At 11:14 AM 11/15/00 +, Chris Withers wrote:

Thanks... I guess the behavior that was associated with
ObjectManager.NOT_REPLACEABLE is obtained by just not havign a
__replaceable__ attribute?
..or does ObjectManager.NOT_REPLACEABLE exist, just in an undocumented
fashion ;-)

  Also, when is it going to land in a erleased Zoep version? 2.3 I
  guess...
 
 That's the plan.

Bad question, I know, but any idea when that'll be?


FYI, if you want to play with this before then, the current release of the
PlugIns package has support for the proposed behavior in the
PlugInContainer class, using a code snippet cribbed from Zope CVS.  So you
should be able to make PIC subclasses with overrideable methods.  I put in
that support because I wanted Specialists and such to be able to use
overrideable methods.  I haven't gotten around to actually putting any in,
though.


___
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] ZopeBug: No Last-Modified for misc_/.../*.gif objects!!!!

2000-11-15 Thread The Doctor What

I was looking at the cacheability of my website in zope, and saw
that the misc_/OFSP/*.gif images (as in the icon objects) are 
NOT cacheable because they don't return *any* date info.  If they
*at least* returned a Last Modified, they'd be cacheable.

I looked at the Zope Source and it looks like misc_.py just calls
ImageFile objects.  Why aren't the ImageFile objects setting these
header info bits correctly?   I'm not very knowledgable about Zope
inside, but this seems like it should be happening.

A side effect of fixing this problem would be that the manage
screens would suddenly work much faster since the icons would not
need to be reloaded EVERY time!!

Here is the HEAD info from two ImageFile objects.  The first is in
the folder images which has a SiteAccess object that forces the
Cache-Control object, a normal Image would not have the
Cache-Control line.  The second is a misc_.py object:

checkhead http://docwhat.gerf.org:9673/images/thedoctorwhat 
HTTP/1.0 200 OK
Server: Zope/Zope 2.2.2 (source release, python 1.5.2, linux2)
ZServer/1.1b1
Date: Wed, 15 Nov 2000 19:06:23 GMT
Cache-Control: public, max-age=86400
Connection: close
Content-Type: image/png
Content-Length: 21717
Last-Modified: Wed, 15 Nov 2000 03:14:17 GMT

checkhead http://docwhat.gerf.org:9673/misc_/OFSP/Folder_icon.gif 
HTTP/1.0 200 OK
Server: Zope/Zope 2.2.2 (source release, python 1.5.2, linux2)
ZServer/1.1b1
Date: Wed, 15 Nov 2000 19:06:37 GMT
Connection: close
Content-Type: image/gif
Content-Length: 903

I have attached by stupid checkhead program.

Ciao!

-- 
I'd horsewhip you if I had a horse.
-- Groucho Marx

The Doctor What: Second Baseman  http://docwhat.gerf.org/
[EMAIL PROTECTED]   KF6VNC


#!/usr/bin/perl -w
$| = 1;
use strict;

delete $ENV{'http_proxy'};

my $wget = "wget -q -s -O - " . join( ' ', @ARGV ) . "|";

open( FOO, $wget ) or die "Unable to run ``$wget'': $!";
while( FOO ) {
if( /^\s*$/ ) { last; }
print $_;
}
close( FOO );



[Zope-dev] TTW Product not showing up.

2000-11-15 Thread jimbo

In my ZClass I selected CatalogAware and dataskin as base.
I'm not sure what else I'm suppose to do.

SystemError: Failed to import class _ZClass_for_CatalogAware from module Product
s.ZCatalog

-Jimbo

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




[Zope-dev] Simulate DTML-Method Proxy-Roles for python-product-methods ?

2000-11-15 Thread Martin Grönemeyer

Hello.

I've started to implement a small Product in Python. One method should be
able to access an object in a folder which isn't accessible by anonymous
but only by a special role. Is it possible to give a proxy-role to the
python-method to access this object ?

cheers Martin

i.A.
Martin Grönemeyer
Technik

|| | ||  c o m.u n i t   G m b H  ||| | | ||  |  | |   |  | | |   |

http://www.comunit.de/  mailto:[EMAIL PROTECTED]
Eiffestr. 598   20537 Hamburg | Germany
Fon +49 +40 | 21 11 05 25   Fax  +49 +40 | 21 11 05 26


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




Re: [Zope-dev] License issues

2000-11-15 Thread Jimmie Houchin

I personally do not have a problem with the Zope license. However, I do
use a lot of GPLed software and appreciate it. I also am appreciative of
the ability to use Zope and to take advantage of the wonderful work that
DC has produced. When the original debate occurred I was in support of
DC maintaining some type of button crediting DC.

DC has provided us with an incredible tool and has provided the
community with tools in which to have a community and contribute toward
Zope. Whatever license is chosen I would like to see it be one which
protects everybody, especially DC.

About a year or two ago Lutris, the people who do Enhydra, were debating
about how to license their product XMLC. After researching the idea they
decided, with the communities support, to adopt the GPL. Their primary
reason was to prevent a bigger fish (with $$$) from capitalizing on
their work and possibly inhibiting their ability to compete.

The GPL would protect DC from predatory competitors. It would also allow
for Zope's adoption in certain environments. I also believe some people
would relicense their products to the GPL if it were Zope's native
license.

The source code maintains DC's intellectual credit and investment in
Zope. Zope.org could also possibly provide a higher profile for DC
without necessarily being "obnoxious" or being overtly/overly
possessive.

I've made some statements about how the GPL can help DC and the
community. What I don't see is if or what negatives would come into play
with such a change. Does anybody see any problems? Does anyone at DC
including Hadar and their new VC friends?

Jimmie Houchin



Paul Everitt wrote:
 
 Some quick points on this.
 
 First, feel free to talk on this list about ways that Zope
 developers can license their stuff.  It's a constructive
 discussion, and since I'm not a Zope developer, I can ignore
 it. :^)
 
 Second, regarding the licensing of Zope itself, ChrisP is
 right that I'm the guy on that.  Or more specifically, Hadar
 Pedhazur (our board chairman) and I run the zope-license
 email alias.  He and I had previously decided that, after
 the round closed, we'd take a fresh look at our licensing
 strategy.
 
 Basically, we'd like to get out of the business of having
 our own license, and we're open to the idea of a license
 that is more GPL-friendly, in the spirit of Apache, Python,
 etc.
 
 Thus, continue discussing what you need to do your jobs and
 give us some time to hash out a proposal.  Thanks!
 
 --Paul
 
 On 14 Nov 2000 09:29:11 -0800
  Simon Michael [EMAIL PROTECTED] wrote:
  Juan, thanks for shining some light towards this murky
  area. Maybe
  ZWiki and other zope products need to be LGPL or
  dual-licensed, maybe
  the zope license can use some refinement. I for one won't
  know without
  seeing some enlightened discussion of the issue.
 
  This stuff is unsexy but important.
 
  Best regards,
  -Simon

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




Re: [Zope-dev] License issues

2000-11-15 Thread Ty Sarna

In article [EMAIL PROTECTED],
Jimmie Houchin  [EMAIL PROTECTED] wrote:
 The GPL would protect DC from predatory competitors. It would also allow
 for Zope's adoption in certain environments. I also believe some people

And prevent it in others.

 would relicense their products to the GPL if it were Zope's native
 license.

While other products would suddently become license-incompatible.

___
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] Do Zope Haz Templates?

2000-11-15 Thread Ender

Curtis Maloney wrote:
 
 On Wed, 15 Nov 2000, Padrino wrote:
  I Was Serching And looking For Templates and I Was Guessing if Zope
  really Has It?
 
 
 DTML.  Document Template Markup Language.
 
 DTML is Zopes templating language.  Look at DTML Documents and DTML Methods.
 
 Have a better one,
 Curtis Maloney


alternatively if you want real templates that enforce separate logic and
presentation take a look at hiperdom.

kapil

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




Re: [Zope] creating ZClass instances from an external method

2000-11-15 Thread Maik Röder

Hi Gary !

Gary Reynolds wrote:
 
 I have a need to do some creating of objects from python code.
 
 Am I correct in thinking that to add a new object, that is one of my
 products, I need to do something like:
 
   folder.manage_addProduct['ProductName'](id='foo', title='bar')
 
 I have sample code to create simple things like using
 manage_addDTMLMethod, etc, but nothing for a product.
 
 The way I've got my data stored is in a combination of dictionaries
 and lists... it was an ugly enough process to export it - now
 importing it seems worse.
 
 Any help would be appreciated.

You may want to export your data into an XML file and reimport
that. I will write an external method that creates a ZClass
for a tag and an attribute for a property. The code already 
works for creating Folders, so have a look at my XML2Zope external

method. http://www.zope.org/Members/roeder

I have written some related notes on my weblog:

http://uzopia.editthispage.com/2000/11/15

Best regards,

Maik Röder

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Avoiding acquisition aka testing for contained objects

2000-11-15 Thread Stefan H. Holek

If I want to know whether a certain object is contained in 
the current folder I do this:

dtml-if "'index_html' in this().objectIds()"
  yes it's here
dtml-else
  not here
/dtml-if

Id like to know whether this is the best/most efficient way to do it.
Things like hasattr() are subject to aquisition i.e. they would find
an index_html method along the acquisition path; something I do not 
want. I also cannot bracket everything in a dtml-with ... only because
chopping my namespace is not what I want either.

TIA,
Stefan

--
Things work better when plugged in 


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] ZCallable

2000-11-15 Thread Stefan H. Holek

I have this ZCallable product (from the PTK, I think). I do however not
manage to derive a ZClass from ZCallable. The error is something like "Too
many datafull base classes".

Is ZCallable not intended to work like that (the source hints to
some ExtensionClass business) or am I missing something?

TIA
Stefan

--
Things work better when plugged in 


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] _delObject errors

2000-11-15 Thread seb bacon


When I try to call self._delObject('foo') from my Product, it seems to work, but I get 
an error logged:

  AttributeError: 'string' object has no attribute 'manage_beforeDelete'

The offending line is in ObjectManager.py:

 def _delObject(self, id, dp=1):
object=self._getOb(id)
try:
object.manage_beforeDelete(object, self)

So, it would appear that self.getOb('foo') returns a string rather than whatever it's 
expecting.  I presume this is because the object I'm deleting doesn't have some 
requisite base class to make it zope-manageable.  It's a ZClass which has ZObject as 
its only base class.

Am I missing something?

Cheers,

seb

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




Re: [Zope] Avoiding acquisition aka testing for contained objects

2000-11-15 Thread Johan Carlsson



 If I want to know whether a certain object is contained in 
 the current folder I do this:
 
 dtml-if "'index_html' in this().objectIds()"
   yes it's here
 dtml-else
   not here
 /dtml-if
 
 Id like to know whether this is the best/most efficient way to do it.
 Things like hasattr() are subject to aquisition i.e. they would find
 an index_html method along the acquisition path; something I do not 
 want. I also cannot bracket everything in a dtml-with ... only because
 chopping my namespace is not what I want either.
 

Stefan,

hasattr(self.aq_base, 'index_html') should probably work.

aq_base returns the unwrapped base object.

There is other aq_wrapper methods as well:
aq_parent (returns the parent wrapper) and aq_self.
I don't really know (of the top of my brain) the differens
between aq_base and aq_self. 
There is however a wiki some where in the Interface section
on Zope.org that tells you more, no link pops in to my mind 
at the moment so you just have to search for it.

I think hasattr() is a better way to look upp attributes but
that's just my 5 cents.

Regards,
Johan Carlsson







___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Installation Troubles

2000-11-15 Thread Ben Ocean

Hi;
I d/l'd the latest distro. Looked inside and couldn't find any installation 
instructions. Went to the Web site and found some instructions here:
http://www.zope.org/Members/mcdonc/HowTos/zopeinstall/ZOPE-INSTALL-HOWTO
They didn't work for me. I have crazy ownership problems all over the 
place. If I go into /usr/local/ I have to be root (I own the server), and 
the author indicates that I should be my regular user (webmaster) not root. 
No can do (security reasons). I unpacked the distro and had a bunch of 
files with user permissions for one of my clients! Not even webmaster! What 
gives? (I'm still new to Linux/UNIX.) Then I tried to do the ./install and 
was told there's no such directory (I *do* have ZServer, lib, doc, pcgi, 
and z2.py). Please help. Distributing installation instructions with the 
distro might be a nice thought...
BenO


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Installation Troubles

2000-11-15 Thread Oleg Broytmann

On Wed, 15 Nov 2000, Ben Ocean wrote:
 I d/l'd the latest distro. Looked inside and couldn't find any installation
 instructions.

   It seems you've problems with searching. There are a lot of information
in distro - in directory doc. There are INSTALL.txt, WEBSERVER.txt, etc.

Oleg.

 Oleg Broytmannhttp://phd.pp.ru/[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] Do Zope Haz Templates?

2000-11-15 Thread Steve Drees

  
  DTML.  Document Template Markup Language.
 
 alternatively if you want real templates that enforce separate logic and
 presentation take a look at hiperdom.



How are DTML documents and methods not "Real Templates"?


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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 reindex the Catalog programatically

2000-11-15 Thread Menard . Jean-Francois

To work around my problem with my Catalog reindexing (see previous
message...), I would like to let my users manually reindex the Catalog, as
the "Update Catalog" button in the "Cataloged Objects" do.  When I use this
button, my Catalog get fixed and work again.  

So I looked at the method used by the button source (manage_catalogReindex),
and created a method calling this function.  When I invoke this method,
there is no error, but the Catalog still doesn't work!

Any ideas ?$%%?

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


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




Re: [Zope] Installation Troubles

2000-11-15 Thread Chris McDonough

Hi Ben

(I wrote that howto).

 I d/l'd the latest distro. Looked inside and couldn't find any
installation
 instructions. Went to the Web site and found some instructions here:
 http://www.zope.org/Members/mcdonc/HowTos/zopeinstall/ZOPE-INSTALL-HOWTO
 They didn't work for me. I have crazy ownership problems all over the
 place. If I go into /usr/local/ I have to be root (I own the server), and
 the author indicates that I should be my regular user (webmaster) not
root.

I *think* /usr/local should be readable and writable by your webmaster user.
If it's not, you should try to put Zope somewhere else.  It really doesn't
matter much where it goes... you could even install it in your "webmaster"
home directory if you wanted to.

 No can do (security reasons). I unpacked the distro and had a bunch of
 files with user permissions for one of my clients! Not even webmaster!
What
 gives? (I'm still new to Linux/UNIX.)

Untarring files keeps the original "uid/gid" (userid/group id) combination
if you untar the file as root.  This is explained in that howto.  The
solution is to not untar as root.

Please try it again, following all the directions it's pretty explicit
stuff.

If that doesn't work, it's *much* easier to install the Windows version, if
that's an option.  If not, I (and probably other folks here) will help you
work through the Linux install.

 Then I tried to do the ./install and
 was told there's no such directory (I *do* have ZServer, lib, doc, pcgi,
 and z2.py). Please help. Distributing installation instructions with the
 distro might be a nice thought...
 BenO

"install" told you there's no such directory?  What directory was it talking
about?  Or do you mean that it couldn't find "install"?

Yes, there's also the file doc/INSTALL.txt that you may want to look at...


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Installation Troubles

2000-11-15 Thread Oleg Broytmann

On Wed, 15 Nov 2000, Ben Ocean wrote:
 and d/l'd the latest distro, which I believe was
 Zope-2.2.x-to-2.2.2-src.tgz

   It's not a distro - it's a patch to upgarde to 2.2.2.

Oleg.

 Oleg Broytmannhttp://phd.pp.ru/[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] Installation Troubles

2000-11-15 Thread Ben Ocean

Forgive my stupidity, but I've looked all over and don't see a 
directory.doc, install.txt or webserver.txt
I went to this page
http://www.zope.org/Products
and d/l'd the latest distro, which I believe was
Zope-2.2.x-to-2.2.2-src.tgz
I opened it up with WinZip and the aforementioned files are nowhere to be 
found. I ftp'd it to my server and gunzipped and untarred but no ./install 
file. What am I doing wrong?
TIA,
BenO

At 05:24 PM 11/15/2000 +0300, you wrote:
On Wed, 15 Nov 2000, Ben Ocean wrote:
  I d/l'd the latest distro. Looked inside and couldn't find any installation
  instructions.

It seems you've problems with searching. There are a lot of information
in distro - in directory doc. There are INSTALL.txt, WEBSERVER.txt, etc.

Oleg.

  Oleg Broytmannhttp://phd.pp.ru/[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] Installation Troubles

2000-11-15 Thread Chris McDonough

You downloaded the update... you need the full source version, available at
http://www.zope.org/Products/Zope/2.2.2/Zope-2.2.2-src.tgz/view


- Original Message -
From: "Ben Ocean" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, November 15, 2000 9:51 AM
Subject: Re: [Zope] Installation Troubles


 Forgive my stupidity, but I've looked all over and don't see a
 directory.doc, install.txt or webserver.txt
 I went to this page
 http://www.zope.org/Products
 and d/l'd the latest distro, which I believe was
 Zope-2.2.x-to-2.2.2-src.tgz
 I opened it up with WinZip and the aforementioned files are nowhere to be
 found. I ftp'd it to my server and gunzipped and untarred but no ./install
 file. What am I doing wrong?
 TIA,
 BenO

 At 05:24 PM 11/15/2000 +0300, you wrote:
 On Wed, 15 Nov 2000, Ben Ocean wrote:
   I d/l'd the latest distro. Looked inside and couldn't find any
installation
   instructions.
 
 It seems you've problems with searching. There are a lot of
information
 in distro - in directory doc. There are INSTALL.txt, WEBSERVER.txt, etc.
 
 Oleg.
 
   Oleg Broytmannhttp://phd.pp.ru/
[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 maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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 mix perl and dtml

2000-11-15 Thread Schut, Koos (Koos)

Hi all,

Situation:
I have a fairly strong background in perl. I've lots of custom perl-tools on
an Informix-database unix-machine on which I have the zope web-server
running now. What I want is to create some web-pages, displaying information
as distilled from the database. This destillation, I can do easily with
perl. I view the zope web-pages from a different PC.

Questions:
How do I create a zope method to actually run a perl destillaton-process and
have the result in a Zope web-page?

What I can do is write perl-scripts which even create html-code. What I do
not know is how to call the perl-stuff from a zope-page, and get the results
in a zope html-page. Reading the different docs, it is clear that it should
be possible.

Can anyone give me some clever hints here?

Cheers,
Koos.

J.J. Schut
Integration Specialist
Avaya
The Former Enterprise Networks Group of Lucent Technologies
tel. +31 (0)30 609 7835
fax. +31 (0)30 609 7650
email [EMAIL PROTECTED] 

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




Re: [Zope] How to mix perl and dtml

2000-11-15 Thread Chris McDonough

JJ,

You probably want to take a look at the Zope-Perl mail list at
http://lists.zope.org/mailman/listinfo/zope-perl.  Archives of the list are
available at http://lists.zope.org/pipermail/zope-perl/

- Original Message -
From: "Schut, Koos (Koos)" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 15, 2000 10:16 AM
Subject: [Zope] How to mix perl and dtml


 Hi all,

 Situation:
 I have a fairly strong background in perl. I've lots of custom perl-tools
on
 an Informix-database unix-machine on which I have the zope web-server
 running now. What I want is to create some web-pages, displaying
information
 as distilled from the database. This destillation, I can do easily with
 perl. I view the zope web-pages from a different PC.

 Questions:
 How do I create a zope method to actually run a perl destillaton-process
and
 have the result in a Zope web-page?

 What I can do is write perl-scripts which even create html-code. What I do
 not know is how to call the perl-stuff from a zope-page, and get the
results
 in a zope html-page. Reading the different docs, it is clear that it
should
 be possible.

 Can anyone give me some clever hints here?

 Cheers,
 Koos.

 J.J. Schut
 Integration Specialist
 Avaya
 The Former Enterprise Networks Group of Lucent Technologies
 tel. +31 (0)30 609 7835
 fax. +31 (0)30 609 7650
 email [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] DTML and SQL question...

2000-11-15 Thread zope

Hi.

I want to test if there is some data in a table.
If so, I want to perform some action, otherwise I wan't to print out a message.
(dtml-if..dtml-else../dtml-if)

My SQL statement is something like:

Select count(*) from my_table where my_field = something

What DTML code do I need to perform that if-statement?

Something like the following does not work :-(

dtml-if "genericSQL(SQLStatement='Select count(*) from my_table where 
my_field = \'0\'') == 0"
   YES! There's some data!
dtml-else
   no records found!
/dtml-in

Thanks for any help.

Greetings, Marc Ludwig
Luxembourg


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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 do I form an XML-RPC query to a remote server?

2000-11-15 Thread Tony McDonald

Hi all,
I'm experimenting with collating data from a remote database that uses
XML-RPC.

I can send it messages like;
 import xmlrpclib
 medweb = xmlrpclib.Server("http://bogus.server.com")
 medweb.getImages('scar')
'?xml version="1.0" encoding="ISO-8859-1"
?\015\012\011data\015\012\011\011titleMedwebb Images/title \0

(lots of stuff snipped)

But I just can't figure out how to send the XML version of the same query,
ie
?XML VERSION="1.0"?
methodCall
methodNamegetimages/methodName
params
param
valuestringscar/string/value
/param
/params
/methodCall

to the server.

I've got a nasty feeling that when I get told how to do this, I'm going to
slap my forehead bloody hard

As you can see the data is returned in XML format, and whilst I'm fine with
Python code for XML parsing (usually use sgmlop), I'm a bit lost on where to
start here. An External Method seems the best way, but I'd like the received
wisdom on this.

Ta muchly,
tone
--
Dr Tony McDonald,  Assistant Director, FMCC, http://www.fmcc.org.uk/
The Medical School, Newcastle University Tel: +44 191 222 5116
A Zope list for UK HE/FE  http://www.fmcc.org.uk/mailman/listinfo/zope


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




[Zope] restarting

2000-11-15 Thread ethan mindlace fremen

Please bear with me, this nonsense will be over soon

~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] How to mix perl and dtml

2000-11-15 Thread Andy McKay

The recently released beta 3 of zope-perl is available at:

   ftp://ftp.activestate.com/Zope-Perl/
   http://www.ActiveState.com/download/Zope-Perl/

And there is a wiki here:

   http://www.zope.org/Wikis/zope-perl/FrontPage

--
  Andy McKay, Developer.
  ActiveState.

- Original Message -
From: "Chris McDonough" [EMAIL PROTECTED]
To: "Schut, Koos (Koos)" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, November 15, 2000 7:40 AM
Subject: Re: [Zope] How to mix perl and dtml


 JJ,

 You probably want to take a look at the Zope-Perl mail list at
 http://lists.zope.org/mailman/listinfo/zope-perl.  Archives of the list
are
 available at http://lists.zope.org/pipermail/zope-perl/

 - Original Message -
 From: "Schut, Koos (Koos)" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, November 15, 2000 10:16 AM
 Subject: [Zope] How to mix perl and dtml


  Hi all,
 
  Situation:
  I have a fairly strong background in perl. I've lots of custom
perl-tools
 on
  an Informix-database unix-machine on which I have the zope web-server
  running now. What I want is to create some web-pages, displaying
 information
  as distilled from the database. This destillation, I can do easily with
  perl. I view the zope web-pages from a different PC.
 
  Questions:
  How do I create a zope method to actually run a perl destillaton-process
 and
  have the result in a Zope web-page?
 
  What I can do is write perl-scripts which even create html-code. What I
do
  not know is how to call the perl-stuff from a zope-page, and get the
 results
  in a zope html-page. Reading the different docs, it is clear that it
 should
  be possible.
 
  Can anyone give me some clever hints here?
 
  Cheers,
  Koos.
 
  J.J. Schut
  Integration Specialist
  Avaya
  The Former Enterprise Networks Group of Lucent Technologies
  tel. +31 (0)30 609 7835
  fax. +31 (0)30 609 7650
  email [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 maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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 and SQL question...

2000-11-15 Thread Pavel

good day,

create a ZSQLMethod ... let`s call it genericSQL
having your sql query in it, then do a

dtml-if "genericSQL(_.None,_)"
   YES! There's some data!
dtml-else
   no records found!
/dtml-if

in your DTML Method

not tested.
but should work.

regards.
--
pashah

-Original Message-
From: zope [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: 15 íîÿáðÿ 2000 ã. 19:38
Subject: [Zope] DTML and SQL question...


Hi.

I want to test if there is some data in a table.
If so, I want to perform some action, otherwise I wan't to print out a
message.
(dtml-if..dtml-else../dtml-if)

My SQL statement is something like:

Select count(*) from my_table where my_field = something

What DTML code do I need to perform that if-statement?

Something like the following does not work :-(

dtml-if "genericSQL(SQLStatement='Select count(*) from my_table where
my_field = \'0\'') == 0"
   YES! There's some data!
dtml-else
   no records found!
/dtml-in



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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 do I form an XML-RPC query to a remote server?

2000-11-15 Thread Michel Pelletier

Tony McDonald wrote:
 
 Hi all,
 I'm experimenting with collating data from a remote database that uses
 XML-RPC.
 
 I can send it messages like;
  import xmlrpclib
  medweb = xmlrpclib.Server("http://bogus.server.com")
  medweb.getImages('scar')
 '?xml version="1.0" encoding="ISO-8859-1"
 ?\015\012\011data\015\012\011\011titleMedwebb Images/title \0
 
 (lots of stuff snipped)
 
 But I just can't figure out how to send the XML version of the same query,
 ie
 ?XML VERSION="1.0"?
 methodCall
 methodNamegetimages/methodName
 params
 param
 valuestringscar/string/value
 /param
 /params
 /methodCall
 
 to the server.

How does it fail?  Did you set the right content type (text/xml I
think?)?

Why do you want to send a hand built query to the server?  That's what
xmlrpclib is for.

-Michel

 I've got a nasty feeling that when I get told how to do this, I'm going to
 slap my forehead bloody hard

Do what I do, where a helmet to work.

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] would like to join

2000-11-15 Thread SAFE-As Houses

hello i would like to join

cos i need help on how to post images from ma ZOPE space on forum pages 
using this tag [img]urlgoeshere[/img]

thanx
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.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] How to separate markup from presentation

2000-11-15 Thread Tom Sheffler


I'm aware of HiperDom, but I'm wondering if anyone has a good
suggestion for how to structure docs so that docs can be written
using abstract tags whose definition is separate.

What I've done is a simple variable substitution.  My doc uses
constructs like

dtml-var MyH2Start
   ... content ...
dtml-var MyH2End

and the definitions of MyH2Start and MyH2End are simple
properties, whose values are usually something like:

  MyH2Start = "td class=MyTdClassP class=MyTagP"
  MyH2End   = "/P /td"

This is the first part of the problem.  Additionally, I would
like the definitions of my tags (MyH2Start and MyH2End) to be
dependent on the context in which the content appears.  (If it
shows up in a sidebar, an H2 looks one way, rather than in
a main page where is looks another way.)

(These were issues that CSS were to address, but most implementations
are incompatible.)

I'm not looking for a product as much as a suggestion for
a methodology.  Any help appreciated.

T   7om





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




Re: [Zope] Where to store my data?

2000-11-15 Thread Karl Anderson

Karl Anderson [EMAIL PROTECTED] writes:

 "Andy McKay" [EMAIL PROTECTED] writes:
 
  XML (page contents)-- every URL should result in an XML document,
  containing all the information that will be presented on that page.  Written
  in DTML?
  
  XMLDocument.
 
 XMLDocument might or might not be what you want here - while it does
 provide this, there are other ways to produce XML from arbitrary
 objects.

To clarify what I meant, while there's nothing wrong with XMLDocument,
there are many other ways to do this, too, if XMLDocument isn't
suitable.  For example, you can output XML with Python or DTML that
walks your data, and not have to constrain how you're storing it.

-- 
Karl Anderson  [EMAIL PROTECTED]

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




Re: [Zope] How to separate markup from presentation

2000-11-15 Thread Stefan H. Holek

On Wed, 15 Nov 2000, Tom Sheffler wrote:

 I'm aware of HiperDom, but I'm wondering if anyone has a good
 suggestion for how to structure docs so that docs can be written
 using abstract tags whose definition is separate.

[snip]
 
 This is the first part of the problem.  Additionally, I would
 like the definitions of my tags (MyH2Start and MyH2End) to be
 dependent on the context in which the content appears.  (If it
 shows up in a sidebar, an H2 looks one way, rather than in
 a main page where is looks another way.)

[snip]
 
 I'm not looking for a product as much as a suggestion for
 a methodology.  Any help appreciated.

You might still want to have look at the DTMLTemplate product ;)
http://www.zope.org/Members/halazar/Products/DTMLTemplate/

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 )




[Zope] structure text named link hassles

2000-11-15 Thread Karl Anderson


I'm having a hard time making proper named links using Structured Text
(in a ZWiki).  Each of these formats produce the proper link (to the
remote URL), but the valid link is followed by the ? link to create
the wikiname in the quotest (including the colon).

I don't want to cause confusing for someone who mistakenly thinks they
can or should create the relevent page, and I do want to use the
RemoteWikiLink format for clarity.

 "xml-dev:ScalableXML":http://www.zope.org/Wikis/zope-xml/ScalableXML .

 "!xml-dev:ObjectXML":http://www.zope.org/Wikis/zope-xml/ObjectXML .

 "[xml-dev:ObjectXML]":http://www.zope.org/Wikis/zope-xml/ObjectXML .

-- 
Karl Anderson  [EMAIL PROTECTED]

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




[Zope] the Parsed XML project

2000-11-15 Thread Karl Anderson


The Parsed XML project is now public and ready for input.  Parsed XML
is the successor to XMLDocument.  We have a wiki at
http://www.zope.org/Wikis/DevSite/Projects/ParsedXML.
[EMAIL PROTECTED] is also a good place for discussion at this time.

-- 
Karl Anderson  [EMAIL PROTECTED]

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




Re: [Zope] FYI: Digital Creations secures $12M round of investment

2000-11-15 Thread Jimmie Houchin

I would also like to add my congratulations to all at Digital Creations.

I think this will help DC, Python and Zope become more formidable in the
web app and content management marketplaces. This provides DC with
increased ability to implement what is in their heads. :) This is an
exciting time to be in the Zope community.

Woohoo!!! :)

Jimmie Houchin


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

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




[Zope] Catalog sort-on parameter

2000-11-15 Thread Menard . Jean-Francois

I'm trying to use the 'sort-on' parameter in a Catalog search, and it
doesn't work.  I use Zope 2.2.2.  

I read in pasts messages that the 'sort-on' feature was broken, is it still
?

I'm not sure if I use the right syntax so could someone post an sample code
here please ?

Thanks!

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


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




[Zope] using if with date values

2000-11-15 Thread Herring, William O.

I would like to insert into the this sql table the form variable birth.x.
I would like to do it only if the date variable identification.birthdate is
greater the that listed below.  I know the current 'if' statement is
incorrect and probably not even close.  However, I haven't been able to find
any documentation.  Any ideas or solutions would be appreciated.

!--#if expr="identification.birthdate  '08/01/2000' "--
INSERT INTO inventory
  (x)
 VALUES ( !--#sqlvar birth.x type=string -- )
!--#/if--

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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 and SQL question...

2000-11-15 Thread Phil Harris

Try

dtml-if "_.len(genericSQL(SQLStatement='Select count(*) from my_table where
my_field = \'0\''))0"
   YES! There's some data!
dtml-else
   no records found!
/dtml-if

or

dtml-in "genericSQL(SQLStatement='Select count(*) from my_table where
my_field = \'0\'')"
  dtml-if sequence-startYES! There's some data!/dtml-if
dtml-else
   no records found!
/dtml-in

hth

- Original Message -
From: "zope" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 15, 2000 4:22 PM
Subject: [Zope] DTML and SQL question...


| Hi.
|
| I want to test if there is some data in a table.
| If so, I want to perform some action, otherwise I wan't to print out a
message.
| (dtml-if..dtml-else../dtml-if)
|
| My SQL statement is something like:
|
| Select count(*) from my_table where my_field = something
|
| What DTML code do I need to perform that if-statement?
|
| Something like the following does not work :-(
|
| dtml-if "genericSQL(SQLStatement='Select count(*) from my_table where
| my_field = \'0\'') == 0"
|YES! There's some data!
| dtml-else
|no records found!
| /dtml-in
|
| Thanks for any help.
|
| Greetings, Marc Ludwig
| Luxembourg
|
|
| ___
| Zope maillist  -  [EMAIL PROTECTED]
| http://lists.zope.org/mailman/listinfo/zope
| **   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] Uploading files

2000-11-15 Thread Nolan Darilek

I'm trying to write a replacement form which allows users to upload
images into a folder. I'm almost there, but not quite.

I'm having difficulties getting the file contents into the database. I
have an input type="file" field, and I'm fairly sure that the data
is being sent. When I create the Image however, I use
file=REQUEST['file'], and the resulting image stores the path to the
file, instead of the file contents. So, given that I've uploaded a
file, and that its name is in REQUEST['file'], how do I get at its
contents when creating the Image?

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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 files

2000-11-15 Thread Randall Kern

make sure you set the enctype correctly in your form tag:

form action="foo" method="post" enctype="multipart/form-data"

-Randy
- Original Message - 
From: "Nolan Darilek" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 15, 2000 5:07 PM
Subject: [Zope] Uploading files


 I'm trying to write a replacement form which allows users to upload
 images into a folder. I'm almost there, but not quite.
 
 I'm having difficulties getting the file contents into the database. I
 have an input type="file" field, and I'm fairly sure that the data
 is being sent. When I create the Image however, I use
 file=REQUEST['file'], and the resulting image stores the path to the
 file, instead of the file contents. So, given that I've uploaded a
 file, and that its name is in REQUEST['file'], how do I get at its
 contents when creating the Image?
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   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] Uploading files

2000-11-15 Thread matt

use :

file=REQUEST['file'].data

On Thu, 16 Nov 2000, Nolan Darilek wrote:
 I'm trying to write a replacement form which allows users to upload
 images into a folder. I'm almost there, but not quite.
 
 I'm having difficulties getting the file contents into the database. I
 have an input type="file" field, and I'm fairly sure that the data
 is being sent. When I create the Image however, I use
 file=REQUEST['file'], and the resulting image stores the path to the
 file, instead of the file contents. So, given that I've uploaded a
 file, and that its name is in REQUEST['file'], how do I get at its
 contents when creating the Image?
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )
-- 
Matt Halstead (PhD)
Research and development
VirtualSpectator
http://www.virtualspectator.com
ph 64-9-9136896

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] ZClasses on top of my Python classes?

2000-11-15 Thread Randall Kern



I've seen several doc tidbits suggesting one create 
ZClasses derived from their Python classes, sticking all the biz logic in the 
python classes, and the presentation in the ZClasses...

Could someone provide some insight into why this is 
better than simply writing separate python classes for logic and 
presentation? (Although I have to admit hitting the "Restart Server" 
button every time I make a typo is getting old)

Thanks!
-Randy


[Zope] Newbie Install: Solaris/Zeus

2000-11-15 Thread Lee Hunter

I'm trying to install Zope 2.2.2 on a shared web host that uses Zeus running
on Solaris.

When I try to run "python w_pcgi.py" I get the following error:



Zope requires Python thread support!



The version of Python on the machine is 1.5.2

Any thoughts on what I'm doing wrong?

Cheers

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 )




[Zope] modifying objectValues from an external method?

2000-11-15 Thread Bowyer, Alex

You may remember I have posted a couple of times about problems I have had
with manage_delObjects to delete a news article object from a news page
which contains several child news article objects.

I thought I would try and avoid the problem and make a Python method to
remove the item. This method takes the list of articles (i.e. objectValues)
and does the deletion on the parameter passed in.

The problem I have is, objectValues doesn't seem to exist at Python level,
only at DTML level. So instead of:

dtml-call "my_delete_function(objectValues)"

which is not valid, I have to use:

dtml-let my_list=objectValues
  dtml-call "my_delete_function(my_list)"
/dtml-let

The problem with this is that even though the parameter is passed by
reference, the changes are only being done to my_list and not passed back to
objectValues. So I lose them once my_list is out of scope.

Can anyone suggest an alternative or a workaround? I thought about returning
the modified list from the function, but DTML provides no functionality to
set objectValues equal to this result.

Any help would be appreciated!

Thanks

Alex

==
Alex Bowyer
IT Contractor, Logica Australasia
Tel: +61 2 9202 8130
Fax: +61 2 9922 7466
E-mail : [EMAIL PROTECTED]
WWW: http://www.logica.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] New release of HiperDom and ZUnit

2000-11-15 Thread Lalo Martins

I made releases of both HiperDom and ZUnit yesterday. (Yes,
yesterday, Tuesday. I just forgot to make the announcement. Duh.)

The big news is that HiperDom is fully ZUnit-tested (which
gives you an idea of its API if you check the source of
HiperDomTests.py) and some buglets were fixed in the process;
ZUnit benefited a lot from some practical use (writing the
tests for HiperDom) and is now a lot more usable.

You don't need ZUnit to run HiperDom, but if you want to run
the tests, you do need the newest release of ZUnit (plus PyUnit
on your Python path).

Also:

HiperDom represents the presentation layer. Python Methods are
the ideal logic layer. So we figured we'd want an object for
the data layer. Actually, the data layer usually resides on
ZClasses or Python classes, but we wanted to have a
"lightweight" data layer object, so we coded one up and
included it (for now) in the HiperDom Product. Try it out.
There's not a lot of documentation yet, but the addform tells
you most of what you want to know.

[]s,
   |alo
   +
--
  Hack and Roll  ( http://www.hackandroll.org )
News for, uh, whatever it is that we are.


http://zope.gf.com.br/lalo   mailto:[EMAIL PROTECTED]
 pgp key: http://zope.gf.com.br/lalo/pessoal/pgp

Brazil of Darkness (RPG)--- http://zope.gf.com.br/BroDar

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Help needed with LoginManager and REMOTE_USER authentication

2000-11-15 Thread Jay, Dylan

I want to use REMOTE_USER authentication so that I can authenticate people
using IIS NT authentication intergration.
IIS is set up and passing the correct REMOTE_USER to Zope. I set up
LoginManager with a GenericUserSource. Now I figure I want anyuser that can
pass the IIS security to be a user, ie no presistant list of users I want to
check against. I figure I can do this by creating pythonMethods for
userAuthenticate and userExists which both return 1. I did this but every
time I try to access a page protected by the LoginManager I get the
following error "Sorry AUSLABS\dylanj, you are forbidden to access this
resource." saying that the GUF stuff is probably not working. 

Anyone with any ideas whats wrong or with a better way to do what I want?

The problem I seem to have is that when I activate the GUF user source I
lose management access to the LoginManager object. If its not working and
therefore not authenticating me then shouldn't use aquisition to find a
acl_user folder lower down to authenticate me and therefore let me use the
management interface like normal?



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] modifying objectValues from an external method?

2000-11-15 Thread Randall Kern

dtml-call expr="manage_delObjects(ids=objectIds())"

Place this in a DTML method, and it will remove all the sub-objects in the
folder you call it on.

Example:

Create a folder "Test".  In that folder, create a DTML method called
remove_all, and put the DTML from above in it.  Then create another Folder
inside Test called "Lossy".  Create some random stuff you don't mind losing
into this new folder.

Open your browser, and goto http://yourserverhere/Test/Lossy/remove_all

Go back to the manage interface, and notice that all that stuff you didn't
mind losing is gone.

-Randy
- Original Message -
From: "Bowyer, Alex" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 15, 2000 9:53 PM
Subject: [Zope] modifying objectValues from an external method?


 You may remember I have posted a couple of times about problems I have had
 with manage_delObjects to delete a news article object from a news page
 which contains several child news article objects.

 I thought I would try and avoid the problem and make a Python method to
 remove the item. This method takes the list of articles (i.e.
objectValues)
 and does the deletion on the parameter passed in.

 The problem I have is, objectValues doesn't seem to exist at Python level,
 only at DTML level. So instead of:

 dtml-call "my_delete_function(objectValues)"

 which is not valid, I have to use:

 dtml-let my_list=objectValues
   dtml-call "my_delete_function(my_list)"
 /dtml-let

 The problem with this is that even though the parameter is passed by
 reference, the changes are only being done to my_list and not passed back
to
 objectValues. So I lose them once my_list is out of scope.

 Can anyone suggest an alternative or a workaround? I thought about
returning
 the modified list from the function, but DTML provides no functionality to
 set objectValues equal to this result.

 Any help would be appreciated!

 Thanks

 Alex

 ==
 Alex Bowyer
 IT Contractor, Logica Australasia
 Tel: +61 2 9202 8130
 Fax: +61 2 9922 7466
 E-mail : [EMAIL PROTECTED]
 WWW: http://www.logica.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] ZClasses on top of my Python classes?

2000-11-15 Thread Max Møller Rasmussen

From: Randall Kern [mailto:[EMAIL PROTECTED]]

I've seen several doc tidbits suggesting one create ZClasses derived from
their 
Python classes, sticking all the biz logic in the python classes, and the 
presentation in the ZClasses...

Could someone provide some insight into why this is better than simply
writing 
separate python classes for logic and presentation?  (Although I have to
admit 
hitting the "Restart Server" button every time I make a typo is getting
old)

Well one thing is that it clearly separates logic from presentation, and if
you know zClasses it is easier to get started with while stille being nice
to program in Python.

You can reuse the same Python logic and give it several different interfaces
in several zClasses.

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 )