[Zope] Two problems regarding security, and eval in zope 2.2.4

2000-12-16 Thread Manuel Amador (Rudd-O) Gerente de desarrollo Alpha

Hello everyone,

I\'m having a little bit of trouble:
http://boeing:8080/manage_access - traceback of the manage_Access view in the 
ROOT folder


Traceback (innermost last):
  File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 222, in 
publish_module
  File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 187, in 
publish
  File /usr/share/zope/lib/python/Zope/__init__.py, line 221, in 
zpublisher_exception_hook
(Object: ApplicationDefaultPermissions)
  File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 171, in 
publish
  File /usr/lib/python1.5/site-packages/ZPublisher/mapply.py, line 160, in 
mapply
(Object: manage_access)
  File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 112, in 
call_object
(Object: manage_access)
  File /usr/share/zope/lib/python/AccessControl/Role.py, line 255, in 
manage_access
(Object: ApplicationDefaultPermissions)
  File /usr/share/zope/lib/python/App/special_dtml.py, line 120, in __call__
(Object: access)
  File /usr/lib/python1.5/site-packages/DocumentTemplate/DT_String.py, line 
528, in __call__
(Object: access)
  File /usr/lib/python1.5/site-packages/DocumentTemplate/DT_With.py, line 146, 
in render
(Object: _.namespace(valid_roles=valid_roles()))
  File /usr/lib/python1.5/site-packages/DocumentTemplate/DT_In.py, line 630, in 
renderwob
(Object: permission_settings)
  File /usr/share/zope/lib/python/AccessControl/Role.py, line 182, in 
permission_settings
(Object: ApplicationDefaultPermissions)
  File /usr/share/zope/lib/python/AccessControl/Role.py, line 177, in 
lt;lambdagt;
TypeError: (see above)




that was problem number one.

problem number two.

I\'d like to take the contents of a variable, and they being the name of an 
image object, render it on the web page as an IMG SRC, just like a dtml-var 
image_id.  I know this could be done with external python scripts and eval.  
But so far all i get is integeroverflows.



any ideas?  please cc: me because I\'m a little bit busy.  Thanks =)
--
   Universidad Federico Santa Maria - Campus Guayaquil
 Enviado por:  www.usm.edu.ec/computacion

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] sql query results - DTML method problem

2000-12-16 Thread Manuel Amador (Rudd-O) Gerente de desarrollo Alpha

Quoting Lee Reilly CS1997 [EMAIL PROTECTED]:

 Hi,
 
 I have a TINY problem, which I think there is a simple solution too...
 but for the life of me, I can\'t find it! I\'d be grateful if someone
 could point me in the right direction.
 
 I have a database setup containing details of classes, students 
 lecturers. The user is prompted to enter a class code (a unique key)
 which is used to query the database and return the class title. Simple.
 
 A DTML method prompts me for the class code
 -- I enter 52.139 and it posts to a method \'enterClassCodeAction\',
 below.
 
 #1dtml-var standard_html_header
 #2h2Confirm/h2
 #3pYou entered idtml-var class_code/i/p
 #4
 #5p
 #6Our records show that dtml-var class_code is called
 #7
 #8dtml-in expr=\"findClassTitle(code=52.139)\"

RING: dont do that, dtml wont work in python namespace
instead, remember that in python namespace all vars present in dtml namespace 
are inherited.

do this:
dtml-in expr=\"findClassTitle(code=_.(\'class_code\'))\"
the __.() construct is required since underscore arent allowed in python 
variable names. if the var was called classcode, you could do
dtml-in expr=\"findClassTitle(code=classcode)\"
dats it.

 #9dtml-var title
 #10   /dtml-in
 #11   
 #12
 #13   /p
 #14   dtml-var standard_html_footer
 
 ^ The method works fine when the class code is manually inserted (line
 #8) but when I try to pass the variable from the previou post, held in
 dtml-var class_code I have probs.
 
 dtml-in expr=\"findClassTitle(code=dtml-var class_code)\" *** syntax
 error
 
 findClassTitle is a ZSQL method for returning the class title given a
 class code:
   
   select title from classes 
   where dtml-sqltest code op=eq type=float
 
 Hmm... anyone see the problem?
 
 Thanks a lot :)
 
 - Best regards,
 
 Lee
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )
 

