ANN: Flask-Script 0.3
- From:
- Dan Jacob
- Date:
- 2010-07-26 @ 07:54
I'd like to announce the release of Flask-Script 0.3.
This release introduces a breaking change, however one which removes
an unnecessary requirement in writing Flask scripts.
The run() method of the Command class, and commands created through
decorators, no longer take "app" as the first argument.
So where you have:
class MyCommand(Command):
def run(self, app):
....
you now write:
class MyCommand(Command):
def run(self):
....
and for decorated commands:
@manager.command
def hello(app, name):
print name
you now have:
@manager.command
def hello(name):
print name
As all commands execute within a Flask test context, you can access
the app through the current_app proxy.
There are also a few minor changes to the prompt_* functions and bug fixes.
Thanks again to the #pocoo community for feedback and suggestions.
Re: [flask] ANN: Flask-Script 0.3
- From:
- Dag Odenhall
- Date:
- 2010-07-27 @ 03:48
> I'd like to announce the release of Flask-Script 0.3.
>
> This release introduces a breaking change, however one which removes
> an unnecessary requirement in writing Flask scripts.
>
> The run() method of the Command class, and commands created through
> decorators, no longer take "app" as the first argument.
Nice!
I made some minor documentation fixes in my fork on bitbucket.
-- donri
Re: [flask] ANN: Flask-Script 0.3
- From:
- Dan Jacob
- Date:
- 2010-07-27 @ 07:15
Thanks !
BTW I use UK rather than US spelling, so "behaviour" instead of "behavior".
On 27 July 2010 04:48, Dag Odenhall <dag.odenhall@gmail.com> wrote:
>> I'd like to announce the release of Flask-Script 0.3.
>>
>> This release introduces a breaking change, however one which removes
>> an unnecessary requirement in writing Flask scripts.
>>
>> The run() method of the Command class, and commands created through
>> decorators, no longer take "app" as the first argument.
>
> Nice!
>
> I made some minor documentation fixes in my fork on bitbucket.
>
> -- donri
>
>
Re: [flask] ANN: Flask-Script 0.3
- From:
- Dag Odenhall
- Date:
- 2010-07-27 @ 07:35
tis 2010-07-27 klockan 08:15 +0100 skrev Dan Jacob:
> Thanks !
>
> BTW I use UK rather than US spelling, so "behaviour" instead of "behavior".
Aye, but then I suggest some US spellings be UKfied, such as
customized -> customised. I can rerun the spell checker with UK English.
Re: [flask] ANN: Flask-Script 0.3
- From:
- Thadeus Burgess
- Date:
- 2010-07-27 @ 07:42
You should alias them as both for those of us in the US =)
--
Thadeus
On Tue, Jul 27, 2010 at 2:35 AM, Dag Odenhall <dag.odenhall@gmail.com> wrote:
> tis 2010-07-27 klockan 08:15 +0100 skrev Dan Jacob:
>> Thanks !
>>
>> BTW I use UK rather than US spelling, so "behaviour" instead of "behavior".
>
> Aye, but then I suggest some US spellings be UKfied, such as
> customized -> customised. I can rerun the spell checker with UK English.
>
>
Re: [flask] ANN: Flask-Script 0.3
- From:
- Dag Odenhall
- Date:
- 2010-07-27 @ 08:22
> You should alias them as both for those of us in the US =)
This is documentation, not API.