Excuse me,
I'd like to build a DomainFilterModule, and I need a bit of
information....(I am a newbie to Comanche/Swiki programming so please forgive
my so-simple questions :)
The idea is to read from security.xml a list of XML strucutres like
<DomainFilter type="allowed">
<m type="Host">www.squeak.org</m>
<m type="Host">www.niceFriend.com</m>
<m type="Host">127.0.0.1</m>
</DomainFilter>
It is a good XML-formatted-idea?
-----------
The implementation:
-----------
The documentation says
"The SwikiDictModule decides which SwikiModule responds to the request
(HttpRequest). It then sends it to that module to be processed; in case that no
module corresponds to the request, a DefaultSwikiModule (the 'default' swiki)
handles the request."
----------
So should I create a subclass of SwikiModule called DomainFilterModule module?
How does the SwikiDictModule "decide which SwikiModule responds to the
request"??
And how can SwikiDictModule understand the swiki is a "to filter" and attach my
DomainFilterModule to it?....
There is a standard (or planned) facility?
I'd like to give my code to the "Comanche/Swiki community" so I'd like to
write a good standard module....
I think a ugly way should be modifing this code:
Method: SwikiDictModule from:
--------------
[...]
"Get the dictionary of all setup swikis"
swikiDict _ Dictionary new.
dir directoryNames do: [:dName |
(dName = 'default') "<------- MODIFY HERE?!"
ifTrue: [load _ DefaultSwikiModule from: (dir directoryNamed: dName)]
ifFalse: [load _ SwikiModule from: (dir directoryNamed: dName)].
[...]
----------
But there is a most standard/compatibility way to do this?
Can some Swiki guru teach me?
Thank you a lot (and thank you for this Swiki)!!!
Bijan Parsia wrote:
> On Fri, 17 Mar 2000, Giovanni Giorgi wrote:
>
> [...]
>
> If you mean integrating DomainFilterModule with Swikis, you might look at
> SwikiSecurityModule.
>
> Actually, it seems that you do have address filtering in
> SwikiSecurityModule. Je77, you sneaky fella you!
>
> (Acutal security code is in SwikiSecurityPrivileges.)
>
> To use this, you just have to put the right setting in the security.xml
> file (see the class comment of SwikiSecurityPrivileges).
>
> Cheers,
> Bijan.
--
// Giovanni Giorgi
// http://www.egroups.com/group/powertalk/info.html
\\ mailto: [EMAIL PROTECTED]
// GSM: +39-347-3076-419
// First they ignore you, then they laugh at you,
// then they fight you, then you win.
// - Mahatma Ghandi