--
   Universidad Federico Santa Maria - Campus Guayaquil
 Enviado por:  www.usm.edu.ec/computacion

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

2000-11-09 Thread Manuel Amador (Rudd-O)

Well,

After no one else answered my last email about zope, I've decided to
summarize what's going on with the ZSybaseDA so as to see if someone
takes interest.

STORED PROCEDURES DO NOT WORK.  Anything else, however, does.  Once a
stored procedure was called, the db object is blocked till zope
restarts.

Any patches, solutions, suggestions?

   Manuel


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

2000-11-06 Thread Manuel Amador (Rudd-O)

Hi to everyone, especially the experts =)

The reason for this email is an urgent need for a Sybase ASE database to
work properly.  Here's the deal.  It worked like a charm on windows with
ODBC.But now I moved to Linux, compiled ZSybaseDA and installed it. 
It works for selects and updates, etcetera, both in the test tab and in
ZSQL methods.

BUT when I try to call a stored procedure, well, lemme paste the
traceback.  A traceback is worth a million explanations:

- traceback 
Zope Error

 Zope has encountered an error while publishing
this resource. 

 Error Type: Error
 Error Value: Error processing exec
sp_gn_regionales
 '0990006792001' , null , NULL Stored procedure
'sp_gn_regionales'
 not found. Specify owner.objectname or use
sp_help to check whether
 the object exists (sp_help may produce lots of
output). 



 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. 






 



   Cambiada el: 2000/10/30
16:03:22.4513 GMT-5
  Website copyright grupo SUPÁN. Diseñado por Manuel
Amador (Rudd-O), OpenCorp
 
S.A.



Traceback (innermost last):
  File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 222, in
publish_module
  File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 187, in
publish
  File /usr/local/zope/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
(Object: Traversable)
  File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 171, in
publish
  File /usr/local/zope/lib/python/ZPublisher/mapply.py, line 160, in
mapply
(Object: index_html)
  File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 112, in
call_object
(Object: index_html)
  File /usr/local/zope/lib/python/OFS/DTMLDocument.py, line 177, in
__call__
(Object: index_html)
  File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line
528, in __call__
(Object: index_html)
  File /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 168, in
__call__
(Object: form)
  File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line
528, in __call__
(Object: form)
  File /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 168, in
__call__
(Object: dw_gn_regionales)
  File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line
528, in __call__
(Object: dw_gn_regionales)
  File /usr/local/zope/lib/python/DocumentTemplate/DT_In.py, line 633,
in renderwob
(Object:
sp_gn_regionales(cod_empresa=REQUEST.cod_empresa,cod_regional=''))
  File /usr/local/zope/lib/python/DocumentTemplate/DT_Util.py, line 337,
in eval
(Object:
sp_gn_regionales(cod_empresa=REQUEST.cod_empresa,cod_regional=''))
(Info: REQUEST)
  File string, line 0, in ?
  File /usr/local/zope/lib/python/Shared/DC/ZRDB/DA.py, line 453, in
__call__
(Object: sp_gn_regionales)
  File /usr/local/zope/lib/python/Products/SybaseDAv2/db.py, line 299,
in query
  File /usr/local/zope/lib/python/Products/SybaseDAv2/db.py, line 333,
in _error
Error: (see above)
- end traceback --

I'm baffled.  I just got too accustomed to Zope so that we committed to
the development of reports on the Web instead of with PowerBuilder.  If
this doesn't work, I will have to sustain several hours of psychological
punishment, and I will have to dump Zope in favor of a better solution. 
These kinds of things make Zope not suitable for enterprise
applications, where you can't rely on poorly documented things like
ZSybaseDA.  I'm even angry at liking Zope now.

For the record, I'm using Sybase ASE 11.9.2 with the latest OpenClient
RPM from Sybase.com.  As you can see, this is a ZSybaseDA problem since
everything but the stored procedures return data or alter/update it.

