Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubicweb
Commits
9b1c7f337eb3
Commit
0cd6e1ff
authored
Dec 09, 2015
by
Julien Cristau
Browse files
[devtools] stop using datetime.now() in cwctl newcube and i18ncube
parent
625b951b4a1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
devtools/devctl.py
View file @
9b1c7f33
...
...
@@ -26,7 +26,7 @@ __docformat__ = "restructuredtext en"
# possible (for cubicweb-ctl reactivity, necessary for instance for usable bash
# completion). So import locally in command helpers.
import
sys
from
datetime
import
datetime
from
datetime
import
datetime
,
date
from
os
import
mkdir
,
chdir
,
path
as
osp
from
warnings
import
warn
...
...
@@ -128,7 +128,7 @@ def _generate_schema_pot(w, vreg, schema, libconfig=None):
from
cubicweb.i18n
import
add_msg
from
cubicweb.schema
import
NO_I18NCONTEXT
,
CONSTRAINTS
w
(
'# schema pot file, generated on %s
\n
'
%
datetime
.
now
().
strftime
(
'%Y-%m-%d %H:%M:%S'
))
%
datetime
.
utc
now
().
strftime
(
'%Y-%m-%d %H:%M:%S'
))
w
(
'#
\n
'
)
w
(
'# singular and plural forms for each entity type
\n
'
)
w
(
'
\n
'
)
...
...
@@ -660,7 +660,7 @@ layout, and a full featured cube with "full" layout.',
'longdesc'
:
longdesc
or
shortdesc
,
'dependencies'
:
dependencies
,
'version'
:
cubicwebversion
,
'year'
:
str
(
date
time
.
now
().
year
),
'year'
:
str
(
date
.
today
().
year
),
'author'
:
self
[
'author'
],
'author-email'
:
self
[
'author-email'
],
'author-web-site'
:
self
[
'author-web-site'
],
...
...
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