Since I've made some pretty good progress on this in the last couple of
days, I went ahead and moved it into the main cobbler directory:
$ ls django-webui/
apache django_templates djangowebui javascript
GitHub:
git://github.com/jimi1283/cobbler.git, in the my-devel branch
If you want to run this, copy the .conf file from apache/ to your
httpd/conf.d/ directory, and copy the djangowebui/django_templates
directory to /var/www/cobbler. Currently all paths are hard coded in the
django settings, so you MUST put these files in /var/www/cobbler. Finally,
any javascript files (currently only one, but there will be more) should be
put in /var/www/cobbler/webui. The rest of the graphics/css/javascript is
already there.
One weird thing django does, is generate a "secret key" (from settings.py):
# Make this unique, and don't share it with anybody.
SECRET_KEY = 'w&x*74x-b=ycigsdya03699o!9kt4(z4wyx-us9q=--&7clv4='
I have no idea what this is used for currently, if someone else knows
django better and can shed light on how we should handle this it would be
appreciated.
Current state of the code:
* Views for distros/profiles/systems work, as do the templates for the
list/edit/search. No forms work at all, so you can't save anything.
* Pagination is commented out, kind of ignoring that for now.
* Interfaces on the system edit page are broken badly. Django does not let
you put much python in templates, so all of that logic will need to be
moved into the views.py file.
* Still working on the alternate system views (copy, rename, etc.), those
don't work yet either.
* No logging in yet, it's hard coded as testing/testing in the views.py
file, so you'll have to setup your authnz to use the testing module.
Obviously this is heavily in dev so don't do this in a production
environment.
All told, I figure this is about 25-33% done right now. Any questions, let
me know! :)
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.