I need an answer soon.  OR, at least a hint of where could I tap
information sources to DigitalCreations directly for commercial support,
regarding Sybase support for our needs.
I read about the agreement between Sybase and Digital Creations.  But I
can't find any information regarding Zope support in either Digital
Creations' or Sybase's web sites.

And I have exactly one week.

Any

Re: [Zope] REQUEST.set size

2000-10-17 Thread Manuel Amador (Rudd-O)


maybe you should try to put your data in a list or a dictionary.
Anyone can help with the syntax? I can't remember... =)
Paul Zwarts wrote:
Hi all,
I am new to Zope but worked for 2 years in a dev-env called Uniface
so
Im fairly up to speed on Zope quickly. But I am having a problem writing
data through a REQUEST.set that is larger than its apparent limit.
(sorry can remember the exact error i get from Zope)
What I am trying to do is collect in a field a large list of emails
that
are gathered in a dtml-in statement with a REQUEST.set('all', all +
email) nested in the loop. While appending the namespace to store the
data in PGSQL, i always get the size error which i assume is coming
from
the publisher saying that a the request can only have a byte size of
1800 bytes or so.
Im not so hot with straight SQL because Uniface had its own methods,
so
Im not sure if I can append data directly to a stored field or if I
need
to continue trying to use the REQUEST.set. After the hundreth occurence
in the IN, the namespace I use to store the appended data, so I cannot
fully make a list of 2000 occurences. Any ideas?
Sorry, no code to show what Im doing but it should be pretty easy to
understand for all you veterans out there...
TIA,
--
Paz
Oratrix Development BV
http://www.oratrix.com
GRiNS SMIL Editor
-
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev
)

--
Manuel Amador (Rudd-O)



Re: [Zope] Newbie question : ZopeTime permissions

2000-10-16 Thread Manuel Amador (Rudd-O)


access contents information
I guess.
Aaron Straup Cope wrote:
Hi,
My name is Aaron.
I am trying to set up zope with (atleast) three roles : manager, admin,
user.
I'd like to give the last two the bare minimum Security permissions
possible and adding them as needed later on.
My problem is that I can't seem to figure out, specifically, which
permissions to give a user that will allow them to read ZopeTime().
(see below)
For the admin user, I have set the Access content information and View
*
options globally. I've tried guessing at some others, but there are
alot
of possible combinations to try so I thought maybe I would just ask.
Related, is there a detailed description of the default Security
settings? I've checked the mailing lists and the Zope docs and if it's
there, I guess I missed it.
Thanks,
dtml-call "REQUEST.set('ts', ZopeTime())">
dtml-call "REQUEST.set('foo',_.str(_.int(ts)))">
dtml-var foo>
Traceback (innermost last):
 File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line
222, in
publish_module
 File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line
187, in
publish
 File /usr/local/zope.old/lib/python/Zope/__init__.py, line 221,
in
zpublisher_exception_hook
 (Object: Traversable)
 File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line
171, in
publish
 File /usr/local/zope.old/lib/python/ZPublisher/mapply.py, line
160, in
mapply
 (Object: test)
 File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line
112, in
call_object
 (Object: test)
 File /usr/local/zope.old/lib/python/OFS/DTMLDocument.py, line
177, in
__call__
 (Object: test)
 File /usr/local/zope.old/lib/python/DocumentTemplate/DT_String.py,
line
528, in __call__
 (Object: test)
 File /usr/local/zope.old/lib/python/DocumentTemplate/DT_Util.py,
line
337, in eval
 (Object: REQUEST.set('ts', ZopeTime()))
 (Info: REQUEST)
 File string>, line 0, in ?
NameError: (see above)
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev
)

--
Manuel Amador (Rudd-O)



Re: [Zope] DTML Method not working

2000-10-16 Thread Manuel Amador (Rudd-O)


