Permalink
Browse files

fix created database

  • Loading branch information...
1 parent 5d611b8 commit d8e36e1ce2e78abe622e601be1c1286f0f426759 @benoitc benoitc committed Feb 2, 2010
Showing with 13 additions and 12 deletions.
  1. +1 −0 MANIFEST.in
  2. +2 −2 couchapp/couchdbclient.py
  3. +10 −10 setup.py
View
@@ -6,3 +6,4 @@ include distribute_setup.py
recursive-include templates *
recursive-include vendor *
recursive-include tests/testapp *
+recursive-include contrib *
@@ -200,11 +200,11 @@ def __init__(self, ui, dburl, server=None, create=False):
if create and not self.dbname in server.all_dbs():
try:
res = server.res.put('/%s/' % dbname)
+ if ui.verbose >= 1 and res['ok']:
+ self.ui.logger.info("database %s created." % dbname)
except PreconditionFailed:
if self.ui.verbose >= 1:
self.ui.logger.info("database %s not created, already exists" % dbname)
- if ui.verbose >= 1 and res['ok']:
- self.ui.logger.info("database %s created." % dbname)
self.server = server
self.res = server.res.clone()
View
@@ -83,6 +83,16 @@
document-based approach.""",
keywords = 'couchdb couchapp',
platforms = ['any'],
+ classifiers = [
+ 'License :: OSI Approved :: Apache Software License',
+ 'Intended Audience :: Developers',
+ 'Intended Audience :: System Administrators',
+ 'Development Status :: 4 - Beta',
+ 'Programming Language :: Python',
+ 'Operating System :: OS Independent',
+ 'Topic :: Database',
+ 'Topic :: Utilities',
+ ],
packages=packages,
data_files = data_files,
@@ -95,16 +105,6 @@
license='LICENSE',
readme='contrib/macosx/Readme.html',
welcome='contrib/macosx/Welcome.html')),
- classifiers = [
- 'License :: OSI Approved :: Apache Software License',
- 'Intended Audience :: Developers',
- 'Intended Audience :: System Administrators',
- 'Development Status :: 4 - Beta',
- 'Programming Language :: Python',
- 'Operating System :: OS Independent',
- 'Topic :: Database',
- 'Topic :: Utilities',
- ],
test_suite='tests',
**extra
)

0 comments on commit d8e36e1

Please sign in to comment.