Alvaro Lopez Ortega | 4 Oct 2007 11:49
Picon
Gravatar

Re: [cherokee-dev] rev 926 - in cherokee-admin

cherokee <at> cherokee-project.com wrote, On 04/10/07 03:08:

> Author: arc
> New Revision: 926
> Log:
> 2007-10-04  Alberto Ruiz <aruiz <at> gnome.org>
> 	* created branches and trunk directories
> 	* initial trunk commit for the new administration interface

Alberto, *GREAT* stuff!!! You have just made my day :-)

--

-- 
Greetings, alo.
http://www.alobbs.com
Alberto Ruiz | 4 Oct 2007 12:26
Picon
Gravatar

PySCGI import patch

Hi there,

the __init__.py file inside the pyscgi module is empty, this means that to import the module properly I need to type:
    from pyscgi.pyscgi import *
instead of:
    from pyscgi import *

The attached patch fixes the problem.

--
Cheers,
Alberto Ruiz

_______________________________________________
Cherokee mailing list
Cherokee <at> cherokee-project.com
http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee
Alvaro Lopez Ortega | 4 Oct 2007 12:40
Picon
Gravatar

Re: PySCGI import patch

Alberto Ruiz wrote, On 04/10/07 12:26:

> from pyscgi import *
> The attached patch fixes the problem.

r928 fixed it. Thanks for the path!

--

-- 
Greetings, alo.
http://www.alobbs.com
Alberto Ruiz | 4 Oct 2007 13:43
Picon
Gravatar

Re: [cherokee-dev] rev 926 - in cherokee-admin



2007/10/4, Alvaro Lopez Ortega <alvaro <at> gnu.org>:
cherokee <at> cherokee-project.com wrote, On 04/10/07 03:08:

> Author: arc
> New Revision: 926
> Log:
> 2007-10-04  Alberto Ruiz < aruiz <at> gnome.org>
>       * created branches and trunk directories
>       * initial trunk commit for the new administration interface

Alberto, *GREAT* stuff!!! You have just made my day :-)

Np, in fact, I should give a little explanation on how it works.

We're using cherokee-pyscgi and pycherokeeconf to run the service, so you need to install cherokee 0.6 and both modules as well in order to run the service. The SCGI is started on the 4000 port and the web server on the 8080 port.

To get the sources, svn co svn://www.cherokee-project.com/cherokee-admin/trunk cherokee-admin

The web interface is based on ExtJS[0], a JavaScript toolkit (based on Yahoo UI and prototype) to build user interfaces with AJAX sugar on top :) Before to test the server, make sure you run the download_extjs.sh bash script (I thought including the whole JS in the repository was a bad idea).

There are two main ways that ExtJS can retrieve information asynchronously using the default ajax calls, XML and JSON. I've chosen to write a JSON API. The API works this way, since the cherokee configuration can be represented by a tree, you can browse the tree simply using the URL (if you run the run_admin.sh bash script, you will be al:

http://localhost:8080/config/  will give you the configuartion root, usually server and vserver and includes.
Returns something like this:
[ "vserver", {"include": /usr/local/etc/cherokee/sites-enabled}, "server" ]

Note that include has value, that means that is a leaf of the tree, and therefor it's returned as a JSON object ( {"key": value} )

Everything under /config, returns a JSON list. If some of the elements of that configuration path is a leaf. For some special cases, I'm parsing request options, such as http://localhost:8080/config/vserver/?widget=grid to return the Grid widget record list as the JS API expects it.

The interface itself can be browsed on /admin, http://localhost:8080/admin/ (I think I will change this to the / directory at some point). So far it only only returns the vserver list.

Help and/or any comments are welcome and very appreciated!

[0] http://extjs.com/

--
Un saludo,
Alberto Ruiz
_______________________________________________
Cherokee mailing list
Cherokee <at> cherokee-project.com
http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee
Dave Anderson | 7 Oct 2007 06:07

cherokee-admin: rudimentary to form fields using javascript diff

Hello there Cherokee folks,

Here is a rough attempt to simply get config entries displayed out onto 
the web-based admin page as form fields based on a JSON version of a 
ConfigNode based tree.

