[Zope] Format problem?
hi all, when I do a insert with a ZSQLMethod in my database, in the SQLMethod I use for a field fmt=newline_to_br. Now, when I want edit this field and put the value in a textarea, I get the caracter br, but I don't want this. How can i do to hide this br when i read this field? $Regards MM ___ 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] LDAP-Zope
Hi all, In LDAP i have an object with name and passwordobject. With Zope LDAP method, can i see this password? I have a login window created in Zope and when a user will login i must control if the user exists. How can i do this? Any ideas? $Regards MM ___ 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] LDAPAdapter?
hi all, have a little problem with LDAPAdapter. I have a working directory server using LDAP protocol. When i create the LDAPAdapter in Zope it works fine, but when a user want to connect to my site, he gets an authentication error. But the user exists in the directory server. Can someone explain me how to use the LDAPAdapter correctly? $Regards MM ___ 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] Importing problems
Hi all, How can i import objects from 2.1.6 to 2.2.0? I can import them but couldn't view them, some authorization problems. Is that a known problem? Could you help out with ? Thanks a lot $Regards MM ___ 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] getslice Error?
Hi all, with this little code : dtml-in "showNSDetails(nsref=old_nsref)" start=query_start dtml-call "REQUEST.set('sdate','%s.%s.%s' % (ns_entrydate[8:],ns_entrydate[5:7],ns_entrydate[:4]))" input type="text" name="new_nsentrydate" value="dtml-var sdate" size="10" /dtml-in ns_entrydate is a field of my query. i get an getslice error: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: __getslice__ Traceback (innermost last): File D:\PROGRA~1\INTRAN~1\lib\python\ZPublisher\Publish.py, line 214, in publish_module File D:\PROGRA~1\INTRAN~1\lib\python\ZPublisher\Publish.py, line 179, in publish File D:\PROGRA~1\INTRAN~1\lib\python\Zope\__init__.py, line 202, in zpublisher_exception_hook (Object: ElementWithAttributes) File D:\PROGRA~1\INTRAN~1\lib\python\ZPublisher\Publish.py, line 165, in publish File D:\PROGRA~1\INTRAN~1\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: editNoteServiceForm_html) File D:\PROGRA~1\INTRAN~1\lib\python\ZPublisher\Publish.py, line 102, in call_object (Object: editNoteServiceForm_html) File D:\PROGRA~1\INTRAN~1\lib\python\OFS\DTMLMethod.py, line 150, in __call__ (Object: editNoteServiceForm_html) File D:\PROGRA~1\INTRAN~1\lib\python\DocumentTemplate\DT_String.py, line 502, in __call__ (Object: editNoteServiceForm_html) File D:\PROGRA~1\INTRAN~1\lib\python\DocumentTemplate\DT_In.py, line 611, in renderwb (Object: showNSDetails(nsref=old_nsref)) File D:\PROGRA~1\INTRAN~1\lib\python\DocumentTemplate\DT_Util.py, line 335, in eval (Object: REQUEST.set('sdate','%s.%s.%s' % (ns_entrydate[8:],ns_entrydate[5:7],ns_entrydate[:4]))) (Info: REQUEST) File string, line 0, in ? File D:\PROGRA~1\INTRAN~1\lib\python\DocumentTemplate\DT_Util.py, line 174, in careful_getslice File D:\PROGRA~1\INTRAN~1\lib\python\DateTime\DateTime.py, line 922, in __getattr__ AttributeError: (see above) what's wrong? Do you know where i can found information about zope erorrs, i want to know what means all these errors that we get? Thanks for your help! $Regards MM ___ 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] Date format question urgent!!!
hi all, i have a few questions about date formating: i work with a sybase database and have tables where i used date fields. My field entrydate is of type Date. on my page i have a textbox to put the date: input type="text" name="new_nsentrydate" value="01.01.2000" size="10" i will formating it as 2000/01/01 and then put it in a sql query as a parameter.For the formating i use the follow code: dtml-with "_.DateTime(new_nsentrydate)" dtml-var " '%s/%s/%s' % (year(), mm(), dd())"/dtml-with and i get 2000/01/01. Here is my dtml-code: dtml-with "_.DateTime(new_nsentrydate)" dtml-var "'%s/%s/%s' % (year(), mm(), dd())"/dtml-with dtml-with "_.DateTime(new_nsbirthday)" dtml-var "'%s/%s/%s' % (year(), mm(), dd())"/dtml-with with this code : dtml-call "insertNoteService(nsentrydate = "_.DateTime(new_nsentrydate)" '%s/%s/%s' % (year(), mm(), dd()), nsname = new_nsname, nsadresse = new_nsadresse, nslocation = new_nslocation, nscountry = new_nscountry, nsbirthday = "_.DateTime(new_nsbirthday)" '%s/%s/%s' % (year(), mm(), dd()), nsbirthplace = new_nsbirthplace, nstext = new_nstext, nsstatus = 0, nstype = new_nstype, nssociety = new_nssociety, nsservice = new_nsservice)"i get the folowing error: Invalid attribute name, "_.DateTime(new_nsentrydate)", for tag dtml-call "insertNoteService(nsentrydate = "_.DateTime(new_nsentrydate)" '%s/%s/%s' % (year(), mm(), dd()), nsname = new_nsname, nsadresse = new_nsadresse, nslocation = new_nslocation, nscountry = new_nscountry, nsbirthday = "_.DateTime(new_nsbirthday)" '%s/%s/%s' % (year(), mm(), dd()), nsbirthplace = new_nsbirthplace, nstext = new_nstext, nsstatus = 0, nstype = new_nstype, nssociety = new_nssociety, nsservice = new_nsservice)", on line 4 of addNoteService_html with this code : dtml-call "insertNoteService(nsentrydate = "_.DateTime(new_nsentrydate)" '%s/%s/%s' % (year(), mm(), dd())", nsname = new_nsname, nsadresse = new_nsadresse, nslocation = new_nslocation, nscountry = new_nscountry, nsbirthday = "_.DateTime(new_nsbirthday)" '%s/%s/%s' % (year(), mm(), dd())", nsbirthplace = new_nsbirthplace, nstext = new_nstext, nsstatus = 0, nstype = new_nstype, nssociety = new_nssociety, nsservice = new_nsservice)" i don't get Errors, but it doesn't work. Here is my sql code: INSERT INTO noteservice (ns_entrydate, ns_name, ns_adresse, ns_location, ns_country, ns_birthday, ns_birthplace, ns_text, ns_status, ns_type, ns_society, ns_service)VALUES('dtml-var nsentrydate', 'dtml-var nsname fmt=sql-quote', 'dtml-var nsadresse fmt=sql-quote', 'dtml-var nslocation fmt=sql-quote', 'dtml-var nscountry fmt=sql-quote', 'dtml-var nsbirthday','dtml-var nsbirthplace fmt=sql-quote', 'dtml-var nstext fmt=sql-quote', dtml-var nsstatus, dtml-var nstype, dtml-var nssociety, dtml-var nsservice) when i use this code : dtml-with "_.DateTime('01.01.1900')"dtml-var "'%s/%s/%s' % (year(), mm(), dd())"/dtml-with i get 1900/01/01 when i use this code : dtml-let tert="'01.01.1900'"dtml-var "_.DateTime(tert)" fmt="%Y/%m/%d"/dtml-let i get 2036/02/07 Why? when i use this code : dtml-var "_.DateTime('01.01.1900')" fmt="%Y/%m/%d" i get 2036/02/07 Why? when i use this code : dtml-var "ZopeTime('01.01.1900')" fmt="%Y/%m/%d" i get 2036/02/07 Why? Could you explain me how i must handle date fields in zope? Finally, i want formatting a date as 2000/01/01 and then put in my table with a sql method. Any suggestions or a good example will be apprecieated... $Regards MM
[Zope] What's wrong with this snippet?
hi all, i tried and searched to find the error but i couldn't solve it. Could anyone help me with this code: dtml-in "GenericSQL(SQLStatement='SELECT ns.ns_ref,ns.ns_entrydate,ns.ns_status, ns.ns_name, ns.ns_adresse, ns.ns_location FROM noteservice ns WHERE (ns.ns_entrydate='%s/%s/%s' % (sentrydate[6:],sentrydate[3:5],sentrydate[:2])) ORDER BY ns.ns_entrydate desc')" size=10 start=query_start Where i can find infos about sql calls with dtml-in? $Reagrds MM ___ 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 )