Re: [Zope] Newbie Question

2000-11-24 Thread Philipp Dunkel


 I'm probably just being dumb... :)
 
 PASTE--
 dtml-var standard_html_header
 
 p
 dtml-with News
  dtml-in objectValues
 
   dtml-var "_['sequence-item']"

  /dtml-in
 /dtml-with
 /p
 
 dtml-var standard_html_footer

this should work out for you.

cu

Philipp


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

2000-11-10 Thread Philipp Dunkel



Hi zopers,

Is there a syntax to login a user in 
python?
i use a python method to add a user to 
the
acl_user folder. When this is done I want to log 
in
the new user directly.
Is that possible?

TIA
Philipp Dunkel


[Zope] bookmark importer

2000-11-10 Thread Philipp Dunkel


Hello guys I' have here a pyton file that allows you to import your
bookmarks from IE.
The following prob is that it works on windows98 zope 2.2.2  and not on a
unix system.
The file temp.txt stays empty and you get the message 'unable to export
favourites'

anyone any idea?




def GetBookmark(self):
import string
if self.REQUEST['HTTP_USER_AGENT']=='PostFavorites':
 print self.REQUEST.cookies
file = self.REQUEST.stdin
 if file:
file.seek(0)
LBook=[]
while 1:
line = file.readline()
if not line: break
LBook.append(line)
RBookmarkList=RList(LBook[RFirst(LBook):len(LBook)])
print RBookmarkList
ftemp = open('temp.txt','w')
ftemp.write(RBookmarkList)
ftemp.close()
return 'RBookmarkList'
else:
s='A
HREF=''javascript:window.external.ImportExportFavorites(false,'
s=s+'"http://aegis:8080/Bookmarker");'
s=s+'window.location.reload();Click me.../AP'
ftemp = open('temp.txt','r')
if ftemp:
  l=ftemp.readline()
  ftemp.close()
  ftemp = open('temp.txt','w')
  ftemp.close()
  if l:
s=s+l
return s

def RFirst(l):
  import string
  for i in range(len(l)):
if (string.find(l[i],"DL")-1): return i
  return None

def RLast(l):
  import string
  k=0
  for i in range(len(l)):
if string.find(l[i],"DL")-1: k=k+1
if string.find(l[i],"/DL")-1: k=k-1
if k==0: return i

def RList(LD):
  import string
  Dict=''
  LDict=''
  iLast=0
  for i in range(len(LD)):
if i=iLast :
  l=LD[i]
  if (string.find(l,"DTA HREF")-1):
s=l[string.find(l,"A HREF")+9:len(l)]
s0=s[0:string.find(s,'"')]
s=s[string.find(s,"")+1:len(s)]
s=s[0:string.find(s,"")]
Dict='{title:"'+s+'", url:"'+s0+'"}'
if LDict=="":
  LDict=Dict
else:
  LDict=LDict+','+Dict
  if (string.find(l,"DT")-1) and (string.find(l,"A HREF")==-1):
s=l[string.find(l,"DT")+4:len(l)]
s=s[string.find(s,"")+1:len(s)]
s=s[0:string.find(s,"")]
iFirst=i+1
iLast=RLast(LD[iFirst:len(LD)])+iFirst
LDNew=RList(LD[iFirst:iLast])
Dict='{'+s+':['+LDNew+']}'
if LDict=="":
  LDict=Dict
else:
  LDict=LDict+','+Dict
  return LDict

TIA

Rishi


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] unauthorized when accessing /manage in zope 2.2.1

2000-08-28 Thread Philipp Dunkel

Hia Zopers,
I'm totally confused and I couldn't figure it out in 2 working days so here
it is:

I have a Zope Product that makes use of different nested classes.
When I create an instance of this product I always get an
"unauthorized" error when clicking the instance in the management interface
(=accessing instance/manage)
even if I am logged in as a manager or superuser.
The strange thing is that for example instance/manage_access works fine
for me.
I tried all stuph with permissions, switched acquisition on and off, added
'manage' to my permission tuple, gave everyone the right to view
management-screens and so on.
The error message says only "unauthorized"
and the traceback points to Management.py

Any Ideas?
(btw: it worked fine in 2.1.6)

thanx a lot
philipp dunkel, zReal Productions, The Hague


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

2000-08-28 Thread Philipp Dunkel

Hi Zopers,

I'm really happy that the with the newest zope releases
the zCatalog has got more stable.
I'd like to use it for my Products, but I don't have the time now to port
everything to the new zope version.
Is it possible to only use the new catalog and which files do I have to
change/update ?
Or is the catalog even as a product available?

TIA
philipp dunkel


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

2000-06-15 Thread Philipp Dunkel

Hi all,
I have simple question:

Is it possible to story properties of zclass's subobjects together with the
zclass?

TIA
 

* Philipp DunkelICQ# 60149094  *
* zReal Productions*
* meet me at DALNet chan #phidu*




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

2000-06-08 Thread Philipp Dunkel

Hi out there,

I have a Catalog that indexes ZClasses (only one type).
Now I want to show the user all Instances in a list when
they come to the page.
The user should be able to use a search form to tailor down the
amount of results, e.g. if my ZClass would handle Cars,
they first see 500 car-objects, then they specify only reds,
they get 200 results from the 500. Now they can specify a price
and again the amount goes from 200 to say 50.
This means I have to search on the results.

Does anyone have an idea how to do this?

TIA
Philipp Dunkel


* Philipp DunkelICQ# 60149094  *
* zReal Productions*
* meet me at DALNet chan #phidu*




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

2000-06-05 Thread Philipp Dunkel

At 17:23 05.06.00 +0100, Ian Sparks wrote:
Hi,

I want to produce a home-page on my site using a URL like :

http://www.zope.org/Members/Fred


I'm a little confused as to how I would go about this in a dynamic way where
I would pull the contents of the page out of a database.

A non-database way would be to :

/Members (folder)
/Fred (sub-folder or Document)
/Jim (sub-folder or Document)
/Jane (sub-folder or Document)

But I want to be able to generate the /Members/Fred page dynamically.

The SQLMethod part I can do, its the structuring of the objects in the
heriarchy which baffles me.

Ideally I'd like to have a "Members" folder in /, as this reduces the
clutter in /, but then how do I pick up the "Fred" part of the URL once I
have traversed into the members folder and apply it as part of a SQLMethod?


- Ian Sparks.

You can find a solution in the PTK-Source
************
* Philipp DunkelICQ# 60149094  *
* zReal Productions*
* meet me at DALNet chan #phidu*




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