Skip to content

Commit 56e0d90

Browse files
committed
Merge pull request #60 from al-indigo/tmprefactor
0.81 release
2 parents 33a1fe6 + 1cfced7 commit 56e0d90

29 files changed

+563
-108
lines changed

lingvodoc/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def configure_routes(config):
8888
config.add_route('users', '/users')
8989

9090
# web-view
91-
config.add_route(name='new_dictionary', pattern='/dashboard/create_dictionary')
91+
config.add_route(name='new_dictionary', pattern='/create_dictionary')
9292

9393
# web-view
9494
config.add_route(name='edit_dictionary_properties', pattern='/dictionary/{client_id}/{object_id}/edit')

lingvodoc/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ class UserBlobs(Base, TableNameMixin, CompositeIdMixin):
571571

572572
def acl_by_groups(object_id, client_id, subject):
573573
acls = [] #TODO DANGER if acls do not work -- incomment string below
574-
# acls += [(Allow, Authenticated, ALL_PERMISSIONS)]
574+
acls += [(Allow, Authenticated, ALL_PERMISSIONS)]
575575
groups = DBSession.query(Group).filter_by(subject_override=True).join(BaseGroup).filter_by(subject=subject).all()
576576

577577
groups += DBSession.query(Group).filter_by(subject_client_id=client_id, subject_object_id=object_id).\
@@ -590,7 +590,7 @@ def acl_by_groups(object_id, client_id, subject):
590590

591591
def acl_by_groups_single_id(object_id, subject):
592592
acls = [] #TODO DANGER if acls do not work -- incomment string below
593-
# acls += [(Allow, Authenticated, ALL_PERMISSIONS)]
593+
acls += [(Allow, Authenticated, ALL_PERMISSIONS)]
594594
groups = DBSession.query(Group).filter_by(subject_override=True).join(BaseGroup).filter_by(subject=subject).all()
595595
groups += DBSession.query(Group).filter_by(subject_client_id=None, subject_object_id=object_id).\
596596
join(BaseGroup).filter_by(subject=subject).all()

lingvodoc/scripts/initializedb.py

Lines changed: 256 additions & 45 deletions
Large diffs are not rendered by default.

lingvodoc/static/js/create-dictionary.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lingvodoc/static/js/dashboard.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lingvodoc/static/js/edit-dictionary.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lingvodoc/static/js/home.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lingvodoc/static/js/lingvodoc.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lingvodoc/static/js/user-upload.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lingvodoc/templates/create_dictionary.pt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
</div>
4545
<div id="navbar" class="navbar-collapse collapse">
4646
<ul class="nav navbar-nav">
47-
<li class="active"><a href="">Dictionaries</a></li>
47+
<li class="active"><a href="${request.route_url('dashboard')}">Dictionaries</a></li>
4848
<li><a href="${request.route_url('languages')}">Languages</a></li>
4949
<li><a href="#contact">Contact</a></li>
5050
<li><a href="#about">About</a></li>
@@ -118,7 +118,7 @@
118118

119119

120120
<div ng-if="wizard.mode == 'import'">
121-
<label for="selectFile">Select uploaded file</label>
121+
<label for="selectFile">Select uploaded file</label> (<a href="${request.route_url('blob_upload')}">Upload dictionary</a>)
122122
<select id="selectFile" class="form-control" ng-model="wizard.importedDictionaryId" ng-options="d.id as d.data.name for d in uploadedDictionaries track by d.id">
123123

124124
</select>
@@ -188,7 +188,7 @@
188188
<option value="image" ng-if="field.data_type != 'image'">Image</option>
189189
<option value="sound" ng-if="field.data_type == 'sound'" selected>Audio</option>
190190
<option value="sound" ng-if="field.data_type != 'sound'">Audio</option>
191-
<option value="grouping_tag" ng-if="field.data_type == 'grouping_tag'" selected>Groupping
191+
<option value="grouping_tag" ng-if="field.data_type == 'grouping_tag'" selected>Grouping
192192
tag
193193
</option>
194194
<option value="grouping_tag" ng-if="field.data_type != 'grouping_tag'">Groupping tag
@@ -271,7 +271,7 @@
271271
<!--?Next <span class="glyphicon glyphicon-circle-arrow-right"></span>-->
272272
<!--?</a>-->
273273

274-
<a class="btn btn-block btn-warning" ng-click="saveDictionary()">
274+
<a class="btn btn-block btn-warning" ng-click="createPerspective()">
275275
Complete <span class="glyphicon glyphicon-ok-sign"></span>
276276
</a>
277277

0 commit comments

Comments
 (0)