List Info

Thread: Generate Drupal code from (textfile) specs




Generate Drupal code from (textfile) specs
country flaguser name
Germany
2007-10-29 07:06:43
At http://drupal.org/p
roject/builder, I have started a module that 
(currently only) generates a node module from textfile
specs. The 
module uses YAML as its specification language, a simple
text format 
that has become popular as the configuration language for
recent MVC 
frameworks.

I believe that exploiting the new APIs in Drupal 6, this
approach can 
be extended to describe a whole Drupal site including
installation 
profiles, views, mappings between taxonomy and menu, theme
files etc.

The module somewhat contradicts the traditional Drupal way
of providing 
an admin GUI for site configuration. Using text files as
input, 
however, allows me to concentrate on the output side if
things. As a 
benefit, text files can be kept in a code repository. Once
the feature 
set grows richer, maybe the module can even generate its own
GUI by 
creating a set of FAPI data structures.  

Please, have a look at it and tell me what you think.
-- 
Olav Schettler

Re: Generate Drupal code from (textfile) specs
country flaguser name
United States
2007-10-29 08:41:19
Quoting Olav Schettler <olav.schettlercontaire.de>:

>
> Please, have a look at it and tell me what you think.

Why not XML?

Earnie -- http://for-my-kids.com/
-- http://give-me-an-offer.
com/


Re: Generate Drupal code from (textfile) specs
user name
2007-10-29 09:06:38
please lets not have a pointless format war. this is the
least
interesting aspect of olav's fine proposal.

On 10/29/07, Earnie Boyd <earnieusers.sourceforge.net>
wrote:
> Quoting Olav Schettler <olav.schettlercontaire.de>:
>
> >
> > Please, have a look at it and tell me what you
think.
>
> Why not XML?
>
> Earnie -- http://for-my-kids.com/
> -- http://give-me-an-offer.
com/
>
>

Re: Generate Drupal code from (textfile) specs
country flaguser name
United States
2007-10-29 11:32:48
Quoting Moshe Weitzman <weitzmantejasa.com>:

> please lets not have a pointless format war. this is
the least
> interesting aspect of olav's fine proposal.
>

No war intended and my question is still valid.  We already
deal with 
XML so why add YADF to deal with?  XML is handled natively
(at least 
with PHP 5) while YAML isn't.  Olav's proposal is fine
indeed; the 
methods need hashed since his proposal may one day become
the 
recommended way to do things.

Earnie -- http://for-my-kids.com/
-- http://give-me-an-offer.
com/


Re: Generate Drupal code from (textfile) specs
user name
2007-10-29 13:26:10
Please reflect upon http://www.bikeshed.com/. It is pays homage to the
greatest list email ever sent.

On 10/29/07, Earnie Boyd <earnieusers.sourceforge.net>
wrote:
> Quoting Moshe Weitzman <weitzmantejasa.com>:
>
> > please lets not have a pointless format war. this
is the least
> > interesting aspect of olav's fine proposal.
> >
>
> No war intended and my question is still valid.  We
already deal with
> XML so why add YADF to deal with?  XML is handled
natively (at least
> with PHP 5) while YAML isn't.  Olav's proposal is fine
indeed; the
> methods need hashed since his proposal may one day
become the
> recommended way to do things.

Re: Generate Drupal code from (textfile) specs
country flaguser name
United States
2007-10-29 13:41:20
Quoting Moshe Weitzman <weitzmantejasa.com>:

> Please reflect upon http://www.bikeshed.com/. It is pays homage to the
> greatest list email ever sent.
>

You seem to be infatuated by the packaging to see what is
inside.  
Beyond that, opinions were asked for and my liking of color
is 
different than yours.  I gave my opinion, I think the idea
is great; 
but, I think the implementation should be XML because it is
a standard 
that PHP understands without having to include another
library or 
without creating other methods to parse the data via PHP or
Drupal.

Earnie -- http://for-my-kids.com/
-- http://give-me-an-offer.
com/


Re: Generate Drupal code from (textfile) specs
country flaguser name
United States
2007-10-29 13:51:53
LOL, that's priceless.



Moshe Weitzman wrote:
> Please reflect upon http://www.bikeshed.com/. It is pays homage to the
> greatest list email ever sent.
> 
> On 10/29/07, Earnie Boyd <earnieusers.sourceforge.net> wrote:
>> Quoting Moshe Weitzman <weitzmantejasa.com>:
>>
>>> please lets not have a pointless format war.
this is the least
>>> interesting aspect of olav's fine proposal.
>>>
>> No war intended and my question is still valid.  We
already deal with
>> XML so why add YADF to deal with?  XML is handled
natively (at least
>> with PHP 5) while YAML isn't.  Olav's proposal is
fine indeed; the
>> methods need hashed since his proposal may one day
become the
>> recommended way to do things.

-- 
Sean Robertson
Web Developer
NGP Software, Inc.
seanrngpsoftware.com
(202) 686-9330
http://www.ngpsoftware.com


[1-7]

about | contact  Other archives ( Real Estate discussion Medical topics )