<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -274,14 +274,14 @@ def create_model(request):
 def add_author_picture(request):
     id = request.POST['pk']
     file = request.FILES['file']
-    filename = file['filename']
+    filename = file.name
     filebase = '%s/lifeflow/author/' % settings.MEDIA_ROOT
     filepath = &quot;%s%s&quot; % (filebase, filename)
     while (os.path.isfile(filepath)):
         filename = &quot;_%s&quot; % filename
         filepath = &quot;%s%s&quot; % (filebase, filename)
     fd = open(filepath, 'wb')
-    fd.write(file['content'])
+    fd.write(file.read())
     fd.close()
     
     author = Author.objects.get(pk=id)
@@ -299,14 +299,16 @@ def add_resource(request):
     file = request.FILES['file']
     title = request.POST['title']
     markdown_id = request.POST['markdown_id']
-    filename = file['filename']
+    filename = file.name
     filebase = '%s/lifeflow/resource/' % settings.MEDIA_ROOT
     filepath = &quot;%s%s&quot; % (filebase, filename)
     while (os.path.isfile(filepath)):
         filename = &quot;_%s&quot; % filename
         filepath = &quot;%s%s&quot; % (filebase, filename)
+    print filepath
     fd = open(filepath, 'wb')
-    fd.write(file['content'])
+
+    fd.write(file.read())
     fd.close()
     rec = Resource(title=title, markdown_id=markdown_id, content=&quot;lifeflow/resource/%s&quot; % filename)
     rec.save()
@@ -324,7 +326,7 @@ CODE_EXTS = [&quot;css&quot;, &quot;html&quot;, &quot;htm&quot;, &quot;c&quot;, &quot;o&quot;, &quot;py&quot;, &quot;lisp&quot;, &quot;js&quot;, &quot;xml&quot;,
 @login_required
 def display_resource(request, id):
     res = Resource.objects.get(pk=id)
-    file = res.content.split(&quot;/&quot;)[-1]
+    file = res.content.path.split(&quot;/&quot;)[-1]
     opts = {'object':res,'file':file}
     ext = opts['file'].split(&quot;.&quot;)[-1]
     opts['type'] = 'file'
@@ -333,7 +335,7 @@ def display_resource(request, id):
     elif ext in ZIP_EXTS:
         try:
             opts['type'] = &quot;zip&quot;
-            zf = ZipFile(res.get_content_filename(),'r')
+            zf = ZipFile(res.content.path,'r')
             opts['files_list'] = zf.namelist()
             zf.close()
         except IOError:
@@ -341,7 +343,7 @@ def display_resource(request, id):
     else:
         try:
             lexer = get_lexer_for_filename(file)
-            f = open(res.get_content_filename(),'r')
+            f = open(res.content.path,'r')
             data = f.read()
             f.close()
             opts['highlighted_code'] = highlight(data,lexer,HtmlFormatter())</diff>
      <filename>editor/views.py</filename>
    </modified>
    <modified>
      <diff>@@ -307,7 +307,7 @@ class Flow(models.Model):
 
 
 class Language(models.Model):
-    title = models.CharField(max_length=50, core=True)
+    title = models.CharField(max_length=50)
     slug = models.SlugField()
 
     def __unicode__(self):
@@ -415,7 +415,7 @@ class Series(models.Model):
     &quot;&quot;&quot;
     A series is a collection of Entry instances on the same theme.
     &quot;&quot;&quot;
-    title = models.CharField(max_length=200, core=True)
+    title = models.CharField(max_length=200)
     slug= models.SlugField()
 
     class Meta:
@@ -476,7 +476,7 @@ class SiteToNotify(models.Model):
 
 class Tag(models.Model):
     &quot;Tags are associated with Entry instances to describe their contents.&quot;
-    title = models.CharField(max_length=50, core=True)
+    title = models.CharField(max_length=50)
     slug = models.SlugField()
 
 </diff>
      <filename>models.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>75a32f85f550779eb02e73c68281bdd1afc2b5f5</id>
    </parent>
  </parents>
  <author>
    <name>Will Larson</name>
    <email>lethain@gmail.com</email>
  </author>
  <url>http://github.com/lethain/lifeflow/commit/704dd6df898fb8b81c79106cdf07c257f29511b9</url>
  <id>704dd6df898fb8b81c79106cdf07c257f29511b9</id>
  <committed-date>2008-08-27T09:31:43-07:00</committed-date>
  <authored-date>2008-08-27T09:31:43-07:00</authored-date>
  <message>File uploads and display in LFE now updated to Django Beta 2 API.</message>
  <tree>31b87ba3dc6100101fb32d6f90d494a7d86df419</tree>
  <committer>
    <name>Will Larson</name>
    <email>lethain@gmail.com</email>
  </committer>
</commit>
