At 09:48 AM 26/07/2004 +0300, Max Ischenko wrote:
>Mark Phillips wrote:
>>When I attempt to invoke AppServer, I get the following message:
>>Traceback (innermost last):
>> File "Launch.py", line 34, in ?
>> main(sys.argv)
>> File "Launch.py", line 13, in main
>> if arg.startswith('--webware-path='):
>>AttributeError: 'string' object has no attribute 'startswith'
>>I can't seem to get a hit on the words in the message. Can anyone offer a
>>link, suggestion or hint as to what is amiss and/or what I have overlooked?
>
>How do you run it?
>Looks like the script got interpreted by somenthing like Python <= 2.0.x,
>not the Python 2.3.
>
>Make sure you're using correct version of Python interpreter.
Hi Mark,
Max is right. I would bet that when you did the install, it picked up the
version of Python in SME Server, which is older. You would have to
reference the version of Python you installed explicitly, e.g.
/usr/local/python2.3/python setup.py install. It is possible to deal with
multiple versions of Python and various other support libraries. You just
have to make sure the version you want is the version being referenced.
Regards,
Clifford Ilkay
Dinamis Corporation
3266 Yonge Street, Suite 1419
Toronto, Ontario
Canada M4N 3P6
Tel: 416-410-3326

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
is anyone here who has some experience with psycopg
(PostgreSQL-DB2.0-adapter)?
This is certainly unrelated to WebWare, but the psycopg-list has been
silent so far.
I have a problem with TIMESTAMPS, they get mangled (milliseconds cut
off, millisecond-separator beeing a "," instead of ".") by psycopg and I
don't know why.
Currently I use PyGreSQL because of this, but it lacks certain functions
(support for BLOB-insertion, string-escaping) and is in general badly
documented (the DB2.0-API compliant adapter, not the old one).
Thanks in advance.
- --
Bye,
Marc Saric http://www.marcsaric.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFBBU3IvKxJUF29wRIRAtDzAJ0YswcJ0IadE81ROlZJyeqeBco1egCdH5RZ
It3Z5mbkF7K7DE8xm9Byo0Q=
=Yv6f
-----END PGP SIGNATURE-----

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
again a (hopefully) simple question regarding WebWare and FormKit:
I want to transform user-input with help of the "_convert"-functions in
FormKit.Validators. Works nice so far (i.e. input is converted), but
it's somewhat unclear to me how to best handle the returned value.
Replacement of the input request with the transformed request does not
happen out of the box (or I do something wrong) -do I need to write a
helper function, which takes the output from _convert and replaces the
original "request"-field? Is there a best way how to handle this.
Maybe I'm just tired this evening and start asking stupid stuff...
Thanks in advance.
- --
Bye,
Marc Saric http://www.marcsaric.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFBBU27vKxJUF29wRIRAiPDAJkBRUErAnn9v7YKVWEGQnqlMD6lLgCcDNGu
lsx8DIkQq2KUqYqqEL6M/Y8=
=TYtF
-----END PGP SIGNATURE-----

On Jul 26, 2004, at 9:30 AM, Mark Phillips wrote:
> On Jul 25, 2004, at 11:48 PM, Max Ischenko wrote:
>
>> Make sure you're using correct version of Python interpreter.
>
> Thanks, Max. I simply typed ./AppServer at the shell prompt.
>
> How do I invoke python2.3 when launching AppServer?
>
> FYI... There are three versions currently installed; v1.5, v2.2 and
> v2.3. I did not install v1.5 or v2.2. I did install v2.3 recently. I
> am concerned about dependencies on the prior installs that I may not
> understand. So is there a way in RedHat 7.3 to invoke the proper
> python with AppServer?
Being a newbie can be so humbling. I was alerted to the fact that
AppServer is shell script. One small change in the script solved the
problem. Yeah!
Mark Phillips
Mophilly & Associates
On the web at http://www.mophilly.com
On the phone at 619 444-9210

For Apache 2, you need to use WebKit/Adapters/mod_webkit2 (notice the 2).
Also, you should definitely get the latest version out of CVS. The
mod_webkit2 in Webware 0.8.1 has a bug.
- Geoff
-----Original Message-----
From: gavin [mailto:gavin@...]
Sent: Monday, July 26, 2004 8:09 AM
To: webware-discuss
Subject: [Webware-discuss] how to compile Webware0.8.1 for apache2.3.4
module
Hello
Apache2.3.4
Webware0.8.1
RedHat8.0
I installed apache2.3.4 from apache source on Redhat8.0 into
/usr/local/apache2
but install compile Webware0.8.1 for apache module(located
WebKit/Adapters/mod_webkit).
I have modified Makefile in according to its README.change the line of
"APXS=/usr/sbin/apxs " to "APXS=/usr/local/apache2/bin/apxs", and then
execute make.
Failed.
I don't know what's problem with my install. whether the webware0.8.1 does't
support
apache2?
Thanks in advace!
Sincerely,
Ning XiaoZheng

Mark Phillips wrote:
> With help from this list I have succeeded in testing Webware using
> localhost. This weekend I attempted to move the project to a live server
> to continue to testing and learning. The server is SME Server 6.0
> (RedHat 7.3). I updated Python to 2.3.4. I copied Webware-0.8.1 to my
> usr/local/ then ran install.py. I created a new directory for the
> project and ran MakeAppWorkDir.py. All of these steps seem to complete
> normally.
>
> When I attempt to invoke AppServer, I get the following message:
>
> Traceback (innermost last):
> File "Launch.py", line 34, in ?
> main(sys.argv)
> File "Launch.py", line 13, in main
> if arg.startswith('--webware-path='):
> AttributeError: 'string' object has no attribute 'startswith'
>
> I can't seem to get a hit on the words in the message. Can anyone offer
> a link, suggestion or hint as to what is amiss and/or what I have
> overlooked?
How do you run it?
Looks like the script got interpreted by somenthing like Python <=
2.0.x, not the Python 2.3.
Make sure you're using correct version of Python interpreter.

Warning: the Newbie continues...
With help from this list I have succeeded in testing Webware using
localhost. This weekend I attempted to move the project to a live
server to continue to testing and learning. The server is SME Server
6.0 (RedHat 7.3). I updated Python to 2.3.4. I copied Webware-0.8.1 to
my usr/local/ then ran install.py. I created a new directory for the
project and ran MakeAppWorkDir.py. All of these steps seem to complete
normally.
When I attempt to invoke AppServer, I get the following message:
Traceback (innermost last):
File "Launch.py", line 34, in ?
main(sys.argv)
File "Launch.py", line 13, in main
if arg.startswith('--webware-path='):
AttributeError: 'string' object has no attribute 'startswith'
I can't seem to get a hit on the words in the message. Can anyone offer
a link, suggestion or hint as to what is amiss and/or what I have
overlooked?
Mark Phillips
Mophilly & Associates
On the web at http://www.mophilly.com
On the phone at 619 444-9210