Show More
@@ -19,6 +19,7 b' Authors:' | |||||
19 | import datetime |
|
19 | import datetime | |
20 | import os |
|
20 | import os | |
21 | import uuid |
|
21 | import uuid | |
|
22 | import glob | |||
22 |
|
23 | |||
23 | from tornado import web |
|
24 | from tornado import web | |
24 |
|
25 | |||
@@ -52,9 +53,11 b' class NotebookManager(LoggingConfigurable):' | |||||
52 |
|
53 | |||
53 | dict(notebook_id=notebook,name=name) |
|
54 | dict(notebook_id=notebook,name=name) | |
54 | """ |
|
55 | """ | |
55 |
names = os. |
|
56 | names = glob.glob(os.path.join(self.notebook_dir, | |
56 | names = [name.split(u'.')[0] |
|
57 | '*' + self.filename_ext)) | |
57 | for name in names if name.endswith(self.filename_ext)] |
|
58 | names = [os.path.splitext(os.path.basename(name))[0] | |
|
59 | for name in names] | |||
|
60 | ||||
58 | data = [] |
|
61 | data = [] | |
59 | for name in names: |
|
62 | for name in names: | |
60 | if name not in self.rev_mapping: |
|
63 | if name not in self.rev_mapping: |
General Comments 0
You need to be logged in to leave comments.
Login now