Fwd: Backpedaling on tg-admin

1 view
Skip to first unread message

Kevin Dangoor

unread,
Jun 26, 2007, 9:36:54 PM6/26/07
to pyg...@googlegroups.com


Begin forwarded message:

From: Kevin Dangoor <k...@blazingthings.com>
Date: June 26, 2007 9:31:45 PM GMT-04:00
Subject: Backpedaling on tg-admin

I'm starting to think we should ditch tg-admin2. If we want higher-level commands, it's probably better to create our own paster commands... it'll be easier and more obvious for people if we just use paster so that any docs they find about it will immediate click as "oh, I can do that". If they're just used to tg-admin, they might not immediately think they can use paster commands.



Noah Gift

unread,
Jun 26, 2007, 9:39:36 PM6/26/07
to pyg...@googlegroups.com
Since I made the horrendous abomination I agree :)  It was more of a lets see what happens in 30 minutes :)  It looks like paster can be sub classed and was actually meant to be subclassed.  Maybe there could be some extra tool that is tg-admin specific, but paster is pretty sweet I agree!
--
http://www.blog.noahgift.com

Kevin Dangoor

unread,
Jun 26, 2007, 9:53:12 PM6/26/07
to pyg...@googlegroups.com
I didn't mean that as a complaint about what was there... I was suggesting on IRC on Saturday that we have a tg-admin, but I'm now thinking that we're probably better off just using paster.

Kevin

Noah Gift

unread,
Jun 26, 2007, 10:01:59 PM6/26/07
to pyg...@googlegroups.com
I didn't take it as a complaint :)  I am glad you like paster too.  Ian did a great job with it.  Now if you need someone to help make some kind of special tg command line tool...that would be cool.  I still like the idea of being able to change project names on the fly for example....

On 6/26/07, Kevin Dangoor <dan...@gmail.com> wrote:
I didn't mean that as a complaint about what was there... I was suggesting on IRC on Saturday that we have a tg-admin, but I'm now thinking that we're probably better off just using paster.

 
Kevin

On Jun 26, 2007, at 9:39 PM, Noah Gift wrote:

Since I made the horrendous abomination I agree :) It was more of a lets see what happens in 30 minutes :) It looks like paster can be sub classed and was actually meant to be subclassed. Maybe there could be some extra tool that is tg-admin specific, but paster is pretty sweet I agree!

On 6/26/07, Kevin Dangoor <dan...@gmail.com > wrote:


Begin forwarded message:

From: Kevin Dangoor <k...@blazingthings.com >
Date: June 26, 2007 9:31:45 PM GMT-04:00
Subject: Backpedaling on tg-admin

I'm starting to think we should ditch tg-admin2. If we want higher-level commands, it's probably better to create our own paster commands... it'll be easier and more obvious for people if we just use paster so that any docs they find about it will immediate click as "oh, I can do that". If they're just used to tg-admin, they might not immediately think they can use paster commands.









--
http://www.blog.noahgift.com





 
--
Kevin Dangoor
TurboGears

 

 


 





--
http://www.blog.noahgift.com

Kevin Dangoor

unread,
Jun 26, 2007, 10:04:39 PM6/26/07
to pyg...@googlegroups.com
On Jun 26, 2007, at 10:01 PM, Noah Gift wrote:

> I didn't take it as a complaint :) I am glad you like paster too.
> Ian did a great job with it. Now if you need someone to help make
> some kind of special tg command line tool...that would be cool. I
> still like the idea of being able to change project names on the
> fly for example....
>

My thinking was that any cool extra behavior we want, we can
implement as paster commands...

paster change_project_name_on_the_fly foo bar

though we might want to edit that name down a bit :)

Kevin

gas...@gmail.com

unread,
Jun 27, 2007, 3:48:06 AM6/27/07
to pylonsturbogears_sprint
It's fine to work without tg-admin but I'm still missing the
quickstart command since its easier than the default paster create::

$ paster create --template=turbogears2

To me the problem of above command is '--template=turbogears2' is
totally a kind of 'repeat yourself' thiing.

Besides, "paster create" command neither pass in the parameters
(please correct me if I am wrong) nor give a default template as "tg-
admin quickstart" does.

I wonder to wrap the quickstart command upon paster as a shortcut of
'paster create --template=turbogears2',
that tg users would feel more comfortable with::

$ paster quickstart


And I'd like to try to make the 'paster crud' tool (tgcrud2, based on
genshi+toscawidget) while the db/widget middleware is ready.

Alberto Valverde

unread,
Jun 27, 2007, 6:54:19 AM6/27/07
to pyg...@googlegroups.com
Agree. tg-admin made sense in a transition version from 1.0 to make 1.0ers at home. With all the non-televised revolution that's going on for 2.0 I think it's time to remove the extra indirection to paster.

Alberto

Kevin Dangoor

unread,
Jun 27, 2007, 7:25:34 AM6/27/07
to pyg...@googlegroups.com
On 6/27/07, gas...@gmail.com <gas...@gmail.com> wrote:
> I wonder to wrap the quickstart command upon paster as a shortcut of
> 'paster create --template=turbogears2',
> that tg users would feel more comfortable with::
>
> $ paster quickstart

Yes, this is exactly what I was thinking. There's no reason we need to
forgo our shortcuts, but we just implement those as paster commands
rather than a full, independent wrapper script.

Kevin

Noah Gift

unread,
Jun 27, 2007, 7:29:12 AM6/27/07
to pyg...@googlegroups.com
I would love to help out with some other people on implementing this for you guys.  I am writing a book and one of the chapters is command line tools in python so...this is good material for me. I will go the extra nine yards as I have a selfish reason for doing so :)

gas...@gmail.com

unread,
Jun 27, 2007, 10:13:35 AM6/27/07
to pylonsturbogears_sprint
On 6月27日, 下午7時25分, "Kevin Dangoor" <dang...@gmail.com> wrote:

Hi,

A good news! I just commit an workable 'paster quickstart' to svn :)
http://trac.turbogears.org/changeset/3159

The 'paster quickstart' port preserves all of 'tg-admin quickstart''s
parameters.

I found it's not hard to port tg-admin command to paster by following
the paster-script developer doc
http://pythonpaste.org/script/developer.html

--
Fred

Reply all
Reply to author
Forward
0 new messages