Browse Source

Some grammar and typo fixes

pull/1220/head
Jeff Widman 10 years ago committed by Markus Unterwaditzer
parent
commit
f80ea4fe5d
  1. 16
      docs/extensiondev.rst

16
docs/extensiondev.rst

@ -48,7 +48,7 @@ that people can easily install the development version into their
virtualenv without having to download the library by hand. virtualenv without having to download the library by hand.
Flask extensions must be licensed under a BSD, MIT or more liberal license Flask extensions must be licensed under a BSD, MIT or more liberal license
to be able to be enlisted in the Flask Extension Registry. Keep in mind in order to be listed in the Flask Extension Registry. Keep in mind
that the Flask Extension Registry is a moderated place and libraries will that the Flask Extension Registry is a moderated place and libraries will
be reviewed upfront if they behave as required. be reviewed upfront if they behave as required.
@ -154,10 +154,10 @@ What to use depends on what you have in mind. For the SQLite 3 extension
we will use the class-based approach because it will provide users with an we will use the class-based approach because it will provide users with an
object that handles opening and closing database connections. object that handles opening and closing database connections.
What's important about classes is that they encourage to be shared around When designing your classes, it's important to make them easily reusable
on module level. In that case, the object itself must not under any at the module level. This means the object itself must not under any
circumstances store any application specific state and must be shareable circumstances store any application specific state and must be shareable
between different application. between different applications.
The Extension Code The Extension Code
------------------ ------------------
@ -334,10 +334,10 @@ development. If you want to learn more, it's a very good idea to check
out existing extensions on the `Flask Extension Registry`_. If you feel out existing extensions on the `Flask Extension Registry`_. If you feel
lost there is still the `mailinglist`_ and the `IRC channel`_ to get some lost there is still the `mailinglist`_ and the `IRC channel`_ to get some
ideas for nice looking APIs. Especially if you do something nobody before ideas for nice looking APIs. Especially if you do something nobody before
you did, it might be a very good idea to get some more input. This not you did, it might be a very good idea to get some more input. This not only
only to get an idea about what people might want to have from an generates useful feedback on what people might want from an extension, but
extension, but also to avoid having multiple developers working on pretty also avoids having multiple developers working in isolation on pretty much the
much the same side by side. same problem.
Remember: good API design is hard, so introduce your project on the Remember: good API design is hard, so introduce your project on the
mailinglist, and let other developers give you a helping hand with mailinglist, and let other developers give you a helping hand with

Loading…
Cancel
Save