[Zope-dev] How to get Entrys from a catalog by date boundaries

2002-07-23 Thread Sebastian Sippl

Hi,

I've tried to select all entrys from a catalog by defining the date 
boundaries(Python script).
Looks like this:

id=context.getId()

return context.cata(
 {'content' : id,
  'date': [datestart, dateend],
  'date_usage' : 'range:min:max',
 }
)
cata = my catalog,datestart =start date(date-string),dateend=end date

When I send my request, the only things I get back are some MYBRAnI 
instance at #123848-tags.

For the beginning i would just like to get the ids of the items in the 
boundaries.

How can i achieve that?
Please help !!

Sebastian








___
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] Accessing catalog objects

2002-07-23 Thread Sebastian Sippl




On Tuesday 23 Jul 2002 10:20 am, Sebastian Sippl wrote:


   Hi,

 I've tried to select all entrys from a catalog by defining the date
 boundaries(Python script).
 Looks like this:

 id=context.getId()

 return context.cata(
  {'content' : id,
   'date': [datestart, dateend],
   'date_usage' : 'range:min:max',
  }
 )
 cata = my catalog,datestart =start date(date-string),dateend=end date

 When I send my request, the only things I get back are some MYBRAnI
 instance at #123848-tags.

 For the beginning i would just like to get the ids of the items in the
 boundaries.

  
  
RE:If you have id set up as catalog metadata, then those objects will each have 
an id attribute which does what you want.My question: How do i access the objects ? -- what syntax do i have to use ?Please help!Sebastian


  
  
  


[Zope-dev] ZopeTime Module missing !?

2002-07-23 Thread Sebastian Sippl

Hi,

Is it possible, that on my zope server the ZopeTime() module is missing ?
If yes, how do i get it installed ?

Sebastian



___
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] Date Time Problem

2002-07-23 Thread Sebastian Sippl

Hi,

another problem occured:

I got the script working, which gives me certain values back from the 
catalog.
But this Time thing still doesnt work !
i have tried nearly everything. I use the procedure described in the 
zope book, but it doesnt work.

return context.cata({'content' : id,
'date' : DateTime()-7,
'date_usage' : 'range:min',
 })  

I always get back all catalog items.

Has anyone ever expierienced the same problem ?

If yes, please help me, i dont know how to proceed 

thanx

Sebastian



___
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] Tracker-Catalog

2002-07-12 Thread Sebastian Sippl

Hi,

Is there a way to access the Trackers(TrackerBase-Product) Catalog(and 
its contents) via DTML-var or Python script?
 
Sebastian



___
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] python scripts and variables

2002-03-05 Thread Sebastian Sippl

Hi,

I ve got a little problem:

I am starting a python script within a python script.

how do i pass the variables from one to the other?

(i tried setting the request variables and getting the values by the
python script but it didnt work)

it looks like this:

Python-Script:

code of python script1

container.REQUEST.set('value', '123') -I tried this but my
script didnt get the value

container.py2  Second python script should get values by the
request variable

code of python script1


Sebastian


___
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] User Name in python script

2002-02-25 Thread Sebastian Sippl

Hi,

I need to get the name of the current user , in a python script

i know how to get it in dtml , but i cant figure out how to get it in a
python script.

Please help me 

Sebastian

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