#foswiki 2012-08-25,Sat

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)

WhoWhatWhen
gac410JulianLevens: interesting. I tested the single slash syntax ( file:/some/file ) and at least with Firefox, it will auto-convert the single slash into 3 slashes. Chromium does the same thing.
The embedded spaces works because you are using explicit link text ( [[ url with spaces][ link text ]] If you omit the [ link text] from the squab link, then the url "breaks" on the first space.
[01:25]
SvenDowideitoh great and wise foswiki people
is there a plugin that will redirect a list of topics to some external site?
it occurs to me that if there is an external user mgmt system, that navigating to System.ChangePassword should really just magically goto http://external user mgmt tool.com
[01:36]
gac410Hm... will RedirectPlugin do it? [01:38]
SvenDowideitsomewhat similar to micha's template view thing
lets see
not yet
but i might just add some
i dont want to be modding topics so :)
[01:40]
gac410Hm... Apache rewrite rules? [01:42]
SvenDowideitmumble! that explains why i didn't write code before
i loves my apache rulz, but was in wrong mindspace
many thanks!
[01:42]
gac410JulianLevens: I've updated the Foswiki:Support.Faq72 to include your observations. [01:43]
FoswikiBothttp://foswiki.org/Support.Faq72 [ How do I enter Windows share file paths into a link (UNC Names) ] [01:43]
SvenDowideitnow to decide how to hook up Caslogin to ldap [01:43]
.... (idle for 19mn)
gac410SvenDowideit: Other than debugging, I think the basic LogDispatchContrib is ready to go. Next step would be to subclass it to add DBI based logging (and a forEachEvent implementation for DBI). [02:02]
SvenDowideitneat!
i'm a tad confused tho
[02:16]
gac410yeah? [02:16]
SvenDowideiti thought there was a DBI Log::Dispath backend [02:16]
gac410yes. But rather than incorporate it inline with more conditionals, I figured putting it in a LogDispatch::DBI subclass would make it cleaner to handle the eachEventSince code.
It could be inline as well - just more if/elee
[02:17]
SvenDowideiti don't know enough about what you've done :) [02:18]
gac410er ... if/else
Just followed your model.
[02:18]
SvenDowideitoh, ok, so you're not bringing those in with cfg directly [02:18]
gac410Just checkboxes to enable code already in Logger::LogDispatch. [02:18]
SvenDowideitah, k [02:19]
gac410I figured more "unusual" loggers, DBI, Windows, Mongo (or is that DBI?) etc. would be Logger::LogDispatch::blah [02:19]
SvenDowideitits not what i was going to do, but i don't know how to do what i was going to do :)
i kinda hoed i could have Logger::LogDispath and $Foswiki::cfg{LogDispatch} = {level => {module => Log::Dispatch::MongoDB , settings =>
[02:19]
gac410Hm... and maybe subclassing is not the way to go. Since we would want a "addition" to the loggers not a replacement. [02:20]
SvenDowideitor something
but your way is probly easier to code by a factor of a bajillion
SvenDowideit has found a strong dislike for sslv23
but then again, also re-confirmed a strong hatred of java base webservers
[02:20]
gac410I have cfg{LogDispatch}{LogMethod}{stuff} where stuff is Enabled, file name maps, syslog settings, etc. etc. [02:22]
SvenDowideitso you could embedd the if statement concept in there [02:22]
gac410So {LogDispatch}{FileRolling}{FilePattern} is the -%{yyyy-dd} [02:23]
SvenDowideitrather than code
but it will be interesting if you want several levels going to different FileRolling backends (for eg)
[02:23]
gac410Handled
I have a hash of file-prefix => minlevel:maxlevel
[02:24]
SvenDowideitor 3 differenr mongodb backends [02:24]
gac410So in theory could have the mystuff => info:notice which would write mystuf-(pattern) for info thru notice [02:25]
SvenDowideitie, you really want an array of min:max => {backend&settings hash}
and then the Foswiki::Logger module would 'just' iterate over that array
[02:25]
FoswikiBothttp://trunk.foswiki.org/System/PerlDoc?module=Foswiki::Logger [02:26]
SvenDowideit(as i said - this was my long term, un-thought out idea :) [02:26]
gac410Files - which are flexible, use the Hash. STDERR (screen) just has a min-level and max-level drop-down. As does Syslog
Hadn't thought at all about dbi yet.
[02:26]
SvenDowideitso you've handcoded for each of the backends you know about? [02:26]
gac410yeah :( [02:27]
SvenDowideitrather than made a single generalised list for all backends
SvenDowideit is amazed - i'm way lazier than that :)
[02:27]
gac410Yes, some of the backends have very different settings. [02:27]
SvenDowideity, but, and etc
i really don't have time to poke it atm tho, so its really cool what you're doing
[02:27]
gac410Like Syslog has a log-options that is actually part of the Sys::Syslog backend.
And validations / checkers I figured were easier to handle by explicit fields.
[02:28]
SvenDowideity, that bits true
but (i'm not sure yet) it sounds like you have
{FileRoller}=>{list of min:max=>}
and {Syslog}=>{list of min:max}
(plus other settings in {Syslog} has
[02:29]
gac410I wanted Syslog facilities (usr1, usr2 ... ) to be a drop-down. Syslog log-options to be checkboxes, etc. [02:30]
SvenDowideityes, i think i grok that
if you extract the list of min:max
don't you get an extra ability to set up (for eg) different logging to different syslog servers?
ie
[02:30]
gac410A hash of options would be a lot more complex for the neophyte admin. (and we have a lot of them)
No. I did 't see how to do that. It uses the syslog call provided by the os from what I can see.
[02:31]
SvenDowideitargh, so bad eg
don't you get an extra ability to set up (for eg) different logging to different mongodb servers?
meh, i shouldn't pontificate on what i have not thought through yet
[02:32]
gac410yeah. DBI maybe gets a hash. But then again, need to balance config compexity {server, userid, password, min:max,) vs separate fields [02:33]
SvenDowideiti'm still being kicked by ssl, somewhere in the guts of Socket::SSL
its the same complexity
just that one allows the experienced admin to do everything, while the other makes an arbitary limitation
neophites just get the configure UI
big admins can look past that - but if the cfg layout makes it impossible to configure anything by a neophite layout
we force them to um....
[02:33]
gac410right. I was going for a mixture of hardcoded (for the simpler initial config) and pluggable for the more complex. ... deferring the complex for "Version 2" :) [02:35]
SvenDowideitgiggle
tbh, the real cool stuff is probly in the checkers you must be writing
cos we really do need some foswiki-dataform like checkers
preffereably that can be defined using....
[02:36]
gac410Not much. I only did a few checkers, Where I could use a drop-down or checkbox to contstrain the values, it avoids a checker. [02:37]
SvenDowideitcrystal reports? [02:37]
gac410shudder [02:37]
SvenDowideithehe
OH YAY>
now to start sending patches to AuthCAS cpan module :/
mmm, time to go - thankyou for lots of things :)
[02:37]
gac410bye
btw: Sys::Syslog does have host controls by manipulating the socket that it opens. Not sure if all that is exposed through Log::Dispatch
Funny docs. You use setlogsock to set the remote syslog host, but the docs claim The First Rule of Sys::Syslog is: You do not call setlogsock. The Second Rule of Sys::Syslog is: You do not call setlogsock. (2nd rule in bold)
I think that's why I didn't look any further ;0
;_
yeesh I can't type. Never mind.
[02:41]
......... (idle for 42mn)
WikiRingBot: seen pharvey [03:30]
WikiRingBotWikiRingBot has last seen pharvey 23 Aug 2012 - 04:56 GMT on #foswiki
WikiRingBot has last seen pharvey1 12 Aug 2012 - 08:59 GMT on #foswiki
WikiRingBot has last seen pharvey_ 2 Jul 2012 - 11:46 GMT on #foswiki
[03:30]
....... (idle for 30mn)
GithubBot[foswiki] FoswikiBot pushed 1 new commit to master: http://git.io/2dNd3g
[foswiki/master] Item12051: Sync up unit test changes in registrn - GeorgeClark
[04:00]
***GithubBot has left [04:00]
FoswikiBothttp://foswiki.org/Tasks/Item12051 [ Item12051: Keep the unit tests in sync between 1.1 and trunk ] [04:00]
.......... (idle for 46mn)
GithubBot[foswiki] FoswikiBot pushed 2 new commits to Release01x01: http://git.io/IqlZ9Q
[foswiki/Release01x01] Item12051: Sync up unit test changes in registrn - GeorgeClark
[foswiki/Release01x01] Item12051: Access control test sync up - GeorgeClark
[04:46]
***GithubBot has left [04:46]
FoswikiBothttp://foswiki.org/Tasks/Item12051 [ Item12051: Keep the unit tests in sync between 1.1 and trunk ] [04:46]
GithubBot[foswiki] FoswikiBot pushed 1 new commit to master: http://git.io/Pyw6eg
[foswiki/master] Item12051: Access control test sync up - GeorgeClark
[04:47]
***GithubBot has left [04:47]
...... (idle for 29mn)
GithubBot[foswiki] FoswikiBot pushed 1 new commit to Release01x01: http://git.io/P0u31A
[foswiki/Release01x01] Item12051: Sync up new attachment link tests - GeorgeClark
[05:16]
***GithubBot has left [05:16]
GithubBot[foswiki] FoswikiBot pushed 1 new commit to master: http://git.io/A5JAoA
[foswiki/master] Item12051: Sync up new attachment link tests - GeorgeClark
[05:17]
***GithubBot has left [05:17]
FoswikiBothttp://foswiki.org/Tasks/Item12051 [ Item12051: Keep the unit tests in sync between 1.1 and trunk ] [05:17]
***gac410 has left [05:24]
GithubBot[foswiki] FoswikiBot pushed 1 new commit to Release01x01: http://git.io/aZ6nTg
[foswiki/Release01x01] Item12051: Sync over trunk test changes - GeorgeClark
[05:31]
***GithubBot has left [05:31]

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)