Index: waeup/branches/ulif-rewrite/src/waeup/browser.txt
===================================================================
--- waeup/branches/ulif-rewrite/src/waeup/browser.txt	(revision 4271)
+++ waeup/branches/ulif-rewrite/src/waeup/browser.txt	(revision 4272)
@@ -115,5 +115,9 @@
   >>> browser.getLink('Data Center').click()
 
-By default we have a directory in the sources for upload:
+Setting the file path
+---------------------
+
+A datacenter stores files in a path in filesystem. By default this is
+a directory in the sources:
 
   >>> print browser.contents
@@ -123,2 +127,73 @@
   ...
 
+Going to 'Settings` we can change the path:
+
+  >>> browser.getLink('Settings').click()
+  >>> pathsetting = browser.getControl(name='newpath')
+
+We create a directory and set it as our upload path:
+
+  >>> import os
+  >>> cwd = os.getcwd()
+  >>> uploadpath = os.path.join(cwd, 'testfiles')
+  >>> os.mkdir(uploadpath)
+  >>> pathsetting.value = uploadpath
+
+And submit the form:
+
+  >>> browser.getControl(name='save').click()
+
+We clean up the set directory path, as there might be some files be
+copied some files from installation:
+
+  >>> files = os.listdir(uploadpath)
+  >>> for filename in files:
+  ...   os.unlink(os.path.join(uploadpath, filename))
+
+The new upload directory is now empty:
+
+  >>> os.listdir(uploadpath)
+  []
+
+Now we can upload files. Most interesting files might be CSV files,
+that can be imported lateron. We create a CSV file containing faculty
+descriptions:
+
+  >>> open('faculties.csv', 'wb').write(
+  ... """code,title,title_prefix
+  ... FA,Arts,Faculty
+  ... FS,Sciences,Faculty
+  ... """)
+
+Now we can upload this file. To do this, we first go to the upload
+page:
+
+  >>> browser.getLink('Upload data').click()
+
+and enter the appropriate data in the form:
+
+  >>> filewidget = browser.getControl(name='uploadfile:file')
+  >>> filewidget
+  <Control name='uploadfile:file' type='file'>
+ 
+A sidenote for developers: by marking the filewidget with the
+``:file`` extension, we tell Zope to handle this field as a file
+widget.
+
+  >>> import cStringIO
+  >>> filecontents = cStringIO.StringIO(
+  ...   open('faculties.csv', 'rb').read())
+  >>> filewidget.add_file(filecontents, 'text/plain', 'myfaculties.csv')
+  
+  >>> browser.getControl(name='SUBMIT').click()
+
+The file was indeed uploaded:
+
+  >>> os.listdir(uploadpath)
+  ['myfaculties.csv']
+
+Clean up:
+
+  >>> import os
+  >>> import shutil
+  >>> shutil.rmtree(uploadpath)
