Re: [Zope-dev] Problem using External Method

2001-01-24 Thread Shane Hathaway

"Espen S. Frederiksen" wrote:
 
 The problem occur when I try to split up the function as
 shown below. I would like to store the data list, update it
 if nessesary and return it when appropriate. Am I making it
 unessesary complex when I use the class? Is there maybe a
 way to declare the data list global within the module? Or
 is there another, possibly different, way to do this?

Take out all the "import __main__" statements and you should be fine.

Python lets you access two namespaces at once: the "local" namespace and
the "global" namespace.  Were it not for the global namespace, you would
need to do something like "import __main__".  But since globals are
there, everything available at the module level is also available at the
function level.

Shane

 class Testclass:
 def setdata(self,val1,val2,val3):
 self.data = [val1,val2,val3]
 def updatedata(self, index):
 self.data[index] = self.data[index]+1
 def display(self):
 return self.data
 
 x = Testclass()
 
 def createdata(var1, var2, var3):
 import __main__
 x.setdata(var1, var2, var3)
 
 def update(index):
 import __main__
 x.updatedata(index)
 
 def returndata():
 import __main__
 return x.display()

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




[Zope-dev] Re: DTML block parsing - better then C/C++

2001-01-24 Thread Jon Franz

This allowance for nested comments, as long as they are properly nested,
is more then many laguages, such as C/C++, give you in the way of allowing
nested comments - So I think its more then acceptable in its current form -
good job!

OK, I have developed a new patch that almost completely fixes this
issue. In fact I am happier with it in general than my first patch.
There is only one flaw, although you can nest comments inside of one
another, and you can have any manner of broken dtml inside, if you open
another comment tag inside it, it must be properly balanced or you will
get a parse error. Here are some examples:

___
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] ZSQL method - Can it 'resolve' a property value?

2001-01-24 Thread Schmidt, Allen J.

I have an index_html which runs queries that count the number of items in a
category and displays the number next to each category which is a link to
the SearchResults page that will pass the name of the property to the next
query. This is how I do the count part:

(dtml-in countAnnouncementsdtml-var announcements null=""/dtml-in)

I have a sql method for each count query and each uses a property (like
announcements above) that contains a list of numbers (i.e. Announcements
has: '001','002','003','004' )
So the query does a WHERE category IN ('001','002','003','004') statement by
resolving the property and getting the list of numbers. This part works
well.

Now,...
When I try to do the same thing on the SearchResults page, using a new sql
method, I cannot get the property to resolve. I try using an attribute of
the category for testing so it prompts for the category name when I test it.
I use the MULTIPLE attribute with a DTML-SQLTEST to produce the "WHERE IN"
type of query. I type in the name of the property that contains the list of
numbers and all I get for the query is:  WHERE category =
('nameOfProperty')

This makes less sense as I am describing it, but it may be clear to someone.


Thanks

Allen

___
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] Mapping multiple IP addresses/domains to one Zope

2001-01-24 Thread Aaron Gillette

My company has many sites which share some content. Each site uses a
different IP address. I would like to bring all of these sites into one
instance of Zope on an NT machine. I am looking at the possibility of either
1) running Zope behind IIS, or 2) running Zserver exclusively. Personally,
I'd rather take the time in advance to learn how to do the whole thing in
Zope, as I envision switching to a Linux server in the near future, and I
believe that this would ease the migration.

My question is this: How do I map different IP addresses/domains to
different Zope folders? I am pretty new to Python (but learning fast!), so
any snippets of sample code would be much obliged.

Thanks in advance,

Aaron Gillette


___
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] Old to new registerClass

2001-01-24 Thread Brian Lloyd

 Im hacking around IEMethod and it uses an old style of class 
 initialisation
 in the __init__.py along the lines of:
 
   misc_ = { 'imagef':'foo','imageg':'goo', }
   lang_= { 'en':'lang_en','sv':'lang_sv', }
 
 I want to put this into a modern style product initialisation
 (context.registerClass). Looking at this functions API it didn't become
 readily apparent how I can pass in these values. This would be 
 nice to do so
 I don't have any hacking of dtml to do. Has anyone done this / got any
 advice?

Hi Andy - the modern product init doesn't currently provide 
any special handling of misc_ (though it probably should in 
the future to make registration an explicit operation). If
a misc_ mapping is found in your __init__.py by the product
initialization code, its items will be installed in the 
misc_ object of the top-level application object. So you'll 
want to do something like:


from Globals import ImageFile

misc_={'imagef': ImageFile('foo.gif', globals()),
   'imageg': ImageFile('goo.gif', globals()),
  }

When your product is initialized, the items in your misc_ 
will be installed in the application objects' misc_, and 
you can refer to them thereafter in your dtml as:

  dtml-var BASEPATH1/misc_/imagef
  dtml-var BASEPATH1/misc_/imageg

etc. I don't know what 'lang_' does, so I'm not sure what 
to advise you there...

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





___
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] Problem using External Method

2001-01-24 Thread Shane Hathaway

On Wed, 24 Jan 2001, Espen Sorbye Frederiksen wrote:
 I did what you suggested, but I am still a bit stuck. Maybe I call them
 wrong in my code. I use the call below but get an error.

 dtml-call expr="createdata('test1','test2','test3')"
 dtml-var expr="returndata()"

 Error Type: AttributeError
 Error Value: data

 any suggestions what I do wrong,

I suggest you run Zope in "-D" mode so you can see tracebacks easily.
They can pinpoint the exact source of problems like this.

Shane


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




Re: [Zope-dev] Mapping multiple IP addresses/domains to one Zope

2001-01-24 Thread Toby Dickenson

On Wed, 24 Jan 2001 10:07:29 -0600, "Aaron Gillette"
[EMAIL PROTECTED] wrote:

My company has many sites which share some content. Each site uses a
different IP address. I would like to bring all of these sites into one
instance of Zope on an NT machine. I am looking at the possibility of either
1) running Zope behind IIS, or 2) running Zserver exclusively.

Is this server accessible to untrusted users? If yes, then go for IIS.
ZServer on its own isnt sufficiently bullet-proof.

 Personally,
I'd rather take the time in advance to learn how to do the whole thing in
Zope, as I envision switching to a Linux server in the near future, and I
believe that this would ease the migration.

Yes, its safe to copy zope databases between platforms, and zope
itself is very platform-neutral.

My question is this: How do I map different IP addresses/domains to
different Zope folders? I am pretty new to Python (but learning fast!), so
any snippets of sample code would be much obliged.

Search on www.zope.org for SiteAccess. 

Toby Dickenson
[EMAIL PROTECTED]

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




Re: [Zope-dev] Mapping multiple IP addresses/domains to one Zope

2001-01-24 Thread Aaron Gillette

Sorry, but I don't think I phrased my original question very well. I'll give
it another try.

What I'm trying to do is have Zope somehow map an IP address to a specific
subfolder within the ZODB. For example, I've got one subfolder that should
serve DOMAIN1.COM which is located at the IP address XXX.XXX.XXX.1, a second
subfolder should serve DOMAIN2.COM which is located at the IP address
XXX.XXX.XXX.2, etc... How can this be accomplished?

If there is a way to do it behind IIS, that'd be great.

SiteAccess could then take care of the conversion of the root domain name (I
think).

I hope I've cleared things up a bit.

Thanks,

Aaron Gillette

- Original Message -
From: "Toby Dickenson" [EMAIL PROTECTED]
To: "Aaron Gillette" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, January 24, 2001 10:22 AM
Subject: Re: [Zope-dev] Mapping multiple IP addresses/domains to one Zope


On Wed, 24 Jan 2001 10:07:29 -0600, "Aaron Gillette"
[EMAIL PROTECTED] wrote:

My company has many sites which share some content. Each site uses a
different IP address. I would like to bring all of these sites into one
instance of Zope on an NT machine. I am looking at the possibility of
either
1) running Zope behind IIS, or 2) running Zserver exclusively.

Is this server accessible to untrusted users? If yes, then go for IIS.
ZServer on its own isnt sufficiently bullet-proof.

 Personally,
I'd rather take the time in advance to learn how to do the whole thing in
Zope, as I envision switching to a Linux server in the near future, and I
believe that this would ease the migration.

Yes, its safe to copy zope databases between platforms, and zope
itself is very platform-neutral.

My question is this: How do I map different IP addresses/domains to
different Zope folders? I am pretty new to Python (but learning fast!), so
any snippets of sample code would be much obliged.

Search on www.zope.org for SiteAccess.

Toby Dickenson
[EMAIL PROTECTED]


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




Re: [Zope-dev] Old to new registerClass

2001-01-24 Thread Johan Carlsson

 Brian Lloyd
 etc. I don't know what 'lang_' does, so I'm not sure what 
 to advise you there...
 

Hi Andy, 
As far as I can see the land_ directory doesn't seam to do anything.
You could try to just remove it.
(It wasn't me that put it there.)

As for the most part of the Images defined in the misc_ structure,
I suppose all of the except the IEMethod.gif (needed outside) 
could be defined in the IEMethod class instead of the module level. 
They are really not so useful outside the scope of the IEMethod object itself.
This should apply to the JavaScript-files and CSS-files as well.
(Well it was me who put those files there, but that was a long time ago ;-)

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 )




Re: [Zope-dev] Old to new registerClass

2001-01-24 Thread Andy McKay

Lang is used in this line:

document.write("SCR"+"IPT src=\"misc_/IEMethod/lang_"+lang+"\"
type=\"text/javascript\"/SCR"+"IPT");

Kind of a bizarre line, but it looks like its setting the script source.
Thanks, just doing a quick ZWiki-IEMethod merge so that you can edit a ZWiki
standard style or using IEMethod.

Thanks for the code.

--
  Andy McKay.


- Original Message -
From: "Johan Carlsson" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 24, 2001 8:44 AM
Subject: Re: [Zope-dev] Old to new registerClass


  Brian Lloyd
  etc. I don't know what 'lang_' does, so I'm not sure what
  to advise you there...
 

 Hi Andy,
 As far as I can see the land_ directory doesn't seam to do anything.
 You could try to just remove it.
 (It wasn't me that put it there.)

 As for the most part of the Images defined in the misc_ structure,
 I suppose all of the except the IEMethod.gif (needed outside)
 could be defined in the IEMethod class instead of the module level.
 They are really not so useful outside the scope of the IEMethod object
itself.
 This should apply to the JavaScript-files and CSS-files as well.
 (Well it was me who put those files there, but that was a long time ago
;-)

 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 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] Old to new registerClass

2001-01-24 Thread Andy McKay

I nuked it and everything is just fine, its defined in misc. Anyway works
fine, will post a "package" shortly after some testing.
--
  Andy McKay.


- Original Message -
From: "Johan Carlsson" [EMAIL PROTECTED]
To: "Andy McKay" [EMAIL PROTECTED]
Sent: Wednesday, January 24, 2001 9:39 AM
Subject: Re: [Zope-dev] Old to new registerClass


  Lang is used in this line:
 
  document.write("SCR"+"IPT src=\"misc_/IEMethod/lang_"+lang+"\"
  type=\"text/javascript\"/SCR"+"IPT");

 I think that:
 The "lang" Javascript variable is either set to "sv" or "en" so the script
include
 file should look for either "lang_sv" or "lang_en".
 The dictionary lang_ defined in __init__ isn't, as far as I can see, used
