Re: [naviserver-devel] SVN

2006-06-25 Thread Bernd Eidenschink
Hi Vlad, > I noticed some projects(gaim for example ) already using svn on SF. Can > we switch to svn as well? I wrote this already to the list during the SF mail problems so maybe you have it already: * SVN was developed from scratch, * the repository is based on Berkeley DB, * you don't nee

[naviserver-devel] SVN

2006-06-25 Thread Vlad Seryakov
I noticed some projects(gaim for example ) already using svn on SF. Can we switch to svn as well? -- Vlad Seryakov 571 262-8608 office [EMAIL PROTECTED] http://www.crystalballinc.com/vlad/

Re: [naviserver-devel] [naviserver-commits] naviserver ChangeLog, 1.405, 1.406

2006-06-25 Thread Vlad Seryakov
Adding without restraint is also a problem. It gets to the point where you code yourself to a stand still. For example, there are some long standing bugs in the driver code which have been looked at and are still failing tests. Essentially, they are unfixable. We discussed driver extensions

Re: [naviserver-devel] [naviserver-commits] naviserver ChangeLog, 1.405, 1.406

2006-06-25 Thread Vlad Seryakov
If you need to test for existence, you're doing something wrong. Between the test and the action taken depending on the result, the result could have changed. However: ns_cache_eval $cache $key {error "no entry available"} You can catch the error and do whatever, no new entry will be create

Re: [naviserver-devel] RFE: Expanding ns_log/ns_logctl

2006-06-25 Thread Zoran Vasiljevic
Am 25.06.2006 um 14:41 schrieb Stephen Deasey: Take a look at log4j by the apache project. This is very popular and seems to have inspired a lot of imitators such as log4py, log4c etc. Maybe log4c has a better API than the old Ns_ModLog stuff. I did. This is exactly what I thought: they us

Re: [naviserver-devel] RFE: Expanding ns_log/ns_logctl

2006-06-25 Thread Zoran Vasiljevic
Am 25.06.2006 um 14:41 schrieb Stephen Deasey: If you add facility, you could: ns_logctl register $facility $priority joblog ?arg ...? The filtering would be done by the server, rather than the callback. You're focusing on sinks here, but you need a way to distinguish what goes where, and f

Re: [naviserver-devel] [naviserver-commits] naviserver ChangeLog, 1.405, 1.406

2006-06-25 Thread Zoran Vasiljevic
Am 25.06.2006 um 14:57 schrieb Stephen Deasey: Here's a question though: if you have URL limits and per cache limits, which takes precedence? Good question! As I'm reading your response I now get the idea where you're heading. This makes much sense if you have a very clear idea what your "j

Re: [naviserver-devel] [naviserver-commits] naviserver ChangeLog, 1.405, 1.406

2006-06-25 Thread Stephen Deasey
On 6/21/06, Vlad Seryakov <[EMAIL PROTECTED]> wrote: > We talked about this before. If I remember correctly, you didn't > disagree with me that the commands were racy, you said you code base > was large and you didn't have time to figure out what you really > needed. > More and more unnecessary

Re: [naviserver-devel] [naviserver-commits] naviserver ChangeLog, 1.405, 1.406

2006-06-25 Thread Stephen Deasey
On 6/21/06, Vlad Seryakov <[EMAIL PROTECTED]> wrote: > > We talked about this before. If I remember correctly, you didn't > disagree with me that the commands were racy, you said you code base > was large and you didn't have time to figure out what you really > needed. That was about tls not ca

Re: [naviserver-devel] RFE: Expanding ns_log/ns_logctl

2006-06-25 Thread Stephen Deasey
On 6/25/06, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: Am 25.06.2006 um 12:48 schrieb Stephen Deasey: > What happens if you push but don't pop, maybe an uncaught error? I was also thinking about: ns_logctl register callback ?arg...? ns_logctl unregister callback This way the push/pop

Re: [naviserver-devel] [naviserver-commits] naviserver ChangeLog, 1.405, 1.406

2006-06-25 Thread Stephen Deasey
On 6/22/06, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: Am 21.06.2006 um 19:01 schrieb Stephen Deasey: > Look at the aolserver head, at nsd/limits.c. A 'limits' is a > collection of setting such as max upload size, timeout etc. You > create one or more of these then bind them to a URL, just l

Re: [naviserver-devel] RFE: Expanding ns_log/ns_logctl

2006-06-25 Thread Zoran Vasiljevic
Am 25.06.2006 um 11:30 schrieb Gustaf Neumann: Well, i would not base the whole design decision on this fact, since also from the c-level one could call the tcl/xotcl log functions Well, this is not the only reason (see below). I also believe it is cleaner to have C-code not dependent (if pos

Re: [naviserver-devel] RFE: Expanding ns_log/ns_logctl

2006-06-25 Thread Zoran Vasiljevic
Am 25.06.2006 um 12:48 schrieb Stephen Deasey: What happens if you push but don't pop, maybe an uncaught error? I was also thinking about: ns_logctl register callback ?arg...? ns_logctl unregister callback This way the push/pop is avoided and the problem of non-symetric usage is gone, a

Re: [naviserver-devel] RFE: Expanding ns_log/ns_logctl

2006-06-25 Thread Stephen Deasey
What happens if you push but don't pop, maybe an uncaught error? The very first change in aolserver cvs after being opened was to remove the modlog api. Like most logging implementations, it took both a facility and a level. Ns_Log only takes a level. How about adding a 'facility' arg back?

Re: [naviserver-devel] PHP module

2006-06-25 Thread Bernd Eidenschink
Am Samstag, 24. Juni 2006 17:36 schrieb Vlad Seryakov: > I just commited PHP module, initially it was based on old aolserver > phpmodule but i had to rewrite it completely for Naviserver and new PHP. > I tested it with Drupal, and couple of webmail packages, works fine with > PostgreSQL and sqlite.

Re: [naviserver-devel] RFE: Expanding ns_log/ns_logctl

2006-06-25 Thread Gustaf Neumann
Zoran Vasiljevic schrieb: Am 22.06.2006 um 22:10 schrieb Zoran Vasiljevic: But as Gustaf already suggested, one can wrap the ns_log in Tcl and do whatever one will from the Tcl level anyway. I will have to see if this will be sufficient. It's not :-( The problem is: we also have whol

Re: [naviserver-devel] RFE: Expanding ns_log/ns_logctl

2006-06-25 Thread Zoran Vasiljevic
Am 22.06.2006 um 22:10 schrieb Zoran Vasiljevic: But as Gustaf already suggested, one can wrap the ns_log in Tcl and do whatever one will from the Tcl level anyway. I will have to see if this will be sufficient. It's not :-( The problem is: we also have whole lotta C-modules calling Ns_Log()