Re: [Zope-dev] Deleting objects by the users
one small correction: the line: dtml-call expr="manage_delObjects(getId())" should read: dtml-call expr="manage_delObjects([getId(),])" as the manage_delObjects takes a list as argument hth Rik ___ 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 )
Re: [Zope-dev] Comment on CVS change of default textindex search operator
"R. David Murray" wrote: Likewise. But this is the can of worms I alluded to. Another approach would be to allow the default operator to be specified at query time grin. That would be cool :-) FWIW, I don't think the default changing is a good idea, simple 'cos it suddenly changes how a lot of sites behave, unless their maintainers go and recode them... cheers, Chris ___ 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] sql_quote problem?
Hi, When I do the following in a ZSQL Method: SELECT * from x WHERE y=dtml-sqlvar sec type=string it works fine, however, when I do: SELECT * from x WHERE y=dtml-var sec sql_quote I get: exceptions.AttributeError Traceback (innermost last): File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line 179, in publish File /usr/zope/zope-2_3_1b3/lib/python/Zope/__init__.py, line 240, in abort File /usr/zope/zope-2_3_1b3/lib/python/ZODB/Transaction.py, line 179, in abort File /usr/zope/zope-2_3_1b3/lib/python/Shared/DC/ZRDB/TM.py, line 126, in abort File /usr/zope/zope-2_3_1b3/lib/python/Shared/DC/ZRDB/TM.py, line 119, in _abort AttributeError: rollback What gives? ;-) Chris ___ 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] zserver medusa timeout? anyone?
Hi, I would like to know if ANYONE has ever put timeout parameter of ZServer/Medusa to work, i.e, if changing this timeout value to a low value and actually seen it to work, i.e, closing zombie channels. Anyone done this? I've tryed almost everything on my limited knowledge of zope/python, creating zombie requests running in a zserver with a timeout=realylowvalue but the request was never closed. Maybe I'm realy missing something here. Regards, Júlio Dinis Silva _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. ___ 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] More ZSQL weirdness (this time with Python Scripts ;-)
Hi, I had the following line in a dtml method, x_report, generated by 'Add Z Search Interface': dtml-in x ...where x is a ZSQL Method that takes one parameter: sec Now, when I try to call x_report from a python script, my_ps, as follows: return container.x_report(context,context.REQUEST,sec='XXX') ...I get the following: Error Type: Bad Request Error Value: ['sec'] ...and the only way I can stop it doing that is to change the line in x_report to read: dtml-in "x(sec=_.getitem('sec'))" ...which isn't very nice :-( Has anyone seen anything similar or should I stick this in the collector? cheers, Chris PS: Traceback (innermost last): File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/zope/zope-2_3_1b3/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: my_ps) File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: my_ps) File /usr/zope/zope-2_3_1b3/lib/python/Shared/DC/Scripts/Bindings.py, line 324, in __call__ (Object: my_ps) File /usr/zope/zope-2_3_1b3/lib/python/Shared/DC/Scripts/Bindings.py, line 353, in _bindAndExec (Object: my_ps) File /usr/zope/zope-2_3_1b3/lib/python/Products/PythonScripts/PythonScript.py, line 336, in _exec (Object: my_ps) (Info: ({'script': PythonScript instance at 9067f20, 'context': Folder instance at 90325e8, 'container': Folder instance at 90325e8, 'traverse_subpath': []}, (), {}, None)) File Script (Python), line 2, in my_ps (Object: lambda) File /usr/zope/zope-2_3_1b3/lib/python/OFS/DTMLMethod.py, line 189, in __call__ (Object: x_report) File /usr/zope/zope-2_3_1b3/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: x_report) File /usr/zope/zope-2_3_1b3/lib/python/DocumentTemplate/DT_In.py, line 646, in renderwob (Object: x) File /usr/zope/zope-2_3_1b3/lib/python/Shared/DC/ZRDB/DA.py, line 476, in __call__ (Object: x) File /usr/zope/zope-2_3_1b3/lib/python/Shared/DC/ZRDB/Aqueduct.py, line 150, in _argdata (Object: x) Bad Request: (see above) ___ 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 )
Re: [Zope-dev] Deleting objects by the users
Rik Hoekstra wrote: one small correction: the line: dtml-call expr="manage_delObjects(getId())" should read: dtml-call expr="manage_delObjects([getId(),])" as the manage_delObjects takes a list as argument hth Rik Actually manage_delObjects will take a string argument if it is a single id. However a list with one item is also acceptable. Although you can declare a list with the trailing comma, it is not strictly necessary. That is only necessary for tuples because parens have double meaning in Python. List brackets are unambiguous. -- | Casey Duncan | Kaivo, Inc. | [EMAIL PROTECTED] `-- ___ 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 )
Re: [Zope-dev] sql_quote problem?
Chris Withers wrote: Hi, When I do the following in a ZSQL Method: SELECT * from x WHERE y=dtml-sqlvar sec type=string it works fine, however, when I do: SELECT * from x WHERE y=dtml-var sec sql_quote I get: exceptions.AttributeError Traceback (innermost last): File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line 179, in publish File /usr/zope/zope-2_3_1b3/lib/python/Zope/__init__.py, line 240, in abort File /usr/zope/zope-2_3_1b3/lib/python/ZODB/Transaction.py, line 179, in abort File /usr/zope/zope-2_3_1b3/lib/python/Shared/DC/ZRDB/TM.py, line 126, in abort File /usr/zope/zope-2_3_1b3/lib/python/Shared/DC/ZRDB/TM.py, line 119, in _abort AttributeError: rollback What gives? ;-) Chris It looks like the DA is trying to do a rollback, but tanking (perhaps a bug in the DA). Those two operations are different however. dtml-sqlvar adds quotes around the value, whereas dtml-var does not even with sql_quote. So the output SQL of the two respective examples you gave would be: SELECT * from x WHERE y='value' SELECT * from x WHERE y=value -- | Casey Duncan | Kaivo, Inc. | [EMAIL PROTECTED] `-- ___ 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 )
Re: [Zope-dev] sql_quote problem?
Casey Duncan wrote: sql_quote. So the output SQL of the two respective examples you gave would be: SELECT * from x WHERE y='value' SELECT * from x WHERE y=value Okay, so dtml-var sec sql_quote is broken? ;-) cheers, Chris ___ 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 )
Re: [Zope-dev] sql_quote problem?
Chris Withers wrote: Casey Duncan wrote: sql_quote. So the output SQL of the two respective examples you gave would be: SELECT * from x WHERE y='value' SELECT * from x WHERE y=value Okay, so dtml-var sec sql_quote is broken? ;-) cheers, Chris No, that behavior is intentional. dtml-var has no way of knowing the intended type of the value like sql-var does, so it makes no assumptions. What I think is confusing you is the name 'sql_quote'. This refers to escaping SQL significant characters (like ' or ;) not putting quotes around the output. It is analagous to the html_quote and url_quote options. Because of this, dtml-var can be used places that sql-var cannot. For instance you could use it to affect different parts of the SQL other than just the WHERE clause, such as the ORDER BY clause for example. -- | Casey Duncan | Kaivo, Inc. | [EMAIL PROTECTED] `-- ___ 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 )
Re: [Zope-dev] Deleting objects by the users
On Thu, 22 Mar 2001, Rik Hoekstra wrote: one small correction: the line: dtml-call expr="manage_delObjects(getId())" should read: dtml-call expr="manage_delObjects([getId(),])" as the manage_delObjects takes a list as argument Well, but the other would work, since the first line of manage_delObjects is: if type(ids) is type(''): ids=[ids] I can't decide whether I think that's a good thing or not wry grin. --RDM ___ 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] Running out of single letters for z2.py command options
Hi, When I released ZServerSSL for Zope 2.1.x, I used "-W" for HTTPS and "-M" for the encrypting monitor on z2(s).py's command line. For Zope 2.3.0, "-W" has been taken by WebDav; "-x" happens to be free, so I use that for HTTPS. I haven't checked if "-M" is taken. (I intend to build an SRP-based[1] encrypting monitor.) Can I, um, kinda reserve some letters for my crypto options to z2.py? ;-) More seriously, I think soon z2.py must go to long options, i.e., "z2.py --this --that=42". Or, use snippets written in Python for config. How soon is that? Cheers. [1] SRP - Secure Remote Protocol, one of a class of so-called "strong password protocols". http://srp.stanford.edu, I think. -- Ng Pheng Siong [EMAIL PROTECTED] * http://www.post1.com/home/ngps ___ 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 )
Re: [Zope-dev] Compiling new Splitter.c on Windows
Shame to hear HireTechs arent doing to well. I must confess I havent used that splitter.c on windows, its just sat there and I just havent gotten around to it, one day along with all the other stuff I have to do... Erm nice name btw. -- Andy McKay. - Original Message - From: "Big John Holmes" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 22, 2001 8:37 AM Subject: [Zope-dev] Compiling new Splitter.c on Windows Howdy all. It's been a while since I've posted because the company I used to work for is sliding into the sludge. So I'm working on my own now! Unfortunately that means I have to use Windows with Zope. Since I have no experience in this area I'll cut to the chase. I have aSplitter.c file written that works under linux, and I'd like to use it under Windows. How do I do it. I tried compiling the source distribution off Zope.org, but wo_pcgi.py starts and dies. What's the secret? All my best, Jason Spisak __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ ___ 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 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] Compiling Zope from source on Windows
What I'm really looking for is how to compile Zope from source on Windoze. Anybody? Shame to hear HireTechs arent doing to well. Mismanagement. The company should be doing fine. They president just screwed things up. Erm nice name btw. Thanks. -- Andy McKay. - Original Message - From: "Big John Holmes" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 22, 2001 8:37 AM Subject: [Zope-dev] Compiling new Splitter.c on Windows Howdy all. It's been a while since I've posted because the company I used to work for is sliding into the sludge. So I'm working on my own now! Unfortunately that means I have to use Windows with Zope. Since I have no experience in this area I'll cut to the chase. I have aSplitter.c file written that works under linux, and I'd like to use it under Windows. How do I do it. I tried compiling the source distribution off Zope.org, but wo_pcgi.py starts and dies. What's the secret? All my best, Jason Spisak __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ ___ 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 ) __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ ___ 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] Re: Compiling Zope from source on Windows
I tried that once with Python 2.0 in the mix as well. I gave in after some frustration, mostly related to 2.0 issues so I cant really give any help there. Sorry -- Andy McKay. - Original Message - From: "Big John Holmes" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: "Andy McKay" [EMAIL PROTECTED] Sent: Thursday, March 22, 2001 9:22 AM Subject: Compiling Zope from source on Windows What I'm really looking for is how to compile Zope from source on Windoze. Anybody? Shame to hear HireTechs arent doing to well. Mismanagement. The company should be doing fine. They president just screwed things up. Erm nice name btw. Thanks. -- Andy McKay. - Original Message - From: "Big John Holmes" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 22, 2001 8:37 AM Subject: [Zope-dev] Compiling new Splitter.c on Windows Howdy all. It's been a while since I've posted because the company I used to work for is sliding into the sludge. So I'm working on my own now! Unfortunately that means I have to use Windows with Zope. Since I have no experience in this area I'll cut to the chase. I have aSplitter.c file written that works under linux, and I'd like to use it under Windows. How do I do it. I tried compiling the source distribution off Zope.org, but wo_pcgi.py starts and dies. What's the secret? All my best, Jason Spisak __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ ___ 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 ) __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ ___ 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 )
Re: [Zope-dev] More ZSQL weirdness (this time with Python Scripts ;-)
Chris Withers writes: I had the following line in a dtml method, x_report, generated by 'Add Z Search Interface': dtml-in x where x is a ZSQL Method that takes one parameter: sec Now, when I try to call x_report from a python script, my_ps, as follows: return container.x_report(context,context.REQUEST,sec='XXX') I get the following: Error Type: Bad Request Error Value: ['sec'] This is an old one ZSQL method's do not use the DTML namespace (where you "sec" goes to) to find their arguments: The prototype is as follows: def __call__(self, REQUEST=None, __ick__=None, src__=0, test__=0, **kw) If the second parameter (REQUEST) is passed, it should be a dictionary and it is used to find the parameters. Otherwise, if keywords arguments are provided, the keyword dict is used. Otherwise, "REQUEST" is obtained by acquisition and used. Otherwise, "{}" is used. In the future, Z SQL methods may perhaps use the new "namespace" passing mechanism (feature request for the Locator?). But currently, they behave as said above. Dieter ___ 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] What does DC use to compile Splitter.c on Windows?
Can someone from DC tell me what they use to come up with the binary version of the Splitter on Windoze. I am trying to get the Catalog to recognize "C++" on Win32. I have posted the Splitter.c file to my home page http://www.zope.org/Members/jspisak/Splitter Can anyone give me a clue as to how to make a working Splitter.pyd out of this file on Windoze. Thanks in advance! Jason Spisak __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ ___ 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 )
Re: [Zope-dev] What does DC use to compile Splitter.c on Windows?
Brian holds the knowledge to compile Zope under Windows somewhere deep in his subconscious. Every time someone asks him, his eyes roll back in his head. ;-) Nobody else has ever successfully done it, AFAIK (including me!). I know we use VC++ and a little batch file called ext15.bat, which Brian had previously sent to the dev list. Other than that... well... good luck! - Original Message - From: "resefficient..." [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 22, 2001 4:36 PM Subject: [Zope-dev] What does DC use to compile Splitter.c on Windows? Can someone from DC tell me what they use to come up with the binary version of the Splitter on Windoze. I am trying to get the Catalog to recognize "C++" on Win32. I have posted the Splitter.c file to my home page http://www.zope.org/Members/jspisak/Splitter Can anyone give me a clue as to how to make a working Splitter.pyd out of this file on Windoze. Thanks in advance! Jason Spisak __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ ___ 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 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 )
Re: [Zope-dev] What does DC use to compile Splitter.c on Windows?
Hopefully I will have a present related to this tomorrow. rats... I got so close to getting this working too ;-) Chris ___ 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 )
Re: [Zope-dev] What does DC use to compile Splitter.c on Windows?
Here we go maybe How to: get Python 1.5.2 source and build it. get Zope source put ext15.py somewhere in your path then call d:\Python-1.5.2\python d:\Zope-2.3.0-src\ext15.py -p d:\Python-1.5.2 you need to specify the source of your python and you may need to move a few files within python to get it looking at the right files. totally untested pyd but Visual Studio 6.0 didnt complain HTH -- Andy McKay. - Original Message - From: "resefficient..." [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 22, 2001 1:36 PM Subject: [Zope-dev] What does DC use to compile Splitter.c on Windows? Can someone from DC tell me what they use to come up with the binary version of the Splitter on Windoze. I am trying to get the Catalog to recognize "C++" on Win32. I have posted the Splitter.c file to my home page http://www.zope.org/Members/jspisak/Splitter Can anyone give me a clue as to how to make a working Splitter.pyd out of this file on Windoze. Thanks in advance! Jason Spisak __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ ___ 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 ) Splitter.pyd Splitter.def Splitter.mak Splitter.c '''Build t Python extension using Visual C++ 40 This script generates and runs a series of .mak and .def files for extensions defined in a Setup file. Note that you must have set up your environment to run VC command-line ustilities. This can be done by running the vcvar32.bat file in the VC++ bin directory. Usage: python ext.py [options] Options: -r Run nmake to build release version -d Run nmake to build debug version -c If used with -r or -d, runs nmake on clean target. -p Specify location of Python source tree. Default is ..\.. (assuming you are in Extensions/some_name) The script reads a file named "Setup" in the current directory. The Setup file has lines that describe the contents of an extension. Here\'s an example: ExtensionClass ExtensionClass.c Acquisition Acquisition.c Note that I\'ve intented for readability. The Setup file shouldn\'t be indented. Basically, the first token on the line is the module name, and the second token on the line is the sorce file. Additional source files and include directories may be included as well, as in: pyexpat pyexpat.c -DXML_NS -Iexpat/xmlparse -Iexpat/xmltok expat/xmlparse/xmlparse.c expat/xmlparse/hashtable.c expat/xmltok/xmlrole.c expat/xmltok/xmltok.c ''' # ' import sys, getopt, os, string, regex def die(m): print m print print __doc__ sys.exit(1) def setup(): poptlist,pargs=getopt.getopt(sys.argv[1:],'p:drcI:o:h') if opt(poptlist,'h'): print __doc__ if poptlist==[('-h','')]: sys.exit(0) pargs and die('Unrecognized arguments: %s', string.join(args)) ext_regex = regex.compile('\([a-z][a-z0-9_]*\)[ \t]' '\([.a-z][./a-z0-9_]*[.]c\)[ \t\n]', regex.casefold) for line in open('Setup').readlines(): if ext_regex.match(line) = 0: sargs=string.split(line) module=sargs[0] src=sargs[1] if src[:2]=='./': continue soptlist, sargs = getopt.getopt(sargs[2:],'I:D:') filter(lambda a: a[:1]=='-' or string.find(a,'.') 0, sargs) and die('Invalid arguments in Setup file: %s' % string.join(sargs)) sargs=map(lambda a: string.replace(a, '/','\\'), sargs) simple(module,poptlist+soptlist, sargs) main=setup def filebase(o, splitext=os.path.splitext, split=os.path.split): return splitext(split(o)[1])[0] def simple(module,optlist,others): tdef,tmak=templates() pyhome=opt(optlist,'p') pyhome=pyhome and pyhome[0] or '..\\..' cfg=opt(optlist,'d') and 'Debug' or 'Release' parms={'module': module, 'pyhome':pyhome, 'cfg': cfg} parms['includes']=string.join( map(lambda i: '/I "%s"' % i, opt(optlist,'I')) + map(lambda i: '/D "%s"' % i, opt(optlist,'D')) , ' ') parms['other_clean_release']=string.join( map(lambda o: '\n\t-@erase ".\\Release\\%s.obj"' % filebase(o), others),'') parms['other_clean_debug']=string.join( map(lambda o:
Re: [Zope-dev] What does DC use to compile Splitter.c on Windows?
I just got back into my office and low and behold! Andy, you shouldn't have...but I'm glad you did. :) I'll test it out. I can't wait to see what Chris M. has up his sleeve. --- Andy McKay [EMAIL PROTECTED] wrote: Here we go maybe How to: get Python 1.5.2 source and build it. get Zope source put ext15.py somewhere in your path then call d:\Python-1.5.2\python d:\Zope-2.3.0-src\ext15.py -p d:\Python-1.5.2 you need to specify the source of your python and you may need to move a few files within python to get it looking at the right files. totally untested pyd but Visual Studio 6.0 didnt complain HTH -- Andy McKay. - Original Message - From: "resefficient..." [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 22, 2001 1:36 PM Subject: [Zope-dev] What does DC use to compile Splitter.c on Windows? Can someone from DC tell me what they use to come up with the binary version of the Splitter on Windoze. I am trying to get the Catalog to recognize "C++" on Win32. I have posted the Splitter.c file to my home page http://www.zope.org/Members/jspisak/Splitter Can anyone give me a clue as to how to make a working Splitter.pyd out of this file on Windoze. Thanks in advance! Jason Spisak __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ ___ 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 ) ATTACHMENT part 2 application/octet-stream name=Splitter.pyd ATTACHMENT part 3 application/octet-stream name=Splitter.def ATTACHMENT part 4 application/octet-stream name=Splitter.mak ATTACHMENT part 5 application/octet-stream name=Splitter.c '''Build t Python extension using Visual C++ 40 This script generates and runs a series of .mak and .def files for extensions defined in a Setup file. Note that you must have set up your environment to run VC command-line ustilities. This can be done by running the vcvar32.bat file in the VC++ bin directory. Usage: python ext.py [options] Options: -r Run nmake to build release version -d Run nmake to build debug version -c If used with -r or -d, runs nmake on clean target. -p Specify location of Python source tree. Default is ..\.. (assuming you are in Extensions/some_name) The script reads a file named "Setup" in the current directory. The Setup file has lines that describe the contents of an extension. Here\'s an example: ExtensionClass ExtensionClass.c Acquisition Acquisition.c Note that I\'ve intented for readability. The Setup file shouldn\'t be indented. Basically, the first token on the line is the module name, and the second token on the line is the sorce file. Additional source files and include directories may be included as well, as in: pyexpat pyexpat.c -DXML_NS -Iexpat/xmlparse -Iexpat/xmltok expat/xmlparse/xmlparse.c expat/xmlparse/hashtable.c expat/xmltok/xmlrole.c expat/xmltok/xmltok.c ''' # ' import sys, getopt, os, string, regex def die(m): print m print print __doc__ sys.exit(1) def setup(): poptlist,pargs=getopt.getopt(sys.argv[1:],'p:drcI:o:h') if opt(poptlist,'h'): print __doc__ if poptlist==[('-h','')]: sys.exit(0) pargs and die('Unrecognized arguments: %s', string.join(args)) ext_regex = regex.compile('\([a-z][a-z0-9_]*\)[ \t]' '\([.a-z][./a-z0-9_]*[.]c\)[ \t\n]', regex.casefold) for line in open('Setup').readlines(): if ext_regex.match(line) = 0: sargs=string.split(line) module=sargs[0] src=sargs[1] if src[:2]=='./': continue soptlist, sargs = getopt.getopt(sargs[2:],'I:D:') filter(lambda a: a[:1]=='-' or string.find(a,'.') 0, sargs) and die('Invalid arguments in Setup file: %s' % string.join(sargs)) sargs=map(lambda a: string.replace(a, '/','\\'), sargs) simple(module,poptlist+soptlist, sargs) main=setup def filebase(o, splitext=os.path.splitext, split=os.path.split): return splitext(split(o)[1])[0] def simple(module,optlist,others): tdef,tmak=templates() pyhome=opt(optlist,'p') pyhome=pyhome and pyhome[0] or '..\\..' cfg=opt(optlist,'d') and 'Debug' or 'Release' parms={'module': module, 'pyhome':pyhome, 'cfg': cfg} parms['includes']=string.join( map(lambda i:
Re: [Zope-dev] What does DC use to compile Splitter.c on Windows?
No problem... hope it works. -- Andy McKay. - Original Message - From: "resefficient..." [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, March 22, 2001 3:43 PM Subject: Re: [Zope-dev] What does DC use to compile Splitter.c on Windows? I just got back into my office and low and behold! Andy, you shouldn't have...but I'm glad you did. :) I'll test it out. I can't wait to see what Chris M. has up his sleeve. --- Andy McKay [EMAIL PROTECTED] wrote: Here we go maybe How to: get Python 1.5.2 source and build it. get Zope source put ext15.py somewhere in your path then call d:\Python-1.5.2\python d:\Zope-2.3.0-src\ext15.py -p d:\Python-1.5.2 you need to specify the source of your python and you may need to move a few files within python to get it looking at the right files. totally untested pyd but Visual Studio 6.0 didnt complain HTH -- Andy McKay. - Original Message - From: "resefficient..." [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 22, 2001 1:36 PM Subject: [Zope-dev] What does DC use to compile Splitter.c on Windows? Can someone from DC tell me what they use to come up with the binary version of the Splitter on Windoze. I am trying to get the Catalog to recognize "C++" on Win32. I have posted the Splitter.c file to my home page http://www.zope.org/Members/jspisak/Splitter Can anyone give me a clue as to how to make a working Splitter.pyd out of this file on Windoze. Thanks in advance! Jason Spisak __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ ___ 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 ) ATTACHMENT part 2 application/octet-stream name=Splitter.pyd ATTACHMENT part 3 application/octet-stream name=Splitter.def ATTACHMENT part 4 application/octet-stream name=Splitter.mak ATTACHMENT part 5 application/octet-stream name=Splitter.c '''Build t Python extension using Visual C++ 40 This script generates and runs a series of .mak and .def files for extensions defined in a Setup file. Note that you must have set up your environment to run VC command-line ustilities. This can be done by running the vcvar32.bat file in the VC++ bin directory. Usage: python ext.py [options] Options: -r Run nmake to build release version -d Run nmake to build debug version -c If used with -r or -d, runs nmake on clean target. -p Specify location of Python source tree. Default is ..\.. (assuming you are in Extensions/some_name) The script reads a file named "Setup" in the current directory. The Setup file has lines that describe the contents of an extension. Here\'s an example: ExtensionClass ExtensionClass.c Acquisition Acquisition.c Note that I\'ve intented for readability. The Setup file shouldn\'t be indented. Basically, the first token on the line is the module name, and the second token on the line is the sorce file. Additional source files and include directories may be included as well, as in: pyexpat pyexpat.c -DXML_NS -Iexpat/xmlparse -Iexpat/xmltok expat/xmlparse/xmlparse.c expat/xmlparse/hashtable.c expat/xmltok/xmlrole.c expat/xmltok/xmltok.c ''' # ' import sys, getopt, os, string, regex def die(m): print m print print __doc__ sys.exit(1) def setup(): poptlist,pargs=getopt.getopt(sys.argv[1:],'p:drcI:o:h') if opt(poptlist,'h'): print __doc__ if poptlist==[('-h','')]: sys.exit(0) pargs and die('Unrecognized arguments: %s', string.join(args)) ext_regex = regex.compile('\([a-z][a-z0-9_]*\)[ \t]' '\([.a-z][./a-z0-9_]*[.]c\)[ \t\n]', regex.casefold) for line in open('Setup').readlines(): if ext_regex.match(line) = 0: sargs=string.split(line) module=sargs[0] src=sargs[1] if src[:2]=='./': continue soptlist, sargs = getopt.getopt(sargs[2:],'I:D:') filter(lambda a: a[:1]=='-' or string.find(a,'.') 0, sargs) and die('Invalid arguments in Setup file: %s' % string.join(sargs)) sargs=map(lambda a: string.replace(a, '/','\\'), sargs) simple(module,poptlist+soptlist, sargs) main=setup def filebase(o, splitext=os.path.splitext,
Re: [Zope-dev] What does DC use to compile Splitter.c on Windows?
If this already posted, I'm sorry. I'm useing this damn yahoo mail until I get my servers up and running. I just got back into my office and low and behold! Andy, you shouldn't have...but I'm glad you did. :) I'll test it out. I can't wait to see what Chris has up his sleeve. --- Andy McKay [EMAIL PROTECTED] wrote: Here we go maybe How to: get Python 1.5.2 source and build it. get Zope source put ext15.py somewhere in your path then call d:\Python-1.5.2\python d:\Zope-2.3.0-src\ext15.py -p d:\Python-1.5.2 you need to specify the source of your python and you may need to move a few files within python to get it looking at the right files. totally untested pyd but Visual Studio 6.0 didnt complain HTH -- Andy McKay. - Original Message - From: "resefficient..." [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 22, 2001 1:36 PM Subject: [Zope-dev] What does DC use to compile Splitter.c on Windows? Can someone from DC tell me what they use to come up with the binary version of the Splitter on Windoze. I am trying to get the Catalog to recognize "C++" on Win32. I have posted the Splitter.c file to my home page http://www.zope.org/Members/jspisak/Splitter Can anyone give me a clue as to how to make a working Splitter.pyd out of this file on Windoze. Thanks in advance! Jason Spisak __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ ___ 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 ) ATTACHMENT part 2 application/octet-stream name=Splitter.pyd ATTACHMENT part 3 application/octet-stream name=Splitter.def ATTACHMENT part 4 application/octet-stream name=Splitter.mak ATTACHMENT part 5 application/octet-stream name=Splitter.c '''Build t Python extension using Visual C++ 40 This script generates and runs a series of .mak and .def files for extensions defined in a Setup file. Note that you must have set up your environment to run VC command-line ustilities. This can be done by running the vcvar32.bat file in the VC++ bin directory. Usage: python ext.py [options] Options: -r Run nmake to build release version -d Run nmake to build debug version -c If used with -r or -d, runs nmake on clean target. -p Specify location of Python source tree. Default is ..\.. (assuming you are in Extensions/some_name) The script reads a file named "Setup" in the current directory. The Setup file has lines that describe the contents of an extension. Here\'s an example: ExtensionClass ExtensionClass.c Acquisition Acquisition.c Note that I\'ve intented for readability. The Setup file shouldn\'t be indented. Basically, the first token on the line is the module name, and the second token on the line is the sorce file. Additional source files and include directories may be included as well, as in: pyexpat pyexpat.c -DXML_NS -Iexpat/xmlparse -Iexpat/xmltok expat/xmlparse/xmlparse.c expat/xmlparse/hashtable.c expat/xmltok/xmlrole.c expat/xmltok/xmltok.c ''' # ' import sys, getopt, os, string, regex def die(m): print m print print __doc__ sys.exit(1) def setup(): poptlist,pargs=getopt.getopt(sys.argv[1:],'p:drcI:o:h') if opt(poptlist,'h'): print __doc__ if poptlist==[('-h','')]: sys.exit(0) pargs and die('Unrecognized arguments: %s', string.join(args)) ext_regex = regex.compile('\([a-z][a-z0-9_]*\)[ \t]' '\([.a-z][./a-z0-9_]*[.]c\)[ \t\n]', regex.casefold) for line in open('Setup').readlines(): if ext_regex.match(line) = 0: sargs=string.split(line) module=sargs[0] src=sargs[1] if src[:2]=='./': continue soptlist, sargs = getopt.getopt(sargs[2:],'I:D:') filter(lambda a: a[:1]=='-' or string.find(a,'.') 0, sargs) and die('Invalid arguments in Setup file: %s' % string.join(sargs)) sargs=map(lambda a: string.replace(a, '/','\\'), sargs) simple(module,poptlist+soptlist, sargs) main=setup def filebase(o, splitext=os.path.splitext, split=os.path.split): return splitext(split(o)[1])[0] def simple(module,optlist,others): tdef,tmak=templates() pyhome=opt(optlist,'p') pyhome=pyhome and pyhome[0] or '..\\..' cfg=opt(optlist,'d') and 'Debug' or 'Release'
[Zope-dev] Sorry about the multiple mails
Very sorry about the multiple emails. Yahoomail gave me no indication that they were actually being sent. Sorry to all. Thanks again Andy, Jason Spisak --- Andy McKay [EMAIL PROTECTED] wrote: No problem... hope it works. -- Andy McKay. - Original Message - From: "resefficient..." [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, March 22, 2001 3:43 PM Subject: Re: [Zope-dev] What does DC use to compile Splitter.c on Windows? I just got back into my office and low and behold! Andy, you shouldn't have...but I'm glad you did. :) I'll test it out. I can't wait to see what Chris M. has up his sleeve. --- Andy McKay [EMAIL PROTECTED] wrote: Here we go maybe How to: get Python 1.5.2 source and build it. get Zope source put ext15.py somewhere in your path then call d:\Python-1.5.2\python d:\Zope-2.3.0-src\ext15.py -p d:\Python-1.5.2 you need to specify the source of your python and you may need to move a few files within python to get it looking at the right files. totally untested pyd but Visual Studio 6.0 didnt complain HTH -- Andy McKay. - Original Message - From: "resefficient..." [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 22, 2001 1:36 PM Subject: [Zope-dev] What does DC use to compile Splitter.c on Windows? Can someone from DC tell me what they use to come up with the binary version of the Splitter on Windoze. I am trying to get the Catalog to recognize "C++" on Win32. I have posted the Splitter.c file to my home page http://www.zope.org/Members/jspisak/Splitter Can anyone give me a clue as to how to make a working Splitter.pyd out of this file on Windoze. Thanks in advance! Jason Spisak __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ ___ 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 ) ATTACHMENT part 2 application/octet-stream name=Splitter.pyd ATTACHMENT part 3 application/octet-stream name=Splitter.def ATTACHMENT part 4 application/octet-stream name=Splitter.mak ATTACHMENT part 5 application/octet-stream name=Splitter.c '''Build t Python extension using Visual C++ 40 This script generates and runs a series of .mak and .def files for extensions defined in a Setup file. Note that you must have set up your environment to run VC command-line ustilities. This can be done by running the vcvar32.bat file in the VC++ bin directory. Usage: python ext.py [options] Options: -r Run nmake to build release version -d Run nmake to build debug version -c If used with -r or -d, runs nmake on clean target. -p Specify location of Python source tree. Default is ..\.. (assuming you are in Extensions/some_name) The script reads a file named "Setup" in the current directory. The Setup file has lines that describe the contents of an extension. Here\'s an example: ExtensionClass ExtensionClass.c Acquisition Acquisition.c Note that I\'ve intented for readability. The Setup file shouldn\'t be indented. Basically, the first token on the line is the module name, and the second token on the line is the sorce file. Additional source files and include directories may be included as well, as in: pyexpat pyexpat.c -DXML_NS -Iexpat/xmlparse -Iexpat/xmltok expat/xmlparse/xmlparse.c expat/xmlparse/hashtable.c expat/xmltok/xmlrole.c expat/xmltok/xmltok.c ''' # ' import sys, getopt, os, string, regex def die(m): print m print print __doc__ sys.exit(1) def setup(): poptlist,pargs=getopt.getopt(sys.argv[1:],'p:drcI:o:h') if opt(poptlist,'h'): print __doc__ if poptlist==[('-h','')]: sys.exit(0) pargs and die('Unrecognized arguments: %s', string.join(args)) === message truncated === __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ ___ 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
[Zope-dev] It worked! [Andy rocks]
You are terrific Andy. Thanks a ton. I've been busting my ass with cygwin and all kinds of Windoze junk. What a nightmare. I hope you find good use for the hack. All my best, Jason Spisak --- Andy McKay [EMAIL PROTECTED] wrote: Here we go maybe How to: get Python 1.5.2 source and build it. get Zope source put ext15.py somewhere in your path then call d:\Python-1.5.2\python d:\Zope-2.3.0-src\ext15.py -p d:\Python-1.5.2 you need to specify the source of your python and you may need to move a few files within python to get it looking at the right files. totally untested pyd but Visual Studio 6.0 didnt complain HTH -- Andy McKay. - Original Message - From: "resefficient..." [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 22, 2001 1:36 PM Subject: [Zope-dev] What does DC use to compile Splitter.c on Windows? Can someone from DC tell me what they use to come up with the binary version of the Splitter on Windoze. I am trying to get the Catalog to recognize "C++" on Win32. I have posted the Splitter.c file to my home page http://www.zope.org/Members/jspisak/Splitter Can anyone give me a clue as to how to make a working Splitter.pyd out of this file on Windoze. Thanks in advance! Jason Spisak __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ ___ 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 ) ATTACHMENT part 2 application/octet-stream name=Splitter.pyd ATTACHMENT part 3 application/octet-stream name=Splitter.def ATTACHMENT part 4 application/octet-stream name=Splitter.mak ATTACHMENT part 5 application/octet-stream name=Splitter.c '''Build t Python extension using Visual C++ 40 This script generates and runs a series of .mak and .def files for extensions defined in a Setup file. Note that you must have set up your environment to run VC command-line ustilities. This can be done by running the vcvar32.bat file in the VC++ bin directory. Usage: python ext.py [options] Options: -r Run nmake to build release version -d Run nmake to build debug version -c If used with -r or -d, runs nmake on clean target. -p Specify location of Python source tree. Default is ..\.. (assuming you are in Extensions/some_name) The script reads a file named "Setup" in the current directory. The Setup file has lines that describe the contents of an extension. Here\'s an example: ExtensionClass ExtensionClass.c Acquisition Acquisition.c Note that I\'ve intented for readability. The Setup file shouldn\'t be indented. Basically, the first token on the line is the module name, and the second token on the line is the sorce file. Additional source files and include directories may be included as well, as in: pyexpat pyexpat.c -DXML_NS -Iexpat/xmlparse -Iexpat/xmltok expat/xmlparse/xmlparse.c expat/xmlparse/hashtable.c expat/xmltok/xmlrole.c expat/xmltok/xmltok.c ''' # ' import sys, getopt, os, string, regex def die(m): print m print print __doc__ sys.exit(1) def setup(): poptlist,pargs=getopt.getopt(sys.argv[1:],'p:drcI:o:h') if opt(poptlist,'h'): print __doc__ if poptlist==[('-h','')]: sys.exit(0) pargs and die('Unrecognized arguments: %s', string.join(args)) ext_regex = regex.compile('\([a-z][a-z0-9_]*\)[ \t]' '\([.a-z][./a-z0-9_]*[.]c\)[ \t\n]', regex.casefold) for line in open('Setup').readlines(): if ext_regex.match(line) = 0: sargs=string.split(line) module=sargs[0] src=sargs[1] if src[:2]=='./': continue soptlist, sargs = getopt.getopt(sargs[2:],'I:D:') filter(lambda a: a[:1]=='-' or string.find(a,'.') 0, sargs) and die('Invalid arguments in Setup file: %s' % string.join(sargs)) sargs=map(lambda a: string.replace(a, '/','\\'), sargs) simple(module,poptlist+soptlist, sargs) main=setup def filebase(o, splitext=os.path.splitext, split=os.path.split): return splitext(split(o)[1])[0] def simple(module,optlist,others): tdef,tmak=templates() pyhome=opt(optlist,'p') pyhome=pyhome and pyhome[0] or '..\\..' cfg=opt(optlist,'d') and 'Debug' or 'Release' parms={'module': module, 'pyhome':pyhome, 'cfg': cfg} parms['includes']=string.join(
Re: [Zope-dev] It worked! [Andy rocks]
Hey no problem, glad it works. Thanks to Brian for sending me all that stuff a while ago... -- Andy McKay. - Original Message - From: "resefficient..." [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED]; [EMAIL PROTECTED] Cc: "Chris McDonough" [EMAIL PROTECTED] Sent: Thursday, March 22, 2001 3:57 PM Subject: [Zope-dev] It worked! [Andy rocks] You are terrific Andy. Thanks a ton. I've been busting my ass with cygwin and all kinds of Windoze junk. What a nightmare. I hope you find good use for the hack. All my best, Jason Spisak --- Andy McKay [EMAIL PROTECTED] wrote: Here we go maybe How to: get Python 1.5.2 source and build it. get Zope source put ext15.py somewhere in your path then call d:\Python-1.5.2\python d:\Zope-2.3.0-src\ext15.py -p d:\Python-1.5.2 you need to specify the source of your python and you may need to move a few files within python to get it looking at the right files. totally untested pyd but Visual Studio 6.0 didnt complain HTH -- Andy McKay. - Original Message - From: "resefficient..." [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 22, 2001 1:36 PM Subject: [Zope-dev] What does DC use to compile Splitter.c on Windows? Can someone from DC tell me what they use to come up with the binary version of the Splitter on Windoze. I am trying to get the Catalog to recognize "C++" on Win32. I have posted the Splitter.c file to my home page http://www.zope.org/Members/jspisak/Splitter Can anyone give me a clue as to how to make a working Splitter.pyd out of this file on Windoze. Thanks in advance! Jason Spisak __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ ___ 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 ) ATTACHMENT part 2 application/octet-stream name=Splitter.pyd ATTACHMENT part 3 application/octet-stream name=Splitter.def ATTACHMENT part 4 application/octet-stream name=Splitter.mak ATTACHMENT part 5 application/octet-stream name=Splitter.c '''Build t Python extension using Visual C++ 40 This script generates and runs a series of .mak and .def files for extensions defined in a Setup file. Note that you must have set up your environment to run VC command-line ustilities. This can be done by running the vcvar32.bat file in the VC++ bin directory. Usage: python ext.py [options] Options: -r Run nmake to build release version -d Run nmake to build debug version -c If used with -r or -d, runs nmake on clean target. -p Specify location of Python source tree. Default is ..\.. (assuming you are in Extensions/some_name) The script reads a file named "Setup" in the current directory. The Setup file has lines that describe the contents of an extension. Here\'s an example: ExtensionClass ExtensionClass.c Acquisition Acquisition.c Note that I\'ve intented for readability. The Setup file shouldn\'t be indented. Basically, the first token on the line is the module name, and the second token on the line is the sorce file. Additional source files and include directories may be included as well, as in: pyexpat pyexpat.c -DXML_NS -Iexpat/xmlparse -Iexpat/xmltok expat/xmlparse/xmlparse.c expat/xmlparse/hashtable.c expat/xmltok/xmlrole.c expat/xmltok/xmltok.c ''' # ' import sys, getopt, os, string, regex def die(m): print m print print __doc__ sys.exit(1) def setup(): poptlist,pargs=getopt.getopt(sys.argv[1:],'p:drcI:o:h') if opt(poptlist,'h'): print __doc__ if poptlist==[('-h','')]: sys.exit(0) pargs and die('Unrecognized arguments: %s', string.join(args)) ext_regex = regex.compile('\([a-z][a-z0-9_]*\)[ \t]' '\([.a-z][./a-z0-9_]*[.]c\)[ \t\n]', regex.casefold) for line in open('Setup').readlines(): if ext_regex.match(line) = 0: sargs=string.split(line) module=sargs[0] src=sargs[1] if src[:2]=='./': continue soptlist, sargs = getopt.getopt(sargs[2:],'I:D:') filter(lambda a: a[:1]=='-' or string.find(a,'.') 0, sargs) and die('Invalid arguments in Setup file: %s' % string.join(sargs)) sargs=map(lambda a: string.replace(a, '/','\\'), sargs) simple(module,poptlist+soptlist, sargs) main=setup def filebase(o, splitext=os.path.splitext,
Re: [Zope-dev] FTP interface being worked on?
"Chris McDonough" [EMAIL PROTECTED] writes: I don't think it's reasonable or wise to impose any "master structure" for filesystem serialization of bodies of objects. Each instance (or perhaps each class) should define how best to serialize itself to disk. Representations between classes are likely to be radically different. A place for standardization is in the "properties" file(s) which accompany each object rep... this is likely to be XML or another structured variant. Is there a motivation for using serialization to provide an editable "god's eye view" of all or part of a Zope site? That is, provide a two-way XML serialization at any stage of the managed hierarchy of a site? That way, XML tools could be used as stream editors at any level, to the extent that the serialization is understandable. So, for example, we'd have ways to not just alter a template or content that gets templatized, but the containers that organize them, and related metadata or content that isn't as near. This links well with the standardization that you mention - objects can have arbitrary serialization formats, but if certain attributes that we're interested in are recognizable, those attributes could be edited on a containerwide level. So, if we had arbitrary objects that we wanted to have an effect on content or display, the same XML tools could be used to manage them all, limited only by the ability of those tools to slog through a level of the hierarchy. This is kind of stream-of-consciousness talk, and might be more silly than realistic; certainly, if the objects didn't guard how they could be updated, a misconfigured tool could waste them without warning. There's a similar project called psilib that was discussed in xml.com: http://www.xml.com/pub/a/2000/03/22/psi/index.html -- Karl Anderson [EMAIL PROTECTED] ___ 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 )
Re: [Zope-dev] FTP interface being worked on?
I think the only good reasons we have right now for having filesystem-compatible serialization are to make Zope content editable via common tools in a way that makes sense to people not used to (or comfortable with) the object database, and to give people a plausible way to put a Zope site under source control. Are you thinking that we would build client-side tools to recognize an XML representation of a subpart of a site? - Original Message - From: "Karl Anderson" [EMAIL PROTECTED] To: "Chris McDonough" [EMAIL PROTECTED] Cc: "John D. Heintz" [EMAIL PROTECTED]; "Fred Wilson Horch" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, March 22, 2001 8:17 PM Subject: Re: [Zope-dev] FTP interface being worked on? "Chris McDonough" [EMAIL PROTECTED] writes: I don't think it's reasonable or wise to impose any "master structure" for filesystem serialization of bodies of objects. Each instance (or perhaps each class) should define how best to serialize itself to disk. Representations between classes are likely to be radically different. A place for standardization is in the "properties" file(s) which accompany each object rep... this is likely to be XML or another structured variant. Is there a motivation for using serialization to provide an editable "god's eye view" of all or part of a Zope site? That is, provide a two-way XML serialization at any stage of the managed hierarchy of a site? That way, XML tools could be used as stream editors at any level, to the extent that the serialization is understandable. So, for example, we'd have ways to not just alter a template or content that gets templatized, but the containers that organize them, and related metadata or content that isn't as near. This links well with the standardization that you mention - objects can have arbitrary serialization formats, but if certain attributes that we're interested in are recognizable, those attributes could be edited on a containerwide level. So, if we had arbitrary objects that we wanted to have an effect on content or display, the same XML tools could be used to manage them all, limited only by the ability of those tools to slog through a level of the hierarchy. This is kind of stream-of-consciousness talk, and might be more silly than realistic; certainly, if the objects didn't guard how they could be updated, a misconfigured tool could waste them without warning. There's a similar project called psilib that was discussed in xml.com: http://www.xml.com/pub/a/2000/03/22/psi/index.html -- Karl Anderson [EMAIL PROTECTED] ___ 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 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] Very minor management style sheet change?
Just so that the fonts are consistent, can this change be made to the management screens stylesheet? .form-help { + font-family: Verdana, Helvetica, sans-serif; font-size: 10pt; color: #33; } As a bonus, we'd also like to see the following added to the stylesheet - it's the style "defined" by the Zope heading up above the management tree view. We'll make do if we have to with this one. .strong-header { font-family: Verdana, Helvetica, sans-serif; background-color: #00; color: #ff; font-size: 12pt; font-weight: bold; } Richard -- Richard Jones [EMAIL PROTECTED] Senior Software Developer, Bizar Software (www.bizarsoftware.com.au) ___ 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 )