anywhere.

 So you don't need to worry about it much.

  Kind of a bizarre line, but it looks like its setting the script source.
  Thanks, just doing a quick ZWiki-IEMethod merge so that you can edit a
ZWiki
  standard style or using IEMethod.

 Great, one less thing for me to do :-)

 Johan



___
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] Mapping multiple IP addresses/domains to one Zope

2001-01-24 Thread Michael Bernstein

Aaron Gillette wrote:
 
 My company has many sites which share some content. Each site uses a
 different IP address. I would like to bring all of these sites into one
 instance of Zope on an NT machine. I am looking at the possibility of either

 1) running Zope behind IIS, or 

 2) running Zserver exclusively.

You have a third possibility, which is to run Zope behid
Apache on NT. I would guess that this list has more
experience with Apache rewrite rules than IIS.

This setup should also be fairly easy to migrate to Linux.

Personally, I've found it more convenient to point all my
domains to a single IP address, and let Zope (with help from
SiteAccess) handle the rest. This has been easier, even
though Zope is behind Apache, as Zope Access Rules are
easier to create (IMO) than dealing with name or IP based
virtual hosting under Apache. Those Apache rewrite rules are
horribly cryptic.

HTH,

Michael Bernstein.

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




Re: [Zope-dev] Local roles and security of ZClass instances inSpecialists

2001-01-24 Thread Itai Tavor

Hi Steve,

This is a nice idea... but I can't get it to work. it works fine when 
changing properties:

   WHEN OBJECT CHANGED CALL self.checkForPermission(REQUEST)

But is ignored for accessing properties:

   WITH self.checkForPermission(REQUEST) COMPUTE spam='eggs'

simply fails to set spam if checkForPermission raises an exception, 
because ZPatterns catches all exceptions in COMPUTE clauses (I never 
understood the point of this, BTW. It just gets in the way of 
debugging. Wouldn't catching just AttributeError and KeyError be 
enough?) and the exception gets dumped to the console. Which could 
actually be considered to work, because the method doing the access 
will fail... but that would be ugly and definitely not what I want.

Also, I want a solution that would work regardless of the storage 
method - I don't think this one won't work for ZODB storage. In a 
Rack using persistent storage and having a property 'spam', the 
SkinScript clause:

   WITH self COMPUTE spam='eggs'

will be ignored. So the SkinScript can be used to control access only 
if it's already being used to load the properties.

Which all comes down to having to do the security checks in all the 
methods that access the object :-( Unless you can show me something I 
missed?


Steve Spicklemire wrote:

Hi Itai,

I'm sure there's something clever you could do here with
an attribute provider for you user object that supplied
__roles__ dynamically somehow, but I'd need to think
about that more... one easy way to limit who can
see different stuff is to use a wrapper around
your access methods (e.g., SQL queries) that checks for
security:

e.g.,

WITH [ QUERY ] LookupAttributesAndCheckForPermission(REQUEST) 
COMPUTE foo, bar, baz

where LookupAttributesAndCheckForPermission get's everything it needs out of
the REQUEST.

It's a crude tool.. but it's simple. When I get some time to think clearly..
I'll try to come up with something more general. Hopefully you'll also get
some other suggestions...

-steve
  "Itai" == Itai Tavor [EMAIL PROTECTED] writes:

 Itai Hi,

 Itai I'm trying to work out a security strategy for data stored
 Itai in Specialists, where specific users need access to specific
 Itai data instances.

 Itai For example: A Customer object is linked to a Person and
 Itai Address objects. The customer needs permission to edit the
 Itai her - and only her - Address object. Using the Owner local
 Itai role won't work, because customers can be registered by site
 Itai managers and customer support people, in which case Owner
 Itai won't be the customer.

 Itai I can solve this by giving the customer a local role when
 Itai creating her Address object:

 Itai  Customers.addCustomer(REQUEST): ni =
 Itai container.addItem(some_id)
 Itai container.Addresses.addAddressFor(ni.id, REQUEST)

 Itai  Addresses.addAddressFor(for_id, REQUEST): ni =
 Itai container.addItem(some_id) ni.manage_addLocalRole(for_id,
 Itai 'EditMyDetails')

 Itai But this can be a lot of work - If an Address object can
 Itai also be created for a CreditCard object, addCreditCard will
 Itai have to both set its own local role, and pass the customer
 Itai id on to Address...

 Itai But the main problem is that I'm not sure if it will work at
 Itai all - can local roles be set for DataSkins that aren't
 Itai stored in the ZODB?  From what I can see ZPatterns doesn't
 Itai support this, so I'll have to do it
 Itai myself. __ac_local_roles__ can't be accessed in a SkinScript
 Itai - so will I have to override has_local_roles,
 Itai get_local_roles and get_local_roles_for_userid and call them
 Itai from the SkinScript? This is getting hairy...

 Itai Without local roles, all I can think of is explicitly
 Itai checking that the logged in user is the right customer in
 Itai all the methods that display and edit the object, which is
 Itai very ugly. Plus it would require Address to know a
 Itai customer_id even when it actually belongs to a CreditCard,
 Itai not a Customer... there goes Demeter. Or I can add a
 Itai findUserID to Address, CreditCard and Customer, all of which
 Itai pass the request upwards until one is reached that actually
 Itai knows the customer. Still ugly.

 Itai TIA for Any comments/suggestions.

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

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


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

-- 
--
Itai Tavor  -- "Je sautille, donc 

[Zope-dev] Possible TransparentFolders bug?

2001-01-24 Thread Itai Tavor

Hi,

The TransparentFolders Product seems to make everything 
transparent... not just transparent folders.

Zope/
 Folder_A/
 method_A
 Folder_B/ (transparent folder)
 method_B

I'd expect the only effect of the transparent folder to be that 
/Folder_A/method_B would work. But /method_A and /method_B also work. 
Tested in Zope 2.3b2 and 2.3b3 with TransparentFolders 0.3.
-- 
--
Itai Tavor  -- "Je sautille, donc je suis."--
[EMAIL PROTECTED]--   - Kermit the Frog --
-- 'Supposing a tree fell down, Pooh, when we were underneath it?' --
-- 'Supposing it didn't,' said Pooh after careful thought. --


___
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] Hiding a Zope object from URL accesses

2001-01-24 Thread Gerald Gutierrez


If I have a Z SQL method set up as /query on my Zope site, how is it 
possible for me to disallow direct accesses to it via a URL (like 
http://localhost/query) ? If I cannot, then what is the convention people 
use to store objects which are not supposed to be visible directly?

Thanks.


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




Re: [Zope] zope : postgre sql

2001-01-24 Thread Stephane Bortzmeyer

On Wednesday 24 January 2001, at 11 h 56, the keyboard of "K H Subrahmanyan" 
[EMAIL PROTECTED] wrote:

 I am using zope in linux redhat 6.
   ^^
   RedHat

 I have python-popy_1.2.1_i386.deb
   
   Debian package
   
   Download PoPy's debian packages from
^^
Debian 

 what is dpkg.

Debian package management tool.

PS: I've installed Zope + Postgres + Popy on a RedHat 6.2 (you are aware that 6.0 is 
full of security bugs?) and it works fine. Just do not mix the two operating systems, 
Debian and RedHat.



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Some help required but no sarcastic comments this time please

2001-01-24 Thread Stephane Bortzmeyer

On Tuesday 23 January 2001, at 23 h 17, the keyboard of "alankirk" 
[EMAIL PROTECTED] wrote:

 I am using Zope 2.2.2 on windows(this time i'd appreciate no sarcastic =
 comments this time)

Feel free to interpret every comment you don't like as "sarcastic", but it 
will not save your business.

 to this address) and the response has been pretty poor, i've even tried =
 to email people involved with the mysql database adaptors and got no =
 response.

You use a commercial operating system: pay for a commercial support.

 It is really important that i get this problem sorted now if possible as =
 my final year project for university depends on this 'bug' getting =
 fixed.

If it is important, do not run it on MS-Windows. Otherwise, some people may think you 
know nothing about software...



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

2001-01-24 Thread yves

I had read the Upgrade document, but hadn't followed the link to read the actual
Security How-To document. That definitely did the trick, thanks a lot for your
help!

 ..Yves

Quoting Dieter Maurer [EMAIL PROTECTED]:

 [EMAIL PROTECTED] writes:
   I've stumbled upon a strange problem with dtml-tree in version 2.2.5
 (the
   problems occurs in the same way in any of the 2.2.x version), but didn't
 exhibit
   itself in 2.1.6:
 You should read Brian's excellent "Upgrade to 2.2.x" document.
 It will explain you the changes in the protection policy
 and what class authors must do that the instances do not
 throw Unauthorized exceptions when accessed.


 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] Some help required but no sarcastic comments this time please

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

- Original Message -
From: "Stephane Bortzmeyer" [EMAIL PROTECTED]
Subject: Re: [Zope] Some help required but no sarcastic comments this time
please


 On Tuesday 23 January 2001, at 23 h 17, the keyboard of "alankirk"
 [EMAIL PROTECTED] wrote:

  I am using Zope 2.2.2 on windows(this time i'd appreciate no sarcastic =
  comments this time)

 Feel free to interpret every comment you don't like as "sarcastic", but it
 will not save your business.

  to this address) and the response has been pretty poor, i've even tried
=
  to email people involved with the mysql database adaptors and got no =
  response.

 You use a commercial operating system: pay for a commercial support.

  It is really important that i get this problem sorted now if possible as
=
  my final year project for university depends on this 'bug' getting =
  fixed.

 If it is important, do not run it on MS-Windows. Otherwise, some people
may think
 you know nothing about software...


And this kind of harsh response was necessary, because... ?

/dario

*end of thread*

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



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




Re: [Zope] Here is a Challenge: Import + Export folder...

2001-01-24 Thread Tim Cook

 3dfestival - WebMaster wrote:

  - Webmaster @ 3D festival (http://www.3dfestival.com)
 
 PS: I know that u can use telnet, but I do not know how to use
 telnet

Try 'man telnet' or 'telnet --help' to learn.


-- Tim Cook, President --
Free Practice Management,Inc. | http://www.FreePM.com Office:
(901) 884-4126
"Liberty has never come from the government." - Woodrow Wilson

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

2001-01-24 Thread Chris Withers

Tim Moore wrote:
 
 "Invalid Date-Time String" error.  I take it that empty date fields
 aren't allowed then...is this intended or a bug?  Still using 2.3b1.

It's always been like that, but I'd see it as a bug, so stick it in the
collector.

I wonder if the same is for number properties?

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] dtml-let + 'expr=' possible?

2001-01-24 Thread Chris Withers

Lee wrote:
 
 dtml-let table expr="classcode_to_table(classcode)"

I think:
dtml-let table="classcode_to_table(classcode)"

..will do it, if it doesn't, then you probabyl can't :-S

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] Hiding a Zope object from URL accesses

2001-01-24 Thread Chris Withers

Gerald Gutierrez wrote:
 
 
 If I have a Z SQL method set up as /query on my Zope site, how is it
 possible for me to disallow direct accesses to it via a URL (like
 http://localhost/query) ? If I cannot, then what is the convention people
 use to store objects which are not supposed to be visible directly?

It would be so nice if there was some way to do this gracefully in Zope, but
there isn't :-S

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] Hiding a Zope object from URL accesses

