Re: [Jaws-project-developers] Some tasks for this Week
Status: Alpha
Brought to you by:
ionmx
|
From: Pablo F. <pa...@pa...> - 2005-01-18 18:20:21
|
Hello, =20 > 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). Great!. Also we are open for people who would like to help with this (I know that no one is going to raise the hand). > Should multiple sites have to use a different database completely? Cof cof cof.. I forgot to add this point in the mail, however its already in the wiki. Maybe we can have: $db_prefix."_blog"; So, if you maintain other blogs, you can declare the $db_prefix also as the db username, so: michael_blog=20 Could be a good idea. The only difficult task is how we are going to deal with db prefixes in our queries? I have some ideas: 1. Change all of our queries, so that all table names in our queries will be named to: $GLOBALS["prefix"]."_tablename". This is like having a kick in the nuts. 2. Don't change nothing in our queries, just edit our DB Drivers. Lets look for a nice regexp (don't look at me!) that can replace all the table names with other thing ($prefix.\\1, for example). Any geek in regexp's around here? 3. Stole ideas from other projects, like drupal (they are using prefixes). >=20 > > 3. JDD - Jaws Directory Distribution (No, the J is not Java). > >=20 > Are you sure... you did seem very keen for us to have *coffee* with this > e-mail. :-P=20 > > |-- resources > > | `-- xml > > | `-- files=20 > | `-- phoo <-- This is likely to be needed ;) > > |-- themes > > `-- wsadmin.php Heh, yes, we need there phoo ;-). Yesterday talking with ion we decided to rename resources to data. And do some changes in the JDD.=20 Now, we are going to have all the *.php files inside /gadgets/Blog (for example): BlogModel.php (Model), Blog.php (Gadget), BlogWebService.php and BlogInfo.php (Information of the gadget). And also have the directory Resources inside the directory for images, css, and other stuff that the model/gadget needs to run.=20 You can get a better idea if you take a look to the JDD section in the wiki [1]. > 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. What do you mean by cache? cache for templates.. cache for xml??.. cache and other stuff that are per user (per directory installation I mean) will need go to 'data' directory. > 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? I don't think its so hard to keep all gadgets in one file. You can keep all the translations in one file I did that in C and C# long time ago, and as you know thats not a PHP dep, its just a shell command. The difficult task will be: How to get together one non-official gadget translation with our big file?. See ya, Pablo [1] http://wiki.jaws.com.mx/doku.php?id=3Djaws:proposals:new_directory_layout --=20 Pablo Fischer Sandoval (pablo [arroba/at] pablo.com.mx) Cel: (044-55) 2689-6351 Fingerprint: 5973 0F10 543F 54AE 1E41 EC81 0840 A10A 74A4 E5C0 http://www.pablo.com.mx http://www.debianmexico.org |