dtml-with "PARENT[0]">
dtml-tree>
Phil Harris wrote:
Is the code you used in a DTML Method or a DTML Document?
Is it in a DTML Method being called from a DTML Document?
If the answer to either of these is 'yes' then it's doing as you ask!
The thing that gets most new zope users is that a DTML Document is itself
a
container. This means that anytime you use code similar to yours
or when
using a dtml-tree ...> it will probably return a blank, as the
DTML
Dopcument has no children(?!?).
Solutions:
1. Try moving the code into a DTML Method.
2. Use a dtml-with around it.
The second one works most places but if in the root then it's slightly
more
difficult as the top object is hard to reference (please someone tell
me I'm
wrong here).
You could try something like:
dtml-with expr="resolve_url(BASE0+'/')">
ul>
dtml-in expr="objectValues('Folder')">
li>a href="dtml-absolute_url;">dtml-var title_or_id>/a>br>/li>
/dtml-in>
/ul>
/dtml-with>
The resolve_url(BASE0+'/') should give you a reference to the top Zope
object (root).
hth
Phil
[EMAIL PROTECTED]
- Original Message -
From: "Ronald L. Chichester" [EMAIL PROTECTED]>
To: [EMAIL PROTECTED]>
Sent: Sunday, October 08, 2000 8:58 PM
Subject: [Zope] DTML Method not working
> I took some code that was in the (work-in-progress) O'Riley book on
> Zope. In that example, then had a DTML Method used for identifying
> folders and hyperlinking to them. The code is as follows:
>
> ul>
> dtml-in expr="objectValues('Folder')">
> li>a href="dtml-absolute_url;">dtml-var title_or_id>/a>br>/li>
> /dtml-in>
> /ul>
>
> The problem is, it doesn't work. I know the method is being
invoked
> because there is some other text that is indeed being inserted.
> Moreover, there are sub-folders in the folder that calls the method.
>
> Does anyone know what the problem is? Is it a permission issue.
The
> standard_html_header and _footer, show up just fine, along with logos
> and such. The only part that isn't showing up is the stuff
that was
> supposed to be generated by the dtml-in> block.
>
> Any hints?
>
> Thanks in advance.
>
> Ron
> ./.
>
>
> ___
> Zope maillist - [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> ** 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
)

--
Manuel Amador (Rudd-O)



Re: [Zope] Socket.error problem

2000-10-16 Thread Manuel Amador (Rudd-O)
unix 1 [ N ]
STREAM CONNECTED 26293
/tmp/.X11-unix/X0
unix 1 [ ]
STREAM CONNECTED 26278
/tmp/.X11-unix/X0
unix 1 [ ]
STREAM CONNECTED 26272
/tmp/.X11-unix/X0
unix 1 [ ]
STREAM CONNECTED 26270
/tmp/.X11-unix/X0
unix 1 [ ]
STREAM CONNECTED 26268
/tmp/.X11-unix/X0
unix 1 [ ]
STREAM CONNECTED 26266
/tmp/.X11-unix/X0
unix 1 [ ]
STREAM CONNECTED 26264
/tmp/.X11-unix/X0
unix 1 [ ]
STREAM CONNECTED 26260
/tmp/.X11-unix/X0
unix 1 [ ]
STREAM CONNECTED 26254
/tmp/.X11-unix/X0
unix 1 [ ]
STREAM CONNECTED 26248
/tmp/.X11-unix/X0
unix 1 [ N ]
STREAM CONNECTED 26181
/tmp/.font-unix/fs-1
unix 1 [ ]
STREAM CONNECTED 26182
/tmp/.X11-unix/X0
unix 0 [ ]
DGRAM
2813
unix 0 [ ]
DGRAM
2812
unix 0 [ ]
DGRAM
1464
unix 1 [ ]
STREAM CONNECTED 1430
unix 1 [ ]
STREAM CONNECTED 1429
unix 1 [ ]
STREAM CONNECTED 1425
unix 1 [ ]
STREAM CONNECTED 1424
unix 1 [ ]
STREAM CONNECTED 1421
unix 1 [ ]
STREAM CONNECTED 1420
unix 1 [ ]
STREAM CONNECTED 1417
unix 1 [ ]
STREAM CONNECTED 1416
unix 1 [ ]
STREAM CONNECTED 1413
unix 1 [ ]
STREAM CONNECTED 1412
unix 1 [ ]
STREAM CONNECTED 1409
unix 1 [ ]
STREAM CONNECTED 1408
unix 1 [ ]
STREAM CONNECTED 1405
unix 1 [ ]
STREAM CONNECTED 1404
unix 1 [ ]
STREAM CONNECTED 1401
unix 1 [ ]
STREAM CONNECTED 1400
unix 1 [ ]
STREAM CONNECTED 1396
unix 1 [ ]
STREAM CONNECTED 1395
unix 1 [ ]
STREAM CONNECTED 1392
unix 1 [ ]
STREAM CONNECTED 1391
unix 1 [ ]
STREAM CONNECTED 1388
unix 1 [ ]
STREAM CONNECTED 1387
unix 1 [ ]
STREAM CONNECTED 1384
unix 1 [ ]
STREAM CONNECTED 1383
unix 1 [ ]
STREAM CONNECTED 1381
unix 1 [ ]
STREAM CONNECTED 1380
unix 1 [ ]
STREAM CONNECTED 1377
unix 1 [ ]
STREAM CONNECTED 1376
unix 1 [ ]
STREAM CONNECTED 1374
unix 1 [ ]
STREAM CONNECTED 1373
unix 0 [ ]
DGRAM
1355
unix 0 [ ]
DGRAM
486
unix 0 [ ]
DGRAM
469
unix 0 [ ]
DGRAM
403
unix 0 [ ]
DGRAM
392

