Re: [Zope] Newbie Question

2000-11-24 Thread Philipp Dunkel


> I'm probably just being dumb... :)
> 
> --
> 
> 
> 
> 
>  
 
   

>  
> 
> 
> 
> 

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] 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='http://aegis:8080/Bookmarker");'
s=s+'window.location.reload();>Click me...'
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],"")>-1): return i
  return None

def RLast(l):
  import string
  k=0
  for i in range(len(l)):
if string.find(l[i],"")>-1: k=k+1
if string.find(l[i],"")>-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,"-1):
s=l[string.find(l,"")+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,"")>-1) and (string.find(l,"")+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] 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] 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] 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 /manage)
even if I am logged in as a manager or superuser.
The strange thing is that for example /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] problems using sendmail-tag

2000-06-21 Thread Philipp Dunkel

Hi everybody.

I have a form that calls a sendmail tag to send user-feedback to a specific
email-adress.
When I try to send mail I always get the error:

Recieved error code 553 from SMTP: 553 ... Domain name required 

I know that this error occurs if the user is not allowed to send mail from
that host.
The strange thing is that my zope runs under user 'zope'.
But if I telnet to port 25 (sendmail) as user 'zope' I can send mail??

Any Ideas?

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 )




[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/

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 )




[Zope] textindex problem

2000-06-01 Thread Philipp Dunkel



Hi 
 
I have my own zClass I catalog in 
"Catalog"
my add-method does a reindex_object and everything 
works fine
when I index the 2 properties "title" and "country" 
as Keyindex or FieldIndex.
But when I index em as TextIndex, I cannot find em 
anymore.
e.g. when my property country is "italy" and I 
search for "Italy" in Fieldindex
I get the result, in TextIndex not
 
Any ideas?
 
TIA
 
phidu


[Zope] how to keep all captions in one place?

2000-05-29 Thread Philipp Dunkel

Hi

I have a big project that is developed in english.
Now I want to give this away for translating.
The problem is that until now code and text/captions are mixed.

Is there any way to store all captions/texts in one single place,
so that I could do 

 

instead of
   
   Hello

and that we only have to translate all Strings in CaptionKeeper?

What kind of objects should CaptionKeeper be?
A ZClass?

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 )