Attachment 'user_moin1-5-5-a-1.diff'

Download

   1 --- user_old.py	2006-12-06 20:17:28.000000000 +0100
   2 +++ user.py	2006-12-06 20:18:28.000000000 +0100
   3 @@ -27,9 +27,9 @@
   4      @rtype: list
   5      @return: all user IDs
   6      """
   7 -    import re, dircache
   8 +    import re, os
   9      user_re = re.compile(r'^\d+\.\d+(\.\d+)?$')
  10 -    files = dircache.listdir(request.cfg.user_dir)
  11 +    files = os.listdir(request.cfg.user_dir)
  12      userlist = [f for f in files if user_re.match(f)]
  13      return userlist
  14  

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2006-12-07 19:38:11, 5.1 KB) [[attachment:dircache.png]]
  • [get | view] (2006-12-06 19:36:52, 0.4 KB) [[attachment:user_moin1-5-5-a-1.diff]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.