--
Manuel Amador (Rudd-O)



Re: [Zope] Zope in Windows is faster than Linux ???

2000-10-16 Thread Manuel Amador (Rudd-O)


which publications?
it sounded like  dunno, if there is a publication that dares to
say that, they ARElying.
knight wrote:
> Don't you all Zope mailinglist participants think
that Aitor Grajal owe us all an excuse in the form of a NEW TEST with the
Win32 ZServer running properly?
> ;-)
> Especially to all Linux supporters for the badwill of the emails
title.
>
> I would really be interested in its correct results.
>
> Cheers everyone
Especially with all this press I've seen in publications over the last
month or two regarding Windows 2000 is outperforming *nix. (over my
dead
_dead_ body)
Knight
>
> > > Failed requests: 137
> >
> > No - look at your results. Every request failed on the win32
> > box (and they all succeeded on linux). You have some sort of
> > problem in your windows setup, and you'll always get higher
> > throughput for errors than you can for completed requests...
> >
> >
> > 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 maillist - [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> ** 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
)

--
Manuel Amador (Rudd-O)



Re: [Zope] security quickie

2000-10-16 Thread Manuel Amador (Rudd-O)


I too have a doubt about security stuff.
It so happens that I have this setup
rootfolder
+ myfolderobjects
 + inheritedstuff
i have an user X in root folder. Roles are so that anonymous doesn't
have permission for anything. Then, there is a user role, that
is allowed some stuff, and i assign local role of User to X into Inheritedstuff.
He now can see index_html. I proxy-role index_html to the User role
so i can dtml-var somestuff> that is into myfolderobjects, being
somestuff a DTMLmethod.
It works. X can access index_html which in turn includes somestuff
from its parent folder, and I did not have to give him explicit rights
to any of the objects into myfolderobjects

BUT, if I try to dtmlvar somesqlmethod>, it won't work. Note
that the User role does have permission to run SQL methods.
That's in my point of view, a mistake in Zope's security policy.
If i proxy-role a document or method, i should be able to acquire anything
specified into it, from its parent hierarchy.
Please help or tip. Thanks =)

Seb Bacon wrote:
Does Zope security provide a way of restricting what
objects are listed to
an authenticated user inside the Zope 'manage' interface? I'm
getting my
head all twisted up over this security / proxy roles /local roles lark.
Thanks, seb
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev
)

--
Manuel Amador (Rudd-O)



Re: [Zope] Zope in Windows is faster than Linux ???

2000-10-16 Thread Manuel Amador (Rudd-O)


I feel zserver somewhat dumber on windows 95 than on linux. a p200
machine with windows 95 is considerably slower inrentering pages than a
p166 with linux.