baby steps ;)
Attachment (form_fields_take1.diff): text/x-patch, 6623 bytes
_______________________________________________
Cherokee mailing list
Cherokee <at> cherokee-project.com
http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee
Alberto Ruiz | 7 Oct 2007 23:57
Picon
Gravatar

Re: cherokee-admin: rudimentary to form fields using javascript diff



2007/10/7, Dave Anderson <cherokee <at> davious.org>:
Hello there Cherokee folks,

Here is a rough attempt to simply get config entries displayed out onto
the web-based admin page as form fields based on a JSON version of a
ConfigNode based tree.

Cool, I'm gonna try the patch tomorrow.

Keep up the good work :)

baby steps ;)

_______________________________________________
Cherokee mailing list
Cherokee <at> cherokee-project.com
http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee





--
Un saludo,
Alberto Ruiz
_______________________________________________
Cherokee mailing list
Cherokee <at> cherokee-project.com
http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee
Alvaro Lopez Ortega | 8 Oct 2007 08:49
Picon
Gravatar

Logfiles Made Interesting with glTail

Hi guys,

FYI, It does work with Cherokee! :-)

Logfiles Made Interesting with glTail
http://www.fudgie.org/

--
Greetings, alo.
http://www.alobbs.com
Alberto Ruiz | 9 Oct 2007 21:25
Picon
Gravatar

Re: cherokee-admin: rudimentary to form fields using javascript diff



2007/10/7, Dave Anderson <cherokee <at> davious.org>:
Hello there Cherokee folks,

Here is a rough attempt to simply get config entries displayed out onto
the web-based admin page as form fields based on a JSON version of a
ConfigNode based tree.

Excellent!  Patched commited to trunk.
Any ideas on how to send the changes back to the server?

baby steps ;)

_______________________________________________
Cherokee mailing list
Cherokee <at> cherokee-project.com
http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee





--
Un saludo,
Alberto Ruiz
_______________________________________________
Cherokee mailing list
Cherokee <at> cherokee-project.com
http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee
Alvaro Lopez Ortega | 9 Oct 2007 22:46
Picon
Gravatar

Re: cherokee-admin: rudimentary to form fields using javascript diff

Alberto Ruiz wrote, On 09/10/2007 21:25:
 > 2007/10/7, Dave Anderson <cherokee <at> davious.org
 >>
 >> Here is a rough attempt to simply get config entries displayed out
 >> onto the web-based admin page as form fields based on a JSON
 >> version of a ConfigNode based tree.
 >
 > Excellent!  Patched commited to trunk.
 > Any ideas on how to send the changes back to the server?

What about something like..

-------
POST /vserver/default/extension/jpg/directory_root HTTP/1.1
Content-Lenght: 6

/tmp
-------

The only problem would be how to encode the directory paths and the
regular expressions because of the slashes in the URL.. so maybe it
would be better to use something like this:

-------
POST / HTTP/1.1
Content-Lenght: 52

server!default!extension!jpg!directory_root = /tmp
-------

--

-- 
Greetings, alo.
http://www.alobbs.com
Rowan Kerr | 10 Oct 2007 16:41

Re: cherokee-admin: rudimentary to form fields using javascript diff

On 9-Oct-07, at 4:46 PM, Alvaro Lopez Ortega wrote:
> Alberto Ruiz wrote, On 09/10/2007 21:25:
>> 2007/10/7, Dave Anderson <cherokee <at> davious.org
>>>
>>> Here is a rough attempt to simply get config entries displayed out
>>> onto the web-based admin page as form fields based on a JSON
>>> version of a ConfigNode based tree.
>>
>> Excellent!  Patched commited to trunk.
>> Any ideas on how to send the changes back to the server?
>
> What about something like..
>
> -------
> POST /vserver/default/extension/jpg/directory_root HTTP/1.1
> Content-Lenght: 6
>
> /tmp
> -------
>
> The only problem would be how to encode the directory paths and the
> regular expressions because of the slashes in the UR

Post data is mime-type application/x-www-form-urlencoded. So slashes  
aren't a problem. Or am I missing something with what you guys are  
trying to do.

(Saw the call for help on Alberto's blog through Planet Gnome) :)

Gmane