Re: [Webware-devel] Can't compile mod_webkit2

2014-07-25 Thread Andreas Poisel
* Christoph Zwerschke  [25.07.2014 14:40]:

> this has been fixed in the trunk:
> 
> http://svn.w4py.org/Webware/trunk/WebKit/Adapters/mod_webkit2/

Great, thanks a lot!

-- 
Bye, Andreas

--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
___
Webware-devel mailing list
Webware-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-devel


[Webware-devel] Can't compile mod_webkit2

2014-07-25 Thread Andreas Poisel
Hi!

I can't compile mod_webkit2 (Webware 1.1.1) on Ubuntu Server 14.04:

8<--

% make
apxs2 -c -Wc,"" -o mod_webkit.la  mod_webkit.c marshal.c
/usr/share/apr-1.0/build/libtool --silent --mode=compile --tag=disable-static 
x86_64-linux-gnu-gcc -std=gnu99 -prefer-pic -pipe -g -O2 -fstack-protector 
--param=ssp-buffer-size=4 -Wformat -Werror=format-security  -D_FORTIFY_SOURCE=2 
  -DLINUX -D_REENTRANT -D_GNU_SOURCE  -pthread  -I/usr/include/apache2  
-I/usr/include/apr-1.0   -I/usr/include/apr-1.0 -I/usr/include   -c -o 
mod_webkit.lo mod_webkit.c && touch mod_webkit.slo
mod_webkit.c: In function ‘wksock_open’:
mod_webkit.c:265:17: error: format not a string literal and no format arguments 
[-Werror=format-security]
 log_error(sbuf, r->server);
 ^
mod_webkit.c: In function ‘webkit_handler’:
mod_webkit.c:596:9: error: format not a string literal and no format arguments 
[-Werror=format-security]
 log_error(msgbuf, r->server);
 ^
cc1: some warnings being treated as errors
apxs:Error: Command failed with rc=65536
.
make: *** [mod_webkit.la] Error 1

8<--

Any suggestions?  Thank you!

-- 
Bye, Andreas

--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
___
Webware-devel mailing list
Webware-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-devel


[Webware-devel] Funcs.dateForEmail() and locale

2009-03-03 Thread Andreas Poisel
Hi!

Thanks for keeping Webware alive, I'm actively using it in a couple of
projects and I'd still choose Webware for a specific type of project.

But I think there is a problem with Funcs.dateForEmail() in Webware
1.0.1:

>>> import locale
>>> locale.setlocale(locale.LC_ALL, "de_DE.ISO-8859-1")
'de_DE.ISO-8859-1'
>>> from Funcs import dateForEmail
>>> dateForEmail()
'Di, 03 Mär 2009 15:53:45 +0100'

According to RFC 5322, English abbreviations have to be used for date
and time specifications
(http://tools.ietf.org/html/rfc5322#section-3.3).  Some MTAs complain
about umlauts within e-mail headers.

I can't think of a method to get the abbreviated day name without
changing the locale settings.  This is not elegant, but it works for me:

8<--

MONTHNAMES= ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep",\
"Oct", "Nov", "Dec"]
DAYNAMES= ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]

def dateForEmail(now=None):
"""Return a properly formatted date/time string for email messages."""
if now is None:
now = time.localtime(time.time())
if now[8] == 1:
offset = -time.altzone / 60
else:
offset = -time.timezone / 60
if offset < 0:
plusminus = '-'
else:
plusminus = '+'
return '%s, %02d %s ' % (DAYNAMES[now[6]], now[2], MONTHNAMES[now[1]-1]) \
+ time.strftime('%Y %H:%M:%S', now) + plusminus \
+ '%02d%02d' % (abs(offset/60), abs(offset%60))

8<--

I'm sure there is a way to get the names without having to list them.

-- 
Bye, Andreas

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Webware-devel mailing list
Webware-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-devel


Re: [Webware-devel] New release?

2006-04-23 Thread Andreas Poisel
* Christoph Zwerschke <[EMAIL PROTECTED]> [060423 18:50]:

> Ok, I have already changed the MakeAppWorkDir script. If the working dir 
> does already exist, then all missing subdirectories and files will be 
> created, and access permissions set, but without overwriting any 
> existing files. I think that is reasonable. If you want to recreate 
> default config files or launcher scripts, you can simply delete them and 
> run MakeAppWorkDir.

Great!  Since I'm using different settings for a application on the
development machines, putting the Webware configuration files into
version control is not an option for me.

Thank you!
-- 
Andi


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Webware-devel mailing list
Webware-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-devel


Re: [Webware-devel] New release?

2006-04-21 Thread Andreas Poisel
* Christoph Zwerschke <[EMAIL PROTECTED]> [060421 18:40]:
> Since I did not get much feedback, I'm going to release 0.9.1 final this 
> weekend if nobody objects.

I'm using 0.9.1 beta in productive environment without problems.

Just one minor issue:  starting with a 0.9pre release (if I remember
correctly) the MakeAppWorkDir.py script refused to write the application
skeleton when the target directory already existed.

I used to check out e.g. the "MyApp" directory from version control and
webware-ify it with "MakeAppWorkDir.py MyApp" afterwards.  This doesn't
work anymore, is there a specific reason for this behaviour?  I've no
problem working around this issue, but I don't like constraints without
having a decent motivation... ;-)

Thank you!
-- 
Andi


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Webware-devel mailing list
Webware-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-devel