2001-01-24 Thread Dimitris Andrakakis

Gerald Gutierrez wrote:
 If I have a Z SQL method set up as /query on my Zope site, how is it
 possible for me to disallow direct accesses to it via a URL (like
 http://localhost/query) ? If I cannot, then what is the convention people
 use to store objects which are not supposed to be visible directly?

I think its as simple as revoking the access rights for anonymous (or other)
users. I.e. it's not invisible, but rather not allowed (pardon my english).

Dimitris
http://atlas.central.ntua.gr:8000


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Here is a Challenge: Import + Export folder...

2001-01-24 Thread Chris Withers

Tim Cook wrote:
 
  3dfestival - WebMaster wrote:
 
   - Webmaster @ 3D festival (http://www.3dfestival.com)
 
  PS: I know that u can use telnet, but I do not know how to use
  telnet
 
 Try 'man telnet' or 'telnet --help' to learn.

Or use FTP ;-)

Chris

PS: The reason remote imports are not allowed is that, through an import, any
code the remote person uploads can be executed, which would be very unsecure.

...although given Zope has a powerful security mechanism, I don't see why
authenticated users can't be trusted. I guess it's a thing about helping people
not to shoot themselves in the foot.

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] Some help required but no sarcastic comments this time please

2001-01-24 Thread Geoffrey L. Wright

[EMAIL PROTECTED] writes:

 On Tue, Jan 23, 2001 at 11:17:32PM -, alankirk wrote:
  Hi there,
 
  i sent an email the other week regarding problems i've been
  experiencing with zope and MySQL. I've set up a database
  connection for zope and mysql and it sort of works. I can send
  queries to add data to my database ok but when i send a query to
  get data from my database i get one of 3 errors and my python
  server that zope runs from stops. The errors i get are Python
  experienced an error in (either nothing,MYSQL.DLL or
  PYTHON15.DLL).
 
  I am using Zope 2.2.2 on windows(this time i'd appreciate no
  sarcastic comments this time) I've sent a few emails about this
  problem to various people (including to this address) and the
  response has been pretty poor, i've even tried to email people
  involved with the mysql database adaptors and got no response.

  It is really important that i get this problem sorted now if
  possible as my final year project for university depends on this
  'bug' getting fixed.
  
  If you can give me help on this or point me in the direction of
  someone who can, i'd be grateful
 
  Cheers
  
  Alan
 
 Alan:
 
 This is not meant sarcastically.
 
 You are probably the only person who has ever tried to do this!
 Probably no one can help you.  (In case people don't remember, Alan
 is working on Win9x; windows 98, as I recall.)

I thought it was ME.  But hopefully it was 98

 You are working on a platform which is known for instability, with
 limited debugging capabilities.
 
 I urge you to either change to NT/SQL Server or to Linux/MySql or to
 Linux/PostgeSQL.  I can help you with the last, I suspect others can
 help you with either of the first two.
[...]

I have to concur here.  I do a _lot_ of development against MySQL --
I've dealt with it on both Win32 and various *NIXes.  MySQL is really
much more at home in a *NIX environment.  If you're completely tied to
Win32, you'd likely save yourself a lot of grief by moving to Win NT.
And if you go that far, I have to agree with Mr. Penny that SQL Server
would be a much better choice on NT for a DB.  My experiences with
MySQL on NT have tended to be frustrating -- but then I'm a fairly
poor NT admin.  But on *NIX MySQL is both extremely easy to administer
and solid as a rock.

Of course, I was a college student not so long ago, and know well that
an NT license isn't cheap.  And neither is SQL Server.  But maybe you
have a rich relative.  If not and you still really want this to work,
here's my sarcasm-free suggestion.

Pick up a used low-end Pentium.  I just grabbed a P120 with 32 megs of
RAM, a 750 meg HD and a 3Com EtherLink III for 80 bucks for use as a
firewall.  You could probably do better if you shopped around.  If you
intend to put both Zope and MySQL on the this box, I would up the RAM
to 64 megs.  The whole thing should certainly set you back less than
100 bucks.

Now install Linux.  If you're new to it, pick an easy distro like
RedHat or Mandrake.  Both have a very strait-forward install process.
If the idea if installing Linux by yourself for the first time makes
your hands tremble, find your local Linux User Group (LUG).  If you're
at a big university, check with the CS department.  They can probably
give you a contact.  In all likelihood, somebody in the LUG will be
falling over himself (herself?) to help you out.  FreeNIX people are
usually like that.  Worst come to worst, a case of cheap beer should
buy you a working install of Linux/MySQL.  In fact, if you happen to
live in Alaska I'll do it for that price!

Once you're at that point you'll probably find a lot more help.  I
think your problem at this point is simply that you have a fairly
exotic configuration.  Most people haven't seen the problems you're
having because they aren't using the same platform.  Both Zope and
MySQL are server software packages, and server software usually finds
its home on server OSes.