Toby Dickenson wrote:
On Sat, 07 Oct 2000 01:57:40 +0200, "Ansgar W. Konermann"
[EMAIL PROTECTED]> wrote:
>Definitely, yea!
>
>> I would really be interested in its correct results.
We have been stress testing our Zope application on NT and Linux. Our
conclusion is that OS is not a factor in Zope performance.
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
)

--
Manuel Amador (Rudd-O)



Re: [Zope] Animated GIFs

2000-10-16 Thread Manuel Amador (Rudd-O)


correct me if i'm wrong, but the repeat attribute is IN the gif file.
that means zope is mangling the file.
try creating the image as a file changing its mimetype and referrring
it outside zope via an HTML page, to see if that's the case.

Lars Heber wrote:
Peter Bengtsson schrieb:
> [Just checking.]
> Have you tried to acctually _use_ the animated gif in context with
other HTML?
> I have experienced problem some single time with images (can't remember
what the problem/image was) viewed directly from the View management tab.
>
> Excuse the childish suggestion.
Any help is appreciated!!!
I tried your suggestion. The animGif works fine with every kind of HTML.
I really think it's a Zope problem.
Also the gif downloaded from Zope works with HTML outside Zope.
The following doesn't work as well:
Refer to the gif situated on your Zope server from a HTML file outside
Zope. - Same problem...
html>
head>title>the title/title>/head>
body>img src="http://localhost:8080/animGif">/body>
/html>
I also tried to name the animGif explicitely animGif.gif instead of
animGif - guessed what? - same problem!
Any more ideas, please?
Thanks.
Lars
> - Original Message -
> From: "Lars Heber" [EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]>
> Sent: Friday, October 06, 2000 3:24 PM
> Subject: [Zope] Animated GIFs
>
> > Hi there,
> >
> > I've got a strange problem.
> >
> > I want to upload an animated GIF to my Zope, but when I want to
view it,
> >
> > animation stops at the last frame instead of looping indefinitely.
> >
> > When not uploaded to Zope, the animation works fine,
> > also, when I download the GIF by rightclick from a Zope site and
view
> > it again outside Zope, it works perfectly!
> >
> > What's going on here??? Any ideas?
> >
> > PS.: The content_type is image/gif.
> > Do animGifs have
another one? Just an idea...
>
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev
)

--
Manuel Amador (Rudd-O)



Re: [Zope] How: /foo?var=bar equiv to /foo/bar

2000-10-16 Thread Manuel Amador (Rudd-O)


Question marks are used for GETmethods. I think that if you're
trying to make a form send you to another page without question marks,
you'd have to use POST method in the form.
Heymann William wrote:
I am trying to get rid of those question marks in
my urls since it
seems to confuse the users but I am not sure really how to do that.
I have
heard that it can but done but so far I have not found out how it can
be
done. I want for the last piece of the url to be assigned to the varialbe
if a valid object can not by found. I don't really have a problem if
this
involves python coding I just need a place to start.
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
)

--
Manuel Amador (Rudd-O)



Re: [Zope] zope 2.2.2 not compiling

2000-10-16 Thread Manuel Amador (Rudd-O)


I think you need the cygwin development environment. Or there is
a zip around, called UnxUtils.zip. do a google search and get it.
Lace its contents into a folder in your PATH.
Roland Tepp wrote:
Hi. I downloaded Zope 2.2.2 source and I am trying
to compile it on
WinNT to run without pcgi and it fails (console output following this
letter).
I tried to track down the problem but I don't seem to make any progress.
Could You help me please...
--
Compiling python modules
--
Building extension modules

Compiling extensions in lib/python
cp D:\Python/lib/python/config/Makefile.pre.in .
The name specified is not recognized as an
internal or external command, operable program or batch file.
Traceback (innermost last):
 File "D:\Python\Zope-2.2.2\wo_pcgi.py", line 116, in ?
 if __name__=='__main__': main(sys.argv[0])
 File "D:\Python\Zope-2.2.2\wo_pcgi.py", line 104, in main
 import build_extensions
 File "D:\Python\Zope-2.2.2\inst\build_extensions.py", line 96,
