Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MJU-POPS
ckanext-dgu
Commits
1e200ef1
Commit
1e200ef1
authored
Apr 07, 2015
by
David Read
Browse files
[1827] Sync email addresses with drupal - tidy
parent
e00ef798
Changes
1
Hide whitespace changes
Inline
Side-by-side
ckanext/dgu/commands/user_sync.py
View file @
1e200ef1
import
logging
#from ckan.plugins import toolkit
from
ckan.lib.cli
import
CkanCommand
from
ckanext.dgu.bin.running_stats
import
StatsList
...
...
@@ -27,18 +26,8 @@ class UserSync(CkanCommand):
def
command
(
self
):
self
.
_load_config
()
self
.
log
=
logging
.
getLogger
(
__name__
)
#model.Session.remove()
#model.Session.configure(bind=model.meta.engine)
#model.repo.new_revision()
self
.
log
.
info
(
'Database access initialised'
)
#root_url = config.get('ckan.site_url', 'http://data.gov.uk')
#self.log.debug("Drupal URL: " + root_url)
#if toolkit.asbool(config.get('debug')):
# root_url = "http://data.gov.uk"
# self.log.debug("Overriding root_url in DEBUG ")
self
.
sync
(
write
=
self
.
options
.
write
)
def
sync
(
self
,
write
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment