[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] First steps into Sausalito
- Subject: Re: [cobalt-developers] First steps into Sausalito
- From: Richard Davis <richard.davis@xxxxxxxxxxxx>
- Date: Tue Feb 13 06:22:02 2001
- List-id: Discussion Forum for developers on Cobalt Networks products <cobalt-developers.list.cobalt.com>
Tim,
> > > Putting the pkg together and installing the software is not a
> > > problem. The
> > > query is whether there is a way to add functionality to the
> > > cce to achieve
> > > this or whether is it better to simply bypass this and query the (vpn)
> > > configuration direct using php.
>
>
> > AFAIK, there aren't any holds in cce for such a thing. All the objects
> > in there also seem to be compiled in, so their attributes can't be
>
> There aren't currently hooks for any third-party apps, but that is what
> Sausalito is all about. Look in /usr/sausalito/schemas. There you will
> find all the class definitions for all the objects in CCE. You can easily
> add new classes or extend classes with namespaces for your own use.
I found this location and created a new schema file in the correct directory.
I added one new class with a series of eight properties. I then have a simple
php page with eight input boxes for configuration, and have placed the
correct files in the locale, conf and handler directories.
However, on accessing the php page, I do not have any default values, and on
submitting the page (to a php handler page) I get an error:-
Sorry, an internal server error occurred. The class Vpn is unknown.
in the bottom frame. I can't see where to go from here - any ideas??
> > changed. Also, from my experience, it looks like the configuration is
> > stored in separate objects for each service, which limits you more,
> > since there's not one big "Configuration" class.
>
> I don't see how this limits you? It gives you power to change without
> hurting anything else. If you need exactly one instance of a class per
> system, you can make it a namespace on the System class. If you need one
> per User, you can make it a Namespace on the User class. If you need an
> arbitrary number of objects, make a Class.
Done.
> > myself. Sorry I couldn't be of more help. But you'll probably just be
> > better off accessing the configuration file directly.
>
> This is what sausalito wants to help you avoid - please, ask questions if
> you don't get it. The manual is getting better, I promise :)
Using php direct makes it much more difficult to keep the ui the same as
cobalts, and also means playing with the php filesystem functions, which is a
new avenue for me.
Richard
--
Richard Davis richard.davis@xxxxxxxxxxxx
Systems Developer http://www.navaho.co.uk
Navaho Technologies Ltd Tel: +44 (0)870 703 4015
Fairchild House, Southampton Street,
Southampton, Hants, SO15 2ED