Univention Bugzilla – Attachment 6651 Details for
Bug 37694
Uploading files in distribution: Umlauts do not work
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
things
37694.patch (text/plain), 1.60 KB, created by
Florian Best
on 2015-02-06 15:02:47 CET
(
hide
)
Description:
things
Filename:
MIME Type:
Creator:
Florian Best
Created:
2015-02-06 15:02:47 CET
Size:
1.60 KB
patch
obsolete
>diff --git a/ucs-school-4.0/ucs-test-ucsschool/90_ucsschool/essential/distribution.py b/ucs-school-4.0/ucs-test-ucsschool/90_ucsschool/essential/distribution.py >index b9e5c6d..b6d5e4f 100644 >--- a/ucs-school-4.0/ucs-test-ucsschool/90_ucsschool/essential/distribution.py >+++ b/ucs-school-4.0/ucs-test-ucsschool/90_ucsschool/essential/distribution.py >@@ -135,7 +135,7 @@ def idir(self, path): > for root, _, filenames in os.walk(path): > for f in filenames: > files.append(os.path.relpath(os.path.join(root, f), path)) >- return files >+ return set(files) > > def genData(self, file_name, content_type, boundary, flavor): > """Generates data in the form to be sent via http POST request.\n >@@ -502,8 +502,9 @@ def check_distribute(self, users): > path = self.getUserFilesPath(user, 'distribute') > print 'file_path=', path > existingFiles = self.idir(path) >- print 'existingFiles=', existingFiles >- if self.files != existingFiles: >+ print 'existingFiles=', sorted(existingFiles) >+ print ' Files=', sorted(self.files) >+ if set(self.files) != existingFiles: > utils.fail( > 'Project files were not distributed for user %s' % > (user,)) >@@ -530,8 +531,9 @@ def check_collect(self, users): > path = self.getUserFilesPath(user, 'collect') > print 'file_path=', path > existingFiles = self.idir(path) >- print 'existingFiles=', existingFiles >- if self.files != existingFiles: >+ print 'existingFiles=', sorted(existingFiles) >+ print ' Files=', sorted(self.files) >+ if set(self.files) != existingFiles: > utils.fail( > 'Project files were not collected for user %s' % > (user,))
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 37694
: 6651