Re: [Jaws-project-developers] Some tasks for this Week
Status: Alpha
Brought to you by:
ionmx
|
From: Jon W. <jo...@je...> - 2005-01-18 17:12:22
|
On Mon, 2005-01-17 at 15:50 -0600, Pablo Fischer wrote: > Hello, > > As most of we know we are at some weeks to finish this month, and one of > our goals are to release Jaws at the end of February. So, I have been > looking in Jaws of what tasks we neede to finish so we can release Jaws > to a test phase and then.. the final release. > > We are five developers and I know that must of us are busy at work or > some other projects, but I think that each one of us can take one task > and try to finish it. > I'm (finally) almost finished on the job I'm doing at the moment, so I'll have more time for Jaws later on this week. /me wished he'd found Jaws *before* starting the job he's doing now. > Please, prepare your coffee before start flying with my ideas... > Heh - I'd just got a coffee before starting my "just got up" e-mail reading :P > 1. Documentation: > > Most of the gadgets that we have are lack of documentation. So, anybody > that wants to hack the documentation (PHPDOC)? I know this is a pain in > the ass, but we need to doc. the gadgets. Also, JawsTemplate.php is lack > of phpdoc. > Agreed - I'm happy to do some of this, especially since it's something different from bug fixes and minor changes (which I'm currently stuck doing for a client's website). > 2. One Jaws to rule them all > > I've been thinking of how can we deal with multiple host/user > installations. So I decided to take a look to Drupal. I decided Drupal > cause I considered it a nice product. > > So, searching in google how to do that in Drupal I found a interesting > link [1] that explains how to do that. How does Drupal manages it?. > Well, in order to install it, the user (admin) needs to create a file > inside the include's directory. The config needs to be named: > mydomain.com.php. > > So for example, if I have www.mydomain.com.php and > www.myotherdomain.com.php then if someone tries to access > www.mydomain.com Drupal will read the config file (DB params) > www.mydomain.com.php and if other visitor goes to www.myotherdomain.com, > then Drupal will use the DB params for that site. > Should multiple sites have to use a different database completely? It would be a bit of work, but it should be possible to tag any entry in the database with a site_id field, which associates an entry with a particular site. Using that admins don't have to maintain a database for every site, and can do schema updates as quickly as any other form of update. > I think we should have that with the addition that our JawsCommonLoader > (or whatever) should look for a config file site > (myotherdomain.com.php), if it exists.. then use it, if not, it should > use the config.php (the original one). > I like it :D > So, having one config like that we can keep an easy installation per > user?. How?, lets suppose that we have our original Jaws installation > in /usr/share/jaws and we want to install it to Sarah and Michael. Also > we have our domain: mycoolblog.com. So, after we create their users > profiles (adduser) and configure their virtualhosts (if its required) we > can do: > > cd /home/michael/public_html > ln -s /usr/share/jaws/* > rm -rf resources > mkdir resources/phoo resources/gadgets resources/xml resources/... > > Why we removed the resources/ directory?. Easy, we want each user to > have their own resources (phoo images, xml files, banners, etc). In the > next task I will explain the resources. > Again, I like that one - I hadn't thought through resources in the past, and this seems like the best solution available to us. > 3. JDD - Jaws Directory Distribution (No, the J is not Java). > Are you sure... you did seem very keen for us to have *coffee* with this e-mail. > ion sent an email few weeks ago about creating a new Jaws Directory > Distribution. And while I was thinking about how to keep running point 2 > and taking some ideas of ion, Jellybob and imcsk8 I have this schema: > > . > |-- admin.php > |-- gadgets > | |-- Banner > | | |-- Images > | | |-- Model.php > | | |-- Templates > | | `-- Views > | | |-- Gadget.php > | | `-- WebService.php > |-- include > |-- index.php > |-- resources > | `-- xml > | `-- files | `-- phoo <-- This is likely to be needed ;) > |-- themes > `-- wsadmin.php > > You are asking: WTF is resources?!. Well, to separate and keep multiple > installations so each user can have their own resources (that is what we > are looking for). > > So for example, if we want to update Jaws for all the users, we simply > update the files, without updating resources. > Sounds good to me, although I'd still rather any XML stuff that's needed gets generated on demand, and then the results cached until the next change. > 4. Translation > > Although, I was looking the work that Jon has done in languages/. I just > have two suggestions: > > * What is better, to have just one .po file for ALL gadgets? (maybe one > big .po file for all gadgets and each non-jaws gadget can have their > own .po file). This is a hard one... does anybody know if GetText supports some sort of include system, so that each gadget could have it's own .po, but they all get included into one big one? > * There are some string we also need to translate, in include/ we have > more strings to translate. > > Thats all folks ;-). > > I will split this mail and paste each part in the Wiki. > > Regards, > Pablo > > [1] http://drupal.org/node/275 |