Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
9ee82664
Commit
9ee82664
authored
Jan 21, 2015
by
PkSM3
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BUGFIX] always rename file to upload
parent
aa7b57d4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
9 deletions
+11
-9
admin.py
node/admin.py
+8
-6
subcorpus.html
templates/subcorpus.html
+1
-1
mvc.html
templates/tests/mvc.html
+2
-2
No files found.
node/admin.py
View file @
9ee82664
...
...
@@ -120,12 +120,14 @@ class CustomForm(forms.Form):
"""
def
clean_file
(
self
):
file_
=
self
.
cleaned_data
.
get
(
'file'
)
#Filename length
if
len
(
file_
.
name
)
>
30
:
from
datetime
import
datetime
file_
.
name
=
str
(
datetime
.
now
()
.
microsecond
)
# raise forms.ValidationError(_('Come on dude, name too long. Now is:'+file_.name))
#File size
from
datetime
import
datetime
file_
.
name
=
str
(
datetime
.
now
()
.
microsecond
)
# #Filename length
# if len(file_.name)>30:
# from datetime import datetime
# file_.name = str(datetime.now().microsecond)
# # raise forms.ValidationError(_('Come on dude, name too long. Now is:'+file_.name))
# #File size
if
len
(
file_
)
>
104857600
:
raise
forms
.
ValidationError
(
_
(
'File to heavy! (<100MB).'
))
## File type:
...
...
templates/subcorpus.html
View file @
9ee82664
...
...
@@ -63,7 +63,7 @@ function deleteDuplicates(url) {
success
:
function
(
data
)
{
console
.
log
(
"in DeleteDuplicates"
)
console
.
log
(
data
)
$
(
"#delAll"
).
remove
();
location
.
reload
();
},
error
:
function
(
result
)
{
console
.
log
(
"Data not found"
);
...
...
templates/tests/mvc.html
View file @
9ee82664
...
...
@@ -242,12 +242,12 @@
</select>
<span
ng-if=
"filter.entity"
>
<select
ng-model=
"filter.column"
>
<option
ng-repeat=
"column in entities[filter.entity] | orderBy:'key'"
value=
"{{column.key}}"
>
{{column.key}}
</option>
<option
ng-repeat=
"column in entities[filter.entity] | orderBy:'key'"
value=
"{{column.key}}"
>
a
{{column.key}}
</option>
</select>
<span
ng-if=
"filter.column"
ng-repeat=
"column in entities[filter.entity]"
>
<span
ng-if=
"column.key == filter.column"
>
<select
ng-model=
"filter.operator"
>
<option
ng-repeat=
"operator in operators[column.type]"
value=
"{{operator.key}}"
>
{{operator.label}}
</option>
<option
ng-repeat=
"operator in operators[column.type]"
value=
"{{operator.key}}"
>
b
{{operator.label}}
</option>
</select>
<input
type=
"text"
ng-model=
"filter.value"
ng-change=
"updateQuery()"
>
</span>
...
...
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