<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -4,7 +4,6 @@ Important:
 
 [ ] Add authorization.
 [ ] Write an intro tutorial (in progress)
-[ ] Add sessions to documentation
 
 
 Secondary:
@@ -12,7 +11,6 @@ Secondary:
 [ ] Add other URL wildcards ('#' for numbers, '@' for letters)
 [ ] Allow unnamed URL params
 [ ] Allow URL parameters with the same name
-[ ] Make sure internal code uses updated functions (i.e. config())
 [ ] Decide if '/foo/*:bar/' should match '/foo/'
 [ ] Add functionality to dev server to automatically reload changed files (as
     in Werkzeug's run_with_reloader)</diff>
      <filename>TODO</filename>
    </modified>
    <modified>
      <diff>@@ -315,7 +315,7 @@ class JunoRequest(object):
     def __getattr__(self, attr):
         # Try returning values from self.raw
         if attr in self.keys(): return self.raw[attr]
-        if attr == 'session':
+        if attr == 'session' and config('log'):
             print &gt;&gt;sys.stderr, &quot;Error: To use sessions, enable 'use_sessions'&quot;
             print &gt;&gt;sys.stderr, &quot;       when calling juno.init()&quot;
             print &gt;&gt;sys.stderr, &quot;&quot;
@@ -663,8 +663,8 @@ def model(model_name, **kwargs):
     return tmp
 
 def find(model_cls):
-    if type(model_cls) == str:
-        try: model_cls = models[model_cls]
+    if isinstance(mode_cls, str):
+        try: model_cls = config('db_models')[model_cls]
         except: raise NameError(&quot;No such model exists ('%s')&quot; %model_cls)
     return session().query(model_cls)
 </diff>
      <filename>juno.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7728147f7012def7a03aa98978bc167b8c3000a1</id>
    </parent>
  </parents>
  <author>
    <name>Brian Reily</name>
    <email>brian@brianreily.com</email>
  </author>
  <url>http://github.com/breily/juno/commit/350306d39714d36e0d4f857ae8e46b188862c243</url>
  <id>350306d39714d36e0d4f857ae8e46b188862c243</id>
  <committed-date>2009-03-25T17:19:17-07:00</committed-date>
  <authored-date>2009-03-25T17:19:17-07:00</authored-date>
  <message>* Fixed bug in model.find(); used old model_table instead of config('db_models')
* Made session error message only print if config('log') is on
* Remove TODO items</message>
  <tree>41957a6fa3708f5ee1c9c746e64dbf7dc5f64e85</tree>
  <committer>
    <name>Brian Reily</name>
    <email>brian@brianreily.com</email>
  </committer>
</commit>