And even though Zope seems to bridge the great MS/*NIX cultural divide
quite nicely, MySQL is really from a *NIX world.  I think it's just
not a common choice for databases amongst Microsoft devotees.  I
would guess that 95+ percent of people who have tried to connect Zope
and MySQL have been working with some UNIX variant, and of those the
majority are probably using some flavor of Linux.

So I guess I could distill all of this advice down to one simple
statement:

If you pick a software combination used by a large number of people,
you'll likely find yourself with a strong base of user support.  If you
use an unusual combination, you may have to tough it out on your own.


Best 'o luck!


//glw


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Hiding a Zope object from URL accesses

2001-01-24 Thread Chris Withers

Dimitris Andrakakis wrote:
 
 Gerald Gutierrez wrote:
  If I have a Z SQL method set up as /query on my Zope site, how is it
  possible for me to disallow direct accesses to it via a URL (like
  http://localhost/query) ? If I cannot, then what is the convention people
  use to store objects which are not supposed to be visible directly?
 
 I think its as simple as revoking the access rights for anonymous (or other)
 users. I.e. it's not invisible, but rather not allowed (pardon my english).

That's slightly different...

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] Here is a Challenge: Import + Export folder...

2001-01-24 Thread Tim Cook

Chris Withers wrote:

 ...although given Zope has a powerful security mechanism, I don't see why
 authenticated users can't be trusted. I guess it's a thing about helping people
 not to shoot themselves in the foot.
 

Probably. I think DC is too close to Washington, DC. Some of that
"I'm from ... and I'm here to help you." stuff rubbed off on
them. VBG

But then , it is opensource. You could just change your copy. s


-- Tim Cook, President --
Free Practice Management,Inc. | http://www.FreePM.com Office:
(901) 884-4126
"Liberty has never come from the government." - Woodrow Wilson

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Hiding a Zope object from URL accesses

2001-01-24 Thread Ivan Cornell

Dimitris Andrakakis wrote:

 Gerald Gutierrez wrote:
  If I have a Z SQL method set up as /query on my Zope site, how is it
  possible for me to disallow direct accesses to it via a URL (like
  http://localhost/query) ? If I cannot, then what is the convention people
  use to store objects which are not supposed to be visible directly?

 I think its as simple as revoking the access rights for anonymous (or other)
 users. I.e. it's not invisible, but rather not allowed (pardon my english).

This should work, but you will also need to assign proxy roles ['higher' than
anonymous] to any of the methods that call your /query method otherwise they
will also be refused access!

Ivan


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

2001-01-24 Thread Ulrich Wisser

Hello,

my users are not allowed to access the whole LocalFS.
Therefor I setup a proxy method to check their access
rights. If they are allowed I would like to return
the file.

This is what I came up with:

1. Make the LocalFS accessible through PathHandler
2. The PathHandler DTML method checks the access rights
3. if a directory is accessed a listening is returned
if a file is accessed the file is returned

Now pleasse see my code:

h1Path to handle dtml-var path_to_handle/h1
dtml-let user="AUTHENTICATED_USER.getUserName()"
dtml-if "user in lfs.fileIds()"
   dtml-call "REQUEST.set('mylfs',lfs[user])"
   dtml-in path_to_handle
 dtml-call "REQUEST.set('mylfs',mylfs[_['sequence-item']])"
   /dtml-in
   pmeta_type = dtml-var "mylfs.meta_type"/p
   dtml-if "mylfs.meta_type != 'Local Directory'"
 THE FILE SHOULD BE RETURNED HERE!
   dtml-else
 HERE COMES THE DIRECTORY INDEX.
   /dtml-if
dtml-else
 dtml-raise type="No Access"
   No access granted.br
   User: dtml-var AUTHENTICATED_USER
 /dtml-raise
/dtml-if
/dtml-let

When mylfs references a directory meta_type is 'Local Directory'
but if mylfs references a file meta_type is 'File'.

How can I let the user download the file?

Ulrich
-- 
Searchengine Know How  - Webpromotion - Optimization - Internal Search
World Wide Web Publisher, Ulrich Wisser, Odensvag 13, S-14571 Norsborg
http://www.publisher.de   Tel: +46-8-53460905Fax: +46-8-534 609 06


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Some help required but no sarcastic comments this time please

2001-01-24 Thread Petter Enholm



Hi,

I see that you get all kinds of responses on the 
zope mailing list regarding Zope, mySQL and Windows. Hate to see that ... 
well .. to your problems:

I run Windows 2000 on my laptop with Zope 2.2.4 and 
mySQL 3.23.30. 

I even run the same Zope and mySQL setup on a 
Compaq server with Windows 4.0 in a production environment. Not the kind of 
setup I would prefer, but my customer wanted it installed on this server. 
Anyway: the setup is 100% stable, and I and my customer is really satisfied with 
the solution.

I had problems getting things working when I 
compiled the mysql.dll file manually. Instead, I downloaded the files as 
specified in the HOW-TO on mySQL in win32 environment. 

With these files installed I have no problems 
performing different queries, inserts, updates etc in the mySQL database. I have 
not experienced one crash!!

The setup has also been tested (though not 
thorougly) under Windows 95 and Windows 98!

So: try to follow the HOW-TO and download the files 
specified there. Setting up Zope  mySQL on Win32 machines takes no for me 
at all, and it always runs very well!!

Best of luck to you!

Best regards

Petter Enholm


Re: [Zope] Cache manager in zope 2.3.0b1

2001-01-24 Thread Bak @ kedai


-Original Message-
From: Shane Hathaway [EMAIL PROTECTED]
To: Bak@kedai [EMAIL PROTECTED]
Date: Wednesday, January 24, 2001 9:10 PM
Subject: Re: [Zope] Cache manager in zope 2.3.0b1


"Bak@kedai" wrote:

 From HelpSys for RAM CAche
 """
 Finally, you can configure the list of REQUEST variables
 that will be used in the cache key. This can be a simple
 and effective way to distinguish requests from
 authenticated versus anonymous users or those with
 session cookies.
 """
 so, if i access a particular DTML Method as such
 http://myserver.com/mymethod?objId=xxx
 can i use objId to distinguish between different objects?
 i tried by setting objId as the cache key in my RAM Cache object.
however,
 nothing were cached.  even after accessing mymethod with different objId.

I'd like to help you out with this--could you give more details?  What
did you do to test the caching?  Are you sure it wasn't being cached?

Shane

sorry.  my mistake.  i think more info on how/what should/can be a cache key
is good.   currently, there's two cache key  fields, one in the object
itself, one in the cache manager instance.  the field in object can contain
more than one cache keys, while the cache key in the cache manager instacne
can contain only one.

now that i can cache object, i can't invalidate it automatically ( the cache
don't expire).

how do i expire the cached object automatically?

sorry for being a pain :)
if i understand it more, i'll try and write up a howto/note



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Is it possible to make a thumbnail from an added image..?

2001-01-24 Thread 3dfestival - WebMaster

Just a quick Idea:

Can somebody make a routine RESIZING an image...?

It would be great if someone could make something like that...

Just imagine it: You add an Image_with_thumb... Browse for the image, then
it adds your image to the site  AND it is being resized to, for instance,
16x16pixels, and you can use that thumb as an icon for the image...!
Wouldn't that be great...?

Sorry about this silly question... It will not  happen again (I hope)  = )

( = Stoons = )
 - Webmaster @ 3D festival (http://www.3dfestival.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] Add this to Wish list

2001-01-24 Thread Jerome Alet

Hi,

Maybe I've not seen the easy way to do it, if so tell me I'm stupid, but
one thing would be very nice in the future version of Zope: 

A way to download Python Script's sources

Now I cut and paste but it's horrible.

Please could you include a button "Download Source" to the Python Script
edition form ?

Thanks in advance.

Jerome Alet - [EMAIL PROTECTED] - http://cortex.unice.fr/~jerome
Fac de Medecine de Nicehttp://wwwmed.unice.fr 
Tel: (+33) 4 93 37 76 30 Fax: (+33) 4 93 53 15 15
28 Avenue de Valombrose - 06107 NICE Cedex 2 - FRANCE


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

2001-01-24 Thread Shane Hathaway

"Bak @ kedai" wrote:
 sorry.  my mistake.  i think more info on how/what should/can be a cache key
 is good.   currently, there's two cache key  fields, one in the object
 itself, one in the cache manager instance.  the field in object can contain
 more than one cache keys, while the cache key in the cache manager instacne
 can contain only one.

Are you saying that entering multiple REQUEST variables doesn't work? 
Are you putting the variables on separate lines?

 now that i can cache object, i can't invalidate it automatically ( the cache
 don't expire).

 how do i expire the cached object automatically?

Every time you change the object or push the "invalidate" button, it
should expire.  Are you having success with that?

 sorry for being a pain :)
 if i understand it more, i'll try and write up a howto/note

Actually, we've been begging for user input. :-)  I'd like to help you.

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] Dowloading images from another site with external method?

2001-01-24 Thread Etienne Labuschagne

Hi all

I have an external Python method in Zope that accesses a map server through
an ActiveX connector.  This map server creates a map and gives me the URL
where I can download the map eg.
"http:\\www.mysite.com\images:8081\img1234545.png"

I want to download this image with the method, put it in a folder on my Zope
server's disk, do some image processing with PIL and then upload it into my
Zope site.

My problem is that I don't know how to download the image from the URL
above!  I can have zope display it from that address, but that won't work as
the map server eventually deletes the rendered maps (also I want to edit it
first) I cannot use ftplib as the map server does not handle ftp requests,
only http.  I don't know how to use the httplib (or whatever) to download
that image to my disk.

Any help?  

Thanks
Etienne

Tel: (012) 348 4586
Cel: 082 442 8981
Fax: (012) 361 8355


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




RE: [Zope] Zope is not getting MySQL SELECT results ...

2001-01-24 Thread Tom Jenkins

Hello Gerald,

 
 Hi all.
 
[snip]
 but it does not seem to be able return any data through a 
 SELECT query. 
 This does not work in the "test" table nor in a SQL method. 
 Using a query, 
 such as "select * from test", it always replies with:
 
 
 There was no data matching this My Query query.
 
 SQL used:
 select * from test
 
 

This may seem like a silly response, but have you tried the same select
statement from outside zope - say from the mysql client?  perhaps your
select statement is truly returning an empty set.  We use zope with
PostgreSQL and MySQL (and have been for a few years) and haven't had any
problems.


Tom Jenkins   |xmlIts
devIS - Development InfoStructure |all you
703.525.6485   [EMAIL PROTECTED] |need it
http://www.devis.com  |to be/xml

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Is it possible to make a thumbnail from an added image..?

2001-01-24 Thread dale . w . lance

You could try:
http://www.zope.org/Members/haqa/archive/ZPhotoAlbum

http://www.zope.org/Members/Drew/Photo

These seem to do something similar to what you are asking.
If not well, dtml-var typical_open_source_quote.

Dale

-Original Message-
From: thomas [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 24, 2001 4:28 AM
To: zope
Cc: thomas
Subject: [Zope] Is it possible to make a thumbnail from an added
image..?


Just a quick Idea:

Can somebody make a routine RESIZING an image...?

It would be great if someone could make something like that...

Just imagine it: You add an Image_with_thumb... Browse for the image, 
then
it adds your image to the site  AND it is being resized to, for 
instance,
16x16pixels, and you can use that thumb as an icon for the image...!
Wouldn't that be great...?

Sorry about this silly question... It will not  happen again (I hope)  
= )

( = Stoons = )
 - Webmaster @ 3D festival (http://www.3dfestival.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] Some help required but no sarcastic comments this time please

2001-01-24 Thread Jeff Peterson


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of alankirk
Sent: Tuesday, January 23, 2001 5:18 PM
To: [EMAIL PROTECTED]
Subject: [Zope] Some help required but no sarcastic comments this time
please


I am using Zope 2.2.2 on windows(this time i'd appreciate no sarcastic
comments this time)

I just installed MySQL 3.23.32 on Win 2000 Pro with Zope 2.3b2 by following
this HowTo:

http://www.zope.org/Members/philh/mysql

I had to edit the DA.py file at zope dir\lib\python\Products\ZMySQLDA and
change the path to the connectionAdd.dtml from
'Shared/DC/ZRDB/connectionAdd' to 'Shared/DC/ZRDB/dtml/connectionAdd'. I
then started ZOPE, created the DB from the MySQL admin interface, created a
connection object, connected, created a table and did some minor testing.
All seems to work fine currently.

So, from what I can tell, aside from the minor change noted above (which
without actually looking, I assume is a change from 2.2.x to 2.3) everything
worked fine for me, I hope that this will help or at least give you some
hope.

__
Jeffrey D. Peterson
Webmaster/Web  Web Applications Developer
Range TV Cable  Broadband
1813 E. 3rd Ave.  Hibbing, MN 55746
[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] Add this to Wish list

2001-01-24 Thread Oleg Broytmann

On Wed, 24 Jan 2001, Jerome Alet wrote:
 A way to download Python Script's sources
 Now I cut and paste but it's horrible.

 Please could you include a button "Download Source" to the Python Script
 edition form ?

   Sometimes through-the-web editing stands on the way? :)

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] SQLSession not working

2001-01-24 Thread Paul Zwarts

Hi all,

I have a unix machine with PGSQL and Zope 2.2.1? and my app uses SQL
session brilliantly. But I've created another test machine with Zope
2.2.5, Win2kPro and MySQL 3.3.23 (i think)... and SQL Session no longer
works properly.

Every time I call a page, a different Session is used and Im not
maintaining any kind of session context... which basically destroys my
whole navigation system... Beyond that, I can put stuff into MySQL using
Zope, but nothing comes out... not even a simple SELECT * from TABLE
does nothing...

Can anyone make suggestions? Im using the ZMySQLDA product... 0.1.2

Cheers,
Paz


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

2001-01-24 Thread Chris Withers

Jerome Alet wrote:
 
 Hi,
 
 Maybe I've not seen the easy way to do it, if so tell me I'm stupid, but
 one thing would be very nice in the future version of Zope:
 
 A way to download Python Script's sources
 
 Now I cut and paste but it's horrible.

Can't you use FTP to edit them?

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] Dowloading images from another site with external method?

2001-01-24 Thread Oleg Broytmann

On Wed, 24 Jan 2001, Etienne  Labuschagne wrote:
 "http:\\www.mysite.com\images:8081\img1234545.png"

   Incorrect slashes in the URL. It seems M$ is destroying people's brains :(
   Use right slashes ///

 My problem is that I don't know how to download the image from the URL

   Use urllib.urlretrieve. Or use external program that can download files
from URL. lynx, e.g. (I think, there is lynx for Win; certainly, there are
other tools.)

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] PythonScripts editable through FTP?

2001-01-24 Thread Jerome Alet

On Wed, 24 Jan 2001, Chris Withers wrote:

 Jerome Alet wrote:
  
  Maybe I've not seen the easy way to do it, if so tell me I'm stupid, but
  one thing would be very nice in the future version of Zope:
  
  A way to download Python Script's sources
  
  Now I cut and paste but it's horrible.
 
 Can't you use FTP to edit them?

I sincerely don't know because I've disabled FTP here.

I've faced the problem because I wanted to print a Python Script but
Netscape 4.76 (under Linux) hasn't printed the frame correctly.

bye,

Jerome Alet


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




Re: [Zope] PythonScripts editable through FTP?

2001-01-24 Thread Jerome Alet

On Wed, 24 Jan 2001, Chris Withers wrote:

 Jerome Alet wrote:
 
  I sincerely don't know because I've disabled FTP here.
 
 How come?
 
 What about WebDAV?

don't use it either.

I want to use my own text editor (JERED), not because it's the best to
develop (far from that in fact) but because it works exactly like I want
it to work (which is normal since I've written it). Unfortunately it
doesn't handle WebDAV or any other Internet protocol... 

Anyway, thanks for all.

Jerome Alet


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




RE: [Zope] VirtualHostMonster, PATH_INFO and absolute_url

2001-01-24 Thread Ron Bickers


 2. In this setup, if I got it right, absolute_url() for /MySite/spam
 should return http://10.0.1.21/spam. But it returns
 http://10.0.1.21/MySite/spam. Something's broken?

I have this same problem.  If the documentation in the VHM is correct, it's
a bug.  I found that adding a VHM to the /MySite folder (in addition to the
root) "fixes" absolute_url().  I'm using FastCGI, but I imagine it'll work
the same with ProxyPass.  Perhaps I should take the time to report it in the
Collector...unless you get to it first.

___

Ron Bickers
Logic Etc, Inc.
[EMAIL PROTECTED]


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




Re: [Zope] Is it possible to make a thumbnail from an added image..?

2001-01-24 Thread Michael Bernstein

3dfestival - WebMaster wrote:
 
 Just a quick Idea:
 
 Can somebody make a routine RESIZING an image...?
 
 It would be great if someone could make something like that...
 
 Just imagine it: You add an Image_with_thumb... Browse for the image, then
 it adds your image to the site  AND it is being resized to, for instance,
 16x16pixels, and you can use that thumb as an icon for the image...!
 Wouldn't that be great...?

Check out the Photo Product:
http://www.zope.org/Members/Drew/Photo

HTH,

Michael Bernstein.

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

2001-01-24 Thread Andy Dawkins

Chris

Yes you can use FTP to edit them.
(Tested with HomeSite)

Its kinda neat. The output looks like:
## Python Script "scripty1"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=
##title=
##
a = 1
a = a + 1
return a

*GRIN*
-Andy

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Chris
 Withers
 Sent: 24 January 2001 14:54
 To: Jerome Alet
 Cc: [EMAIL PROTECTED]
 Subject: Re: [Zope] PythonScripts editable through FTP?


 Jerome Alet wrote:
 
  Hi,
 
  Maybe I've not seen the easy way to do it, if so tell me I'm stupid, but
  one thing would be very nice in the future version of Zope:
 
  A way to download Python Script's sources
 
  Now I cut and paste but it's horrible.

 Can't you use FTP to edit them?

 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 )



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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: Some help required but no sarcastic comments this time please

2001-01-24 Thread Alan Capesius

I understand your comments about sarcasm, but realize that this community is riddled 
with Unix bigots and just ignore it. Just listen to those willing to help.

If you don't have to use MySQL, try either SQL Server or MS Access (small databases).
See my pages on Zope NT SQL at  http://techsite.tech-world.com/zopetips.htm for NT 
specific info.

I would also recommend NOT using Win9x for ANYTHING. I always use NT. 

Other than that, have you installed the Win32 python extensions? Not sure if these are 
required with mySQL as I haven't used it myself.

Alan



 [EMAIL PROTECTED] wrote:

  I am using Zope 2.2.2 on windows(this time i'd appreciate no sarcastic =
  comments this time)

 Feel free to interpret every comment you don't like as "sarcastic", but it
 will not save your business.

  to this address) and the response has been pretty poor, i've even tried
=
  to email people involved with the mysql database adaptors and got no =
  response.

 You use a commercial operating system: pay for a commercial support.

  It is really important that i get this problem sorted now if possible as
=
  my final year project for university depends on this 'bug' getting =
  fixed.

 If it is important, do not run it on MS-Windows. Otherwise, some people
may think
 you know nothing about software...


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

2001-01-24 Thread J M Cerqueira Esteves

Ol :)

On Tue, Jan 23, 2001 at 08:56:34PM +, Paula Mangas wrote:
 I'm a newbie and i would like to know how can i create a DTMLDocument from
 a Python method.

Here is a short example of document creation (with a few other tips), 
assuming it's in a Python method with parameters (self, REQUEST):

#~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ 

# ...

# The following refers to folder  "/farm", in a virtual host 
# supported by SiteRoot.
farm = REQUEST.PARENTS[-2].farm
# `farm' now refers to the folder object.
# And this is a subfolder, "/farm/the_ducks"
the_ducks = farm.the_ducks
# This just reads the id for a new document from a submitted form,
# using a default value if no `duck_id' was sent.
id = REQUEST.get ('duck_id', 'new_duck_in_town')

duck_notes = ...
some_title = ...
some_colour = ...

# This creates the document (under "/farm/the_ducks"), assuming you have 
# defined some string, `duck_notes', holding the initial content for it:
the_ducks.manage_addProduct['OFSP'].manage_addDTMLDocument (id, 
file = duck_notes)
# This changes the document's title (it already had an empty one by default).
the_ducks[id].manage_changeProperties ({'title': some_title})
# And this adds a property of type `string'.
the_ducks[id].manage_addProperty ('colour', some_colour, 'string')
#~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ 

Look for some API documentation in Zope's internal help and on the Web.
Browsing Zope sources may also be most helpful...

-- 
 jmce: +351 919838775 ~ http://artenumerica.com/ ~ http://artenumerica.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] : Postgre installation problem

2001-01-24 Thread jpenny

On Wed, Jan 24, 2001 at 08:36:00AM +0530, K H Subrahmanyan wrote:
 but where can I get Popy and how to install it.
 kindly give the links.
 thanks
 
PoPy is available from www.sourceforge.net/projects/popy
zpopyda is available from www.sourceforge.net/projects/zpopyda

installation of popy is in principle very easy and in practice a
bit tricky.  General instructions are: unpack it, run ./configure,
make, make install.

The make install is the tricky portion.  It needs to go into a 
directory where the python Zope is using can find it.  And that
varies depending on where you got your zope from and which distribution
you are using.

Also, make sure that postgres-dev is installed.  Some header files
are needed.

 
   -Original Message-
   From: Jerome Alet [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, January 23, 2001 6:22 PM
   To: K H Subrahmanyan
   Cc: [EMAIL PROTECTED]
   Subject: Re: [zope] : Postgre installation problem
   
   
   On Tue, 23 Jan 2001, K H Subrahmanyan wrote:
   
    I have installed postgre SQL in my linux server.
    I have installed ZpopyDA to my zope installation.
    
    but when  I run the server I get the following error.
    
    ZPoPyDA Import Traceback
    raise "The PoPy module is not installed"
    The PoPy module is not installed
   
   This is very clear.
   
   You don't have installed the PoPy module
   
   PoPy is needed by ZPoPyDA
   
   PoPy is the layer between PostgreSQL and ZPoPyDA:
   
   PostgreSQL -- PoPy -- ZPoPyDA -- Zope
   
   hoping this will help
   
   bye,
   Jerome Alet
   
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )
 

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Is it possible to make a thumbnail from an added image..?

2001-01-24 Thread Farrell, Troy

You could use the Python Imaging Library with some external methods:
http://www.pythonware.com/products/pil/index.htm

dtml-var typical_open_source_hint_hint_hint

Troy

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 24, 2001 8:19 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [Zope] Is it possible to make a thumbnail from an added
image..?


You could try:
http://www.zope.org/Members/haqa/archive/ZPhotoAlbum

http://www.zope.org/Members/Drew/Photo

These seem to do something similar to what you are asking.
If not well, dtml-var typical_open_source_quote.

Dale

-Original Message-
From: thomas [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 24, 2001 4:28 AM
To: zope
Cc: thomas
Subject: [Zope] Is it possible to make a thumbnail from an added
image..?


Just a quick Idea:

Can somebody make a routine RESIZING an image...?

It would be great if someone could make something like that...

Just imagine it: You add an Image_with_thumb... Browse for the image, 
then
it adds your image to the site  AND it is being resized to, for 
instance,
16x16pixels, and you can use that thumb as an icon for the image...!
Wouldn't that be great...?

Sorry about this silly question... It will not  happen again (I hope)  
= )

( = Stoons = )
 - Webmaster @ 3D festival (http://www.3dfestival.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] PythonScripts editable through FTP?

2001-01-24 Thread Oleg Broytmann

On Wed, 24 Jan 2001, Jerome Alet wrote:
 I want to use my own text editor (JERED), not because it's the best to
 develop (far from that in fact) but because it works exactly like I want
 it to work (which is normal since I've written it). Unfortunately it
 doesn't handle WebDAV or any other Internet protocol...

   Compile Python into it and go with ftplib!

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] PythonScripts editable through FTP?

2001-01-24 Thread Chris Withers

Jerome Alet wrote:
 
 I want to use my own text editor (JERED), not because it's the best to
 develop (far from that in fact) but because it works exactly like I want
 it to work (which is normal since I've written it). Unfortunately it
 doesn't handle WebDAV or any other Internet protocol...

What OS?

You can setup Windows to 'mount' WebDAV sites as thinks that behave like normal
Windoze drives.

That should work fine with your editor :-)

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] PythonScripts editable through FTP?

2001-01-24 Thread Chris Withers

Andy Dawkins wrote:
 
 Its kinda neat. The output looks like:
snip

Oh yeah, IIRC, the bind parameters will get updated if you change the comments
and then FTP the file back, which rocks :-)
Thanks to Evan...

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] Re: Some help required but no sarcastic comments this time please

2001-01-24 Thread Toby Dickenson

On Wed, 24 Jan 2001 09:33:16 -0600, "Alan Capesius"
[EMAIL PROTECTED] wrote:

I would also recommend NOT using Win9x for ANYTHING. I always use NT. 

There are those of us who use Zope in desktop applications too (yes
really), where Win9x is not an unreasonable choice.


Toby Dickenson
[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] DCOracle with Python 2.0?

2001-01-24 Thread Michelle Walden

I'm having zero success getting DCOracle to build with any version of Python
using the included Makefile.pre.in files.  Anyone with a working DCOracle
install on RedHat 6.1 who might be willing to offer suggestions or donate
binaries will receive many thanks from my programmer.

Thanks in advance!

+
Michelle Walden
UNIX Systems Administrator
Informations Systems Laboratory
Applied Research Labs
University of Texas
1 Burnet Road
F0253
Austin, TX 78758
512.835.3158
[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] Style guide?

2001-01-24 Thread J B Bell

Having read the Python style guide (and having found it, if a bit confusing,
at least not intolerably strict), I am now curious about what style people
like to use in Zope.  Are folders classes, or objects?  In the examples in
the Book, most of the folders are done in StudlyCaps, while the documents
and methods are in mixedCase.  Although, of course, index_html is under-
score_separated.  Aigh!  Is there any consistent guide to this?  I generally
prefer good old underscores, having come from a Perl background.  Looking
on the web gives me the ZDP's style guide for their documentation, but not
for Zope itself.

Any guidance would be much appreciated.  I hope I have not revived an old
holy war.

--JB

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

2001-01-24 Thread Evan Simpson

From: Itai Tavor [EMAIL PROTECTED]
 1. When accessing http://10.0.1.21/spam PATH_INFO is
 /VirtualHostBase/http/10.0.1.21:80/MySite/VirtualHostRoot/spam, which
 breaks any method that uses PATH_INFO (For example, the login form of
 LoginManager). Can this be fixed somehow?

The Zope virtual hosting machinery doesn't adjust CGI variable.
Applications should use URL0 or URLPATH0 instead of PATH_INFO.

 2. In this setup, if I got it right, absolute_url() for /MySite/spam
 should return http://10.0.1.21/spam. But it returns
 http://10.0.1.21/MySite/spam. Something's broken?

Yep, VirtualHostMonster has a bug, now fixed in CVS.  Thanks!

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] Add this to Wish list

2001-01-24 Thread Evan Simpson

From: Jerome Alet [EMAIL PROTECTED]
 Please could you include a button "Download Source" to the Python Script
 edition form ?

Already done; There's a link in the paragraph below the text area, and above
the upload form (in CVS).

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] Zope Games

2001-01-24 Thread Gerald Gutierrez


Does anyone know about any web games written in Zope, something akin to 
Blacknova.net, which is written in PHP ? The source is at 
http://sourceforge.net/projects/blacknova/.




___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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: Some help required but no sarcastic comments this time pleasee

2001-01-24 Thread Capesius, Alan

I understand people do use Win9x, but I would always recommend NT 4
workstation over 9x unless there is an overpowering need for USB. 

I don't use USB myself and have been using NT exclusively on the desktop
since 94. When properly configured it is much more stable. Nowadays, NT5
(oops 2000) is a better choice for USB support and about as stable as 9x.

But, that aside, I'm interested in your desktop uses for Zope. What sort of
apps?

 From: Toby Dickenson [EMAIL PROTECTED]
 There are those of us who use Zope in desktop applications too (yes
 really), where Win9x is not an unreasonable choice.
 Toby Dickenson





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




Re: [Zope] Zope Games

2001-01-24 Thread Erik Enge

[Gerald Gutierrez]

| Does anyone know about any web games written in Zope, something akin
| to Blacknova.net, which is written in PHP ? The source is at
| http://sourceforge.net/projects/blacknova/.

I don't.  But I might be able to hook someone up with some financial
funding to do so.  I recall having a contact which wanted to do
web-based games, large scale.  

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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: Some help required but no sarcastic comments this time pleas ee

2001-01-24 Thread Michelle Walden

You could now recommend W2k as a much more stable *than either 95 or NT4*
alternative that does USB support out of the box.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Capesius, Alan
Sent: Wednesday, January 24, 2001 12:39 PM
To: [EMAIL PROTECTED]
Subject: [Zope] Re: Some help required but no sarcastic comments this
time pleas ee


I understand people do use Win9x, but I would always recommend NT 4
workstation over 9x unless there is an overpowering need for USB.

I don't use USB myself and have been using NT exclusively on the desktop
since 94. When properly configured it is much more stable. Nowadays, NT5
(oops 2000) is a better choice for USB support and about as stable as 9x.

But, that aside, I'm interested in your desktop uses for Zope. What sort of
apps?

 From: Toby Dickenson [EMAIL PROTECTED]
 There are those of us who use Zope in desktop applications too (yes
 really), where Win9x is not an unreasonable choice.
 Toby Dickenson





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



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




RE: [Zope] Zope is not getting MySQL SELECT results ...

2001-01-24 Thread Dave Woolston

Hello Gerald,


Hello Gerald,


 Hi all.

I have set up, in a clean Zope installation, a MySQL database adapter. My
connection string is "test test test", indicating a user test with
password
test connection to the test database.

The adapter indicates that it can connect to the database, and I can send
queries to the database. CREATE TABLE, INSERT, UPDATE, and other queries
work just fine through the "test" tab of the adapter management interface,
but it does not seem to be able return any data through a SELECT query.
This does not work in the "test" table nor in a SQL method. Using a query,
such as "select * from test", it always replies with:


There was no data matching this My Query query.

SQL used:
select * from test




This may seem like a silly response, but have you tried the same select
statement from outside zope - say from the mysql client?  perhaps your
select statement is truly returning an empty set.  We use zope with
PostgreSQL and MySQL (and have been for a few years) and haven't had any
problems.


This is some good advice - Also, just based on your example - you could
be connected to your database (test) correctly, but you need to have a table
called test for the query to work - you didn't really state if you had a
table
called test.

Below - I have a database called test that I can connect to - but no tables
called test:

mysql show tables;
++
| Tables_in_test |
++
| bigstuff   |
| groups |
| shop   |
| t_chunks   |
| t_largeobj |
| user_group_map |
| users  |
++
7 rows in set (0.00 sec)

mysql select * from test;
ERROR 1146: Table 'test.test' doesn't exist

As you can see - you would get the result you described if you did
not have a table defined.

HTH
=
Dave Woolston   [EMAIL PROTECTED]
Digital Creations  www.digicool.com
(716) 262-4715


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Calling a DTML Document using a string

2001-01-24 Thread Anderson Ami

How can I do a dtml document call using the call dtml tag ?
e.g.

- I have 3 DTML documents ( bot1, bot2 and bot3)
- I have in my request a int variable called varX
- I would like do it, but this one doesn't work :
...  
dtml-var expr="bot + varX"
...

Thanks a lot
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] download file from LocalFS

2001-01-24 Thread Jonothan Farr

 When mylfs references a directory meta_type is 'Local Directory'
 but if mylfs references a file meta_type is 'File'.

 How can I let the user download the file?

I tried it like this:

dtml-call "RESPONSE.setHeader('content-type',mylfs.content_type)"
dtml-var mylfs

It mostly worked, except that my html documents were getting html-quoted. If you
can solve that I think you're home free.

--jfarr



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




RE: [Zope] Zope is not getting MySQL SELECT results ...

2001-01-24 Thread Gerald Gutierrez



 This may seem like a silly response, but have you tried the same select
 statement from outside zope - say from the mysql client?  perhaps your
 select statement is truly returning an empty set.  We use zope with
 PostgreSQL and MySQL (and have been for a few years) and haven't had any
 problems.
 

This is some good advice - Also, just based on your example - you could
be connected to your database (test) correctly, but you need to have a table
called test for the query to work - you didn't really state if you had a
table
called test.

Hi Dave.

Yes it is. In my original message I had indicated that I tried executing my 
queries in the mysql client, as well as through the API of MySQL-python; 
both worked just fine.

As it turns out, I had downloaded an "old" copy of ZMySQLDA. There are a 
number of pages that each imply that they link the latest version of this 
product. The link from www.zope.org itself 
(http://www.zope.org/Products/external_access) has two entries for this 
product! I downloaded 1.2.0, but apparently 2.0.1 is available, which works 
with Zope 2.3.0.

Paul Johnson was the kind soul who provided me with the link to the 
"correct" version of ZMySQLDA (http://www.zope.org/Members/adustman/ZMySQLDA).


Gerald.



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Calling a DTML Document using a string

2001-01-24 Thread ender

On Wednesday 24 January 2001 12:00, Anderson Ami wrote:
 How can I do a dtml document call using the call dtml tag ?
 e.g.

 - I have 3 DTML documents ( bot1, bot2 and bot3)
 - I have in my request a int variable called varX
 - I would like do it, but this one doesn't work :
 ...
 dtml-var expr="bot + varX"
 ...

this might work

dtml-var "_['bot'+_.str(varX)]"

cheers

kapil

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




Re: [Zope] Calling a DTML Document using a string

2001-01-24 Thread Jonothan Farr

- Original Message -
From: "Anderson Ami" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 24, 2001 12:00 PM
Subject: [Zope] Calling a DTML Document using a string


 How can I do a dtml document call using the call dtml tag ?
 e.g.

 - I have 3 DTML documents ( bot1, bot2 and bot3)
 - I have in my request a int variable called varX
 - I would like do it, but this one doesn't work :
 ...
 dtml-var expr="bot + varX"

I think this will work.

dtml-let doc=bot
dtml-var "doc + _.str(varX)"
/dtml-let

The dtml-let call seems to render the 'bot' document. (I'm not very experienced
with the dtml-let tag.) You need to convert varX to a string so you can
concatenate the two strings together.

Give that a try!

--jfarr


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




RE: [Zope] Re: Some help required but no sarcastic comments this time pleas ee

2001-01-24 Thread Capesius, Alan

To clarify, W2k is probably pretty reliable now for the desktop, but the
servers have a way to go. In addition to reliability issues, the resources
required to do the same functions on the 2000 products (w2k, office 2K,
access 2K) are much higher than the 97 and 4.0 versions.

MS can't even keep their own sites going:
http://www.zdnet.com/zdnn/stories/news/0,4586,2677896,00.html?chkpt=zdhpnews
01

Now I don't bash MS for a living, just as a hobby.  They've been sliding
steadily downhill since the 4.0 release. I provide computer services on MS
and Novell networks for a living. I would not consider putting W2K servers
into production until they are stabilized and still would not do so unless
my client are planning a hardware upgrade as part of the process. We've seen
too many black screens of death with W2K servers. The clients do appear more
stable, but why sacrifice performance in a business environment when you
gain nothing?

I've used 4.0 without a crash for years. Why switch? It's faster and does
everything I need.

It will be interesting to see the Unix command-line loving community's
reaction when MS releases their text mode server product. This will
certainly interest the mouse-phobic.

If I want USB for multimedia solutions, I'll probably do it under BeOS. Then
again, I'll probably use firewire. (which should've been in windows instead
of USB from the start.

Alan


-Original Message-
From: Michelle Walden [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 24, 2001 1:10 PM 
To: Capesius, Alan; zope
Subject: RE: [Zope] Re: Some help required but no sarcastic comments
this time pleas ee


You could now recommend W2k as a much more stable *than 
either 95 or NT4*
alternative that does USB support out of the box.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Capesius, Alan
Sent: Wednesday, January 24, 2001 12:39 PM
To: [EMAIL PROTECTED]
Subject: [Zope] Re: Some help required but no sarcastic comments this
time pleas ee


I understand people do use Win9x, but I would always recommend NT 4
workstation over 9x unless there is an overpowering need for USB.

I don't use USB myself and have been using NT exclusively on 
the desktop
since 94. When properly configured it is much more stable. 
Nowadays, NT5
(oops 2000) is a better choice for USB support and about as 
stable as 9x.

But, that aside, I'm interested in your desktop uses for 
Zope. What sort of
apps?

 From: Toby Dickenson [EMAIL PROTECTED]
 There are those of us who use Zope in desktop 
applications too (yes
 really), where Win9x is not an unreasonable choice.
 Toby Dickenson





___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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: Some help required but no sarcastic comments this time pleas ee

2001-01-24 Thread Gerald Gutierrez



It will be interesting to see the Unix command-line loving community's
reaction when MS releases their text mode server product. This will
certainly interest the mouse-phobic.

What product is this?


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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: Some help required but no sarcastic comments this time pleas ee

2001-01-24 Thread Capesius, Alan

Supposed to be in NT7 (after whistler)
It will be a headless version.

-Original Message-
From: Gerald Gutierrez [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 24, 2001 3:16 PM 
To: Capesius, Alan; [EMAIL PROTECTED]
Subject: RE: [Zope] Re: Some help required but no sarcastic comments
this time pleas ee




It will be interesting to see the Unix command-line loving 
community's
reaction when MS releases their text mode server product. This will
certainly interest the mouse-phobic.

What product is this?


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Calling a DTML Document using a string

2001-01-24 Thread Dieter Maurer

Anderson Ami writes:
  How can I do a dtml document call using the call dtml tag ?
  e.g.
  
  - I have 3 DTML documents ( bot1, bot2 and bot3)
  - I have in my request a int variable called varX
  - I would like do it, but this one doesn't work :
    
  dtml-var expr="bot + varX"
  
This is an FAQ: computed variable access:

 dtml-var expr="_['bot%d' % varX]"


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] Q's about Zope security model tweaking

2001-01-24 Thread J B Bell

I'd like to make a 'fallback' authorization scheme for Zope.  That is:

If user does not exist in usual UserFolder, then
authenticate against custom module (NIS, in this case)
and give them Anonymous privileges.

I want to do authentication for a whole subset of the site (indeed, its
entire public face really), but don't want a huge userfolder build from NIS.
nisUserFolder doesn't seem like the right solution since I only want to use
nis if they don't auth in the customary fashion.

Can anyone give me some general pointers on this admittedly broad topic?

--JB

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Access Problem - external method and aquisition

2001-01-24 Thread Bill Welch

Some time ago, I set up a site with SiteAccess and ZClient to pass through
a request to legacy php a la Mamey's 'Serving PHP/Perl from Zope'.  Works
great, lasts a long time.

I recently added Membership and restricted access to the folder. The
AccessRule works and publishing of index_html starts, as before. Upon
attempting to execute the external method that contains the ZClient,
however, I get a basic auth window. The problem seems to be that
aq_inContextOf returns 0 for the external method when it's called from
Products/LoginManager/LoginManger.py:84, thereby causing allowed to return
0, and raising the unauth exception at
AccessControl/ZopeSecurityPolicy.py:183. Works fine for DTML methods
called within index_html. Any ideas?

Zope 2.2, linux, PTK 0.9, Membership 0.7.8

Bill.



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




[Zope] ZODB and Reportlab

2001-01-24 Thread Jorge Magalhaes

Hi:

I need to report my all "CDClass" in one pdf document. For do that i want to use the 
reportlab libs, but i don't know how i can access to my all "CDClass" with a External 
Method. I have a solution but i think that isn't the best: list all "CDCLass" with a 
DTMLmethod and pass that list to the my ExternalMethod. My question is: what is the 
best way for doing that task? 

Thanks Very Much in advance

Have a nice day.

JoRgE


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

2001-01-24 Thread Bak @ kedai


-Original Message-
From: Shane Hathaway [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Wednesday, January 24, 2001 10:20 PM
Subject: Re: [Zope] Cache manager in zope 2.3.0b1


Are you saying that entering multiple REQUEST variables doesn't work?
Are you putting the variables on separate lines?

i can have  multiple REQUEST filled in the object cache option, but not in
the cache manager instance.  this was on 2.3.0b1.  haven't yet it with the
latest beta.  if i have multiple REQUEST on separate lines, and save it,
it'll be saved on one line (this is the cache manager instance).

Every time you change the object or push the "invalidate" button, it
should expire.  Are you having success with that?

invalidating manually works.  but what can i do to expire a cached object?
for instance, i now have a DTML Method A that is made of DTML Method B and
C.  i cached DTML Method A.  somehpw, Method B changes, but DTML Method A
still shows the cached object.  by haveing it expire automatically, say
every 3600 sec, or any configurable time limit, i'll be assured that DTML
Method A will change, at least after the time limit set.

also, if i have a situation as above, which is more preffered?  caching
object A or objects that make up A?

Actually, we've been begging for user input. :-)  I'd like to help you.

i'll give b3 a try when i start work.
thanks
Shane

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



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




[Zope] ANNOUNCE: Zope 2.3.0 beta 3 released

2001-01-24 Thread Brian Lloyd

Hi all,

  Zope 2.3.0 beta 3 is now available. You can download it 
  from Zope.org:

  http://www.zope.org/Products/Zope/2.3.0b3/

  This beta contains fixes for various issues reported to 
  date in the beta cycle, and some older Collector bugs. 
  Barring any major unforseen problems, this will be the 
  last 2.3 beta release.

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

- http://www.zope.org/Products/Zope/2.3.0b3/CHANGES.txt

- http://www.zope.org/Products/Zope/2.3.0b3/HISTORY.txt




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




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




[Zope] Re: [Zope-dev] ANNOUNCE: Zope 2.3.0 beta 3 released - Plea for bug #1884

2001-01-24 Thread John D. Heintz

Zope-maintainers,

Please evaluate the patch in bug #1884.  There is an ExtensionClass.c
bug in CMethod_call that prevents calling unbound super-class methods
when the __call_method__ hook exists.

http://classic.zope.org:8080/Collector/1884/view

thanks,
John


Brian Lloyd wrote:

  Hi all,
 
  Zope 2.3.0 beta 3 is now available. You can download it
  from Zope.org:
 
  http://www.zope.org/Products/Zope/2.3.0b3/
 
  This beta contains fixes for various issues reported to
  date in the beta cycle, and some older Collector bugs.
  Barring any major unforseen problems, this will be the
  last 2.3 beta release.
 
  For more information on what is new in this release, see the
  CHANGES.txt and HISTORY.txt files for the release:
 
  - http://www.zope.org/Products/Zope/2.3.0b3/CHANGES.txt
 
  - http://www.zope.org/Products/Zope/2.3.0b3/HISTORY.txt
 
 
 
 
  Brian Lloyd[EMAIL PROTECTED]
  Software Engineer  540.371.6909
  Digital Creations  http://www.digicool.com
 
 
 
 
  ___
  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 )



-- 
. . . . . . . . . . . . . . . . . . . . . . . .

John D. Heintz | Senior Engineer

1016 La Posada Dr. | Suite 240 | Austin TX 78752
T 512.633.1198 | [EMAIL PROTECTED]

w w w . d a t a c h a n n e l . c o 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] Re: Some help required but no sarcastic comments this time pleas ee

2001-01-24 Thread corey

And upon Wednesday of January 24, the illustrious Capesius, Alan spake thusly...
 What product is this?
 
 Supposed to be in NT7 (after whistler)
 It will be a headless version.
 


  Hmm... the term "vapor" comes immediately to mind.


  I'll believe it when I see it.

  Then I'll laugh when I see it crash.


Beers,

Corey


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Calling a DTML Document using a string

2001-01-24 Thread Jonothan Farr

Boy did I ever misunderstand the question. Dang. Sorry! Nevermind me!
--jfarr


- Original Message - 
From: "Dieter Maurer" [EMAIL PROTECTED]
To: "Anderson Ami" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, January 24, 2001 1:50 PM
Subject: Re: [Zope] Calling a DTML Document using a string


 Anderson Ami writes:
   How can I do a dtml document call using the call dtml tag ?
   e.g.
   
   - I have 3 DTML documents ( bot1, bot2 and bot3)
   - I have in my request a int variable called varX
   - I would like do it, but this one doesn't work :
     
   dtml-var expr="bot + varX"
   
 This is an FAQ: computed variable access:
 
  dtml-var expr="_['bot%d' % varX]"
 
 
 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 maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Did I miss some major change in Z SQL Methods ?

2001-01-24 Thread Curtis Maloney


Green things,

I have a few methods poking about that just don't seem to make sense

A Z SQL Method ( Returner.sql.getDetails ) which simply contains:

SELECT * FROM Returner WHERE ReturnerID=dtml-sqlvar User type="int"

Which returns everything as expected.  The I have a Python Method which 
refers to it, simply wrapping it up, and taking the first (of what should be 
only one anyway) element.  It contains the following:
( Returner.getDetails(self, User) )

return self.sql.getDetails(User=User)[0]

Now.. for some reason, the following throws complaints about not being able 
to find ANY of the fields in the row:

dtml-with "Returner.getDetails(Returner, User=12)"
  dtml-var fieldName
/dtml-with

Now, previously I've accessed my ZSQL Methods directly from DTML, but this 
time I was trying to abstract slightly, for various reasons...  But this 
bizarre behaviour has begun.  Can anyone explain what I'm missing?

Zope 2.2.5
ZMySQLDA 1.2.0
PythonMethods 0.1.7
Linux (RH 6.1 +)

Have a better one,
Curtis Maloney

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




Re: [Zope] VirtualHostMonster, PATH_INFO and absolute_url

2001-01-24 Thread Itai Tavor

Evan Simpson wrote:

From: Itai Tavor [EMAIL PROTECTED]
  1. When accessing http://10.0.1.21/spam PATH_INFO is
  /VirtualHostBase/http/10.0.1.21:80/MySite/VirtualHostRoot/spam, which
  breaks any method that uses PATH_INFO (For example, the login form of
  LoginManager). Can this be fixed somehow?

The Zope virtual hosting machinery doesn't adjust CGI variable.
Applications should use URL0 or URLPATH0 instead of PATH_INFO.

I was thinking more along a fix at the Apache level... but it's not 
really very important, it was easy to hack PATH_INFO out of 
LoginManager and I've been planning to take it out of my own 
application anyway.


   2. In this setup, if I got it right, absolute_url() for /MySite/spam
  should return http://10.0.1.21/spam. But it returns
  http://10.0.1.21/MySite/spam. Something's broken?

Yep, VirtualHostMonster has a bug, now fixed in CVS.  Thanks!

Great, thanks for the fix. It's fine in Zope 2.3b3.
-- 
--
Itai Tavor  -- "Je sautille, donc je suis."--
[EMAIL PROTECTED]--   - Kermit the Frog --
-- 'Supposing a tree fell down, Pooh, when we were underneath it?' --
-- 'Supposing it didn't,' said Pooh after careful thought. --


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

2001-01-24 Thread LARRY CHUON

When I click on "Check Out", I receive the following error message.  Can someone shed 
some lights please?

 
  Zope Error

  Zope has encountered an error while publishing this resource. 

  KeyError

  Sorry, a Zope error occurred.

  Traceback (innermost last):
File /usr/local/Zope-2.2.4-linux2-x86/lib/python/ZPublisher/Publish.py, line 222, 
in publish_module
File /usr/local/Zope-2.2.4-linux2-x86/lib/python/ZPublisher/Publish.py, line 187, 
in publish
File /usr/local/Zope-2.2.4-linux2-x86/lib/python/Zope/__init__.py, line 221, in 
zpublisher_exception_hook
  (Object: CatalogAware)
File /usr/local/Zope-2.2.4-linux2-x86/lib/python/ZPublisher/Publish.py, line 171, 
in publish
File /usr/local/Zope-2.2.4-linux2-x86/lib/python/ZPublisher/mapply.py, line 160, 
in mapply
  (Object: checkOut)
File /usr/local/Zope-2.2.4-linux2-x86/lib/python/ZPublisher/Publish.py, line 112, 
in call_object
  (Object: checkOut)
File /usr/local/Zope-2.2.4-linux2-x86/Products/Etailer/Cart.py, line 35, in 
checkOut
  (Object: Traversable)
File /usr/local/Zope-2.2.4-linux2-x86/lib/python/ZPublisher/HTTPRequest.py, line 
810, in __getitem__
  KeyError: cart_items




  Troubleshooting Suggestions

  The URL may be incorrect. 
  The parameters passed to this resource may be incorrect. 
  A resource that this resource relies on may be encountering an error. 

  For more detailed information about the error, please refer to the HTML source for 
this page. 

  If the error persists please contact the site maintainer. Thank you for your 
patience. 




___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Aethera server and functionalities + ZOPE

2001-01-24 Thread Nicolas Pettiaux

Dear Mr Shawn,

THank you for your recent mail.

As I said i a recent message, in order to move my institution towards 
open-source products and related services, I need the appropriate tools and 
services.

For me, the KDE applications, aethera and kivio, you are developping, are 
such tools we ( = the community + I) have long expected. 

I need a groupware solution (that can use our LDAP directory) closely
linked to shared calendars, shared folders, connection to PIM (IPAQ and
Palm V), email lists ...

As the ICT manager, I have a rather strong influence on where we will spend 
our money and how ( for me, this is rather buying services we can rely on 
than products that are closed and that will soon appear not open enough, and 
too limitative)

We are decided to use more and more ZOPE as a backend and server. have you 
considered using ZOPE as the server , for example for the shared calendars, 
for aethera ? How coul I help you considering ZOPE for such a use : this 
would be really convenient for us as it would mean we could integrate aethera 
and the  web based calendar+groupware+workflow we are considering.

I suppose such requirements are similar to the ones many companies and 
institutions like mine have. Maybe, all these institutions could team up and 
support you along these lines.

For me a VERY important point you satisfy, and for which once again I want to 
thank you, is that the application be free software.

Some more questions: 

1/ which standards are you following for example for the calendaing features 
or the taks and appointment requests ? 
2/ will the application be compatible with Evolution ?

3/ You say 
  Python will be woven into all of our applications as a scripting
  component.  It isn't there yet, but it will be. 

For kivio and aethera, what are your plans (release dates ) ?

4/ How can I help you get further ? 

- Try and collect money, 
- find people/teams/developpers especially KDE who could help you and your 
company - or shoudl I say kompany at developping or selling local support ? 

I am better at that - convincing people and finding money - than at writing 
applications so I'll stick to what I am best of.

Best regards,

Nicolas Pettiaux

-- 
Nicolas Pettiaux
Avenue du Prou 29
B-1000 Brussels

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Did I miss some major change in Z SQL Methods ?

2001-01-24 Thread Evan Simpson

From: "Curtis Maloney" [EMAIL PROTECTED]
 A Z SQL Method ( Returner.sql.getDetails )
[snip]
 dtml-with "Returner.getDetails(Returner, User=12)"
   dtml-var fieldName
 /dtml-with

You want either:

dtml-in "Returner.getDetails(Returner, User=12)"
  dtml-var fieldName
/dtml-in

...or...


dtml-with "Returner.getDetails(Returner, User=12)[0]"
  dtml-var fieldName
/dtml-with

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] Re: Aethera server and functionalities + ZOPE

2001-01-24 Thread Shawn Gordon

Hi Nicolas,

Here is my quick response on the items I can answer directly:

At 09:44 PM 1/24/2001, Nicolas Pettiaux wrote:
Dear Mr Shawn,

THank you for your recent mail.

As I said i a recent message, in order to move my institution towards
open-source products and related services, I need the appropriate tools and
services.

For me, the KDE applications, aethera and kivio, you are developping, are
such tools we ( = the community + I) have long expected.

I need a groupware solution (that can use our LDAP directory) closely
linked to shared calendars, shared folders, connection to PIM (IPAQ and
Palm V), email lists ...

As the ICT manager, I have a rather strong influence on where we will spend
our money and how ( for me, this is rather buying services we can rely on
than products that are closed and that will soon appear not open enough, and
too limitative)

We are decided to use more and more ZOPE as a backend and server. have you
considered using ZOPE as the server , for example for the shared calendars,
for aethera ? How coul I help you considering ZOPE for such a use : this
would be really convenient for us as it would mean we could integrate aethera
and the  web based calendar+groupware+workflow we are considering.

A good explanation of ZOPE would help.  I've heard about it a number of 
times and looked at the site, and I really don't get it from a quick 
look.  ZOPE my be a perfect fit for us, but I don't have enough information 
to evaluate it.

I suppose such requirements are similar to the ones many companies and
institutions like mine have. Maybe, all these institutions could team up and
support you along these lines.

For me a VERY important point you satisfy, and for which once again I want to
thank you, is that the application be free software.

Some more questions:

1/ which standards are you following for example for the calendaing features
or the taks and appointment requests ?

Forgive me if I get the latest names wrong, I think it's the iCalendar 
standard we are planning to follow.  I haven't had a good discussion with 
the developers on it yet because of being so busy with getting all the 
latest releases out.

2/ will the application be compatible with Evolution ?

I have no intention of doing anything with Evolution.

3/ You say
   Python will be woven into all of our applications as a scripting
   component.  It isn't there yet, but it will be.

For kivio and aethera, what are your plans (release dates ) ?

We are working on it for Kivio right now, and in the basic planning stages 
for Aethera.  We want to get a basic implementation in Aethera soon to at 
least support the filtering, but I don't know how each beta release will go 
so it's hard to judge.  I would say a few months to be safe.

4/ How can I help you get further ?

- Try and collect money,
- find people/teams/developpers especially KDE who could help you and your
company - or shoudl I say kompany at developping or selling local support ?

People I can get, I've got some great ones now and a ton of resumes from 
some really good people, it's a matter of having the finances to pay for 
them.  Since pieces of Aethera are for sales such as the server and various 
plug ins that extend the functionality, it isn't proper for me to solicit 
free help to work on these things, unless they want to work on the free 
portions of the project.  But if you can raise money it would certainly 
make a difference.

I am better at that - convincing people and finding money - than at writing
applications so I'll stick to what I am best of.

Best regards,

Nicolas Pettiaux

--
Nicolas Pettiaux
Avenue du Prou 29
B-1000 Brussels


Regards,

Shawn Gordon
President
theKompany.com
www.thekompany.com
949-713-3276



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

2001-01-24 Thread Evan Simpson

From: "Itai Tavor" [EMAIL PROTECTED]
 Great, thanks for the fix. It's fine in Zope 2.3b3.

I should probably write a Howto for VirtualHostMonster, and ask the folks
who've written the various fine SiteAccess-related Howtos to incorporate it.
It really is a lot easier and safer to use than SiteRoots 98% of the time.

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] Did I miss some major change in Z SQL Methods ?

2001-01-24 Thread Curtis Maloney

On Thursday 25 January 2001 16:50, Evan Simpson wrote:
 From: "Curtis Maloney" [EMAIL PROTECTED]

  A Z SQL Method ( Returner.sql.getDetails )

 [snip]

  dtml-with "Returner.getDetails(Returner, User=12)"
dtml-var fieldName
  /dtml-with

 You want either:

 dtml-in "Returner.getDetails(Returner, User=12)"
   dtml-var fieldName
 /dtml-in


No...if you'd paid attention, the Returner.getDetails() is a python method 
that calls Returner.sql.getDetails() and does the [0] slicing.

Besides, I've also tried ditching the Python Method, and doing the slicing in 
my DTML, and it STILL doesn't work.  This is what has me so confused.  Even 
removing most of the complexity, the problem persists.

 Cheers,

 Evan @ digicool  4-am

Have a better one,
Curtis Maloney

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




Re: [Zope] eTailer Error

2001-01-24 Thread thomas

On 24 Jan, LARRY CHUON wrote:
 When I click on "Check Out", I receive the following error message.  Can someone 
shed some lights please?
 
[snip]
   KeyError
 
   Sorry, a Zope error occurred.
 
[snip]
 File /usr/local/Zope-2.2.4-linux2-x86/lib/python/ZPublisher/HTTPRequest.py, line 
810, in __getitem__
   KeyError: cart_items
 

Make sure your cookies are enabled and really get where they need to go. 
If you do some voodoo with virtual hosting, the "domain" of your cookie 
might not get set correctly. You can check that in your cookie file.

I actually had to modify the source to get it to work with SiteRoot.

-Th


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

2001-01-24 Thread Tres Seaver

Jerome Alet [EMAIL PROTECTED] wrote:

 On Wed, 24 Jan 2001, Chris Withers wrote:
 
  Jerome Alet wrote:
  
   I sincerely don't know because I've disabled FTP here.
  
  How come?
  
  What about WebDAV?
 
 don't use it either.
 
 I want to use my own text editor (JERED), not because it's
 the best to develop (far from that in fact) but because it
 works exactly like I want it to work (which is normal since
 I've written it). Unfortunately it doesn't handle WebDAV or
 any other Internet protocol... 

You might look at the 'cadaver' WebDAV client (on Unixen):

  http://www.webdav.org/cadaver

It can browse your Zope using WebDAV (especially nice if you
run the "WebDAV source port" HTTP listener), and kick down to
your favorite editor to edit files.

I'm liking it a lot -- the last reason to even consider using
emacs is gone :)

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 )




[Zope] zope + img tags + javascript

2001-01-24 Thread Lee

Hi there,

I'm using JavaScript primarily for form evaluation, multiple submit
buttons and various other piece of client-sided trickery but I've
encountered a problem. I've seen something similar mentioned before but
I can't find it in my archive.

I *hate* image maps but I'd like to use one so  how can I add the
details to the dtml-var imageName? I'd also like to add various bits
'n bobs of JavaScript to some of the images that I am using. Adding img
src="http://hostname:8080/exactLocation" is not a possible alternative
for me.

Can anyone help?

The similar previous post that I am referring to concerned the resizing
of images in DTML. If someone could tell me how to do this then I expect
I could adapt it to reference my image map. I think it would be possible
to take in the var and pass it to a python method, which would then
alter it and pass it back... but surely there's an easier way?

Thanks very much for your time  thanks in advance if you can help.

- Best regards,

Lee

--
Lee Reilly
mailto:[EMAIL PROTECTED]

````

HAVE SKILLS; WILL TRAVEL.

I'm currently looking for an internship in the USA
in the field of web development. Ideally, I'm looking
for a placement for 3 to 18 months. Can you help?

More details, my resume, etc. @
http://homepages.strath.ac.uk/~aeu97172/

/shameless plug




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

2001-01-24 Thread Ron Bickers


 I should probably write a Howto for VirtualHostMonster, and ask the folks
 who've written the various fine SiteAccess-related Howtos to
 incorporate it.
 It really is a lot easier and safer to use than SiteRoots 98% of the time.

I agree.  It's very easy to use with Apache, and it doesn't mess up /manage
access through the primary domain.  Woohoo!
___

Ron Bickers
Logic Etc, Inc.
[EMAIL PROTECTED]


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




[Zope] (no subject)

2001-01-24 Thread Priya Ramkumar

Hi

I am trying to create a wizard in my portal to enable users to store
information. In addition to the features of the already existing Document
Wizard, I would like my Wizard to have more features like information about
the category of the document, etc. I created a file called "Userdocument.py"
with a method "addUserdocument" which will be called to add a new document.
I have also added the new entry to the PTKBases  PTKDemos __init__.py. But
as soon as Zope starts, it gives this error


2001-01-25T06:07:07 ERROR(200) Zope Couldn't import Products.PTKDemo
Traceback (innermost last):
  File /export/usr/local/Zope-2.2.4-src/lib/python/OFS/Application.py, line
397,
 in import_products
(Object: string)
  File
"/export/usr/local/Zope-2.2.4-src/lib/python/Products/PTKDemo/__init__.py
", line 159
 PTKBase.Userdocument = Userdocument
^
 SyntaxError: invalid token

Could anyone please tell me how to create custom wizards and to register
them?

Thanks.
Priya



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Add this and possible bug, was Re: [Zope] Add this to Wish list

2001-01-24 Thread Jerome Alet

On Wed, 24 Jan 2001, Evan Simpson wrote:

 From: Jerome Alet [EMAIL PROTECTED]
  Please could you include a button "Download Source" to the Python Script
  edition form ?
 
 Already done; There's a link in the paragraph below the text area, and above
 the upload form (in CVS).

Thanks a lot !

Now please another wish:

I've done what I describe below for my own work, but I think this might be
interesting to integrate it in Zope's core:

Wouldn't it be fine if you added three buttons on the same line as

Rename Cut Copy Delete Import/Export

in the manage_main page.

These three buttons would be:

[PARENT] = which moves the selected objects up to the parent folder.

[UP] and [DOWN] = which rename objects the following way:

Let's say I've got the following folder content:

MyFolder
|--Object1 (Title1)
|--Object2 (Title2)
|--Object3 (Title3)
|--Object4 (Title4)

Then pressing on the [UP] button having Object3 selected I'll obtain:

MyFolder
|--Object1 (Title1)
|--Object2 (Title3)
|--Object3 (Title2)
|--Object4 (Title4)

and the same for the [DOWN] button.

This might prove to be useful if you want to keep a certain structuration
based on the objects' ids, but be able to change their order without
modifying the ids.

I hope what I ask is clear and someone else sees an utility for that.

Doing that I've found a possible bug (maybe bug isn't the appropriate
word) with the manage_renameObjects() method:

this method accepts ids and new_ids as its arguments, ids is a list of the
old ids to rename, and new_ids the new ones. If you want to exchange 2 ids
(e.g. rename Object1 to Object2 and Object2 to Object1 which both exists)
then there's an exception saying that one of the ids already exist.

So instead of one call to manage_renameObjects() to rename both objects in
one pass, you have to call it three times: one time to rename Object1 to a
temporary id, one time to rename Object2 to Object1 and one time to rename
"tempid" to Object2.

My question is: Could you do something about this "small" problem ?

bye, and thanks for all !

Jerome Alet - http://cortex.unice.fr/~jerome


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