in ?
 make('lib','python')
 File "D:\Python\Zope-2.2.2\inst\do.py", line 135, in make
 do("cp %s ." % wheres_Makefile_pre_in())
 File "D:\Python\Zope-2.2.2\inst\do.py", line 104, in do
 if i and picky: raise SystemError, i
SystemError: 1
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev
)

--
Manuel Amador (Rudd-O)



[Zope] int and string comparisons

2000-10-12 Thread Manuel Amador (Rudd-O)


This is the snippet
 dtml-in "_.range(1,32,1)">
 option value="dtml-sequence-item;"
 dtml-let item=sequence-item>
 dtml-if begin_day>
 dtml-if expr="item ==
REQUEST.begin_day"> selected /dtml-if>
dtml-comment>CONVERTIR A INT/dtml-comment>
 /dtml-if>
 /dtml-let>
 >dtml-sequence-item;/option>
 /dtml-in>
The comparison fails because item is an int and REQUEST.begin_day is
a string(i guess). How can I coerce item into a string, or
REQUEST.begin_day into an int?
I tried python's builtin int() function around REQUEST.begin_day.
Won't work.
Any suggestions?
--
Manuel Amador (Rudd-O)



[Zope] Stupid questions

2000-10-11 Thread Manuel Amador (Rudd-O)


Am i supposed to get "XMLmethods" and "Python methods" in the add
product drop down?
I'm baffled.
Thanks =)
PD: the subject says it all. Please don't flame me. I think we
need a little bit more organization, some kind of comprehensive index instead
of looking for documentation in several places.
--
Manuel Amador (Rudd-O)



[Zope] How to use standard html headers and footers properly (was: Re: [Zope]Namespace problems...)Namespace problems...)

2000-10-11 Thread Manuel Amador (Rudd-O)


dtml-with pub>
 dtml-let titel="_.string.join(['This is the website
of ',
enterpriseName])">
 dtml-var standard_html_header>
 /dtml-let>
on your document, WILLwork fine.
But I suggest recreating standard_html_header as a METHODand calling
dtml-with pub>
dtml-var standard..>
/dtml-with>
Since methods don't have properties, they will use calling object's
properties. Read again. Do NOTuse DTMLdocuments
for headers and footers. Use METHODS.
Lars Heber wrote:
Hi there,
I've still got to build a bigger website.
So I stored my headers and footers and many other things in root/pub.
All the other documents are stored in root/Intra and below.
I've got my standard_html_header, with which I can display user-defined
titles which may also contain values of global properties. The
user-defined title is being built in the document before the header
is
called, e. g. something like:
dtml-with pub>
 dtml-let titel="_.string.join(['This is the website
of ',
enterpriseName])">
 dtml-var standard_html_header>
 /dtml-let>
In the standard_html_header method I'm checking whether there is a titel
attribute or not.
This works fine.
But for general use I want to keep the possibility of displaying the
title_or_id of the document when I don't introduce a user-defined title.
This would be no problem if s_h_h wasn't situated in root/pub, so I
have
to call it within the dtml-with pub>.
But doing this, pub is on the top of my namespace, so that calling
title_or_id returns the title_or_id of the container of s_h_h, i. e.
pub!
How can I nevertheless access within the s_h_h to the title_or_id of
my
original document?
Thanks.
Lars
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev
)

--
Manuel Amador (Rudd-O)



[Zope] SybaseDA and ASA

2000-10-11 Thread Manuel Amador (Rudd-O)


Hey everyone,
first, let me thank you for all the help you've provided. Every
reply was fast, efficient and right to the point.
Second:
I've installed zope 2.2.2, and compiled sy_occ.so for SybaseDAagainst
sybase-common-cantrememberversion.rpm from Sybase. (I assume it's
the latest one). Loading python and importing sy_occ works perfectly.
BUT, I can't create a SybaseDA SQLconnection object . Specifically,
trying to create it sez connection failed. I've tried EVERYPOSSIBLE
parameter combination on the creation form. None worked.
By the way, I'm using Adaptive Server Anywhere for linux, 6.0.3.
It is NOTASE. It is ASA.
Does sy_occ work with ASA, or only with ASE? Any experiences?
--
Manuel Amador (Rudd-O)