On Wed, Feb 25, 2009 at 20:09, Ben Bangert <[email protected]> wrote:

> On Feb 25, 2009, at 12:25 AM, Max Ischenko wrote:
>
> I could help.
>
> I just forked the repo @
> http://bitbucket.org/max/jobs-page/overview/?point=3b84a68f3d84
>
>
> Cool, you'll notice in the templates/layout.mako that there's a Jobs
> section under Community that's commented out. My thought for the section was
> to have the latest jobs listed on the main page, with a left side bar for
> employers to browse through companies/individuals offering consulting
> for-hire services.
>
> To get Kai running, make sure you're using a fairly recent svn of CouchDB,
> and after loading the db (as the README mentions), sync the views with:
> paster setup-app development.ini
>
> To add a CouchDB view, add it to the class desired (as the rest of the
> models illustrate), then add it to the appropriate place in websetup.py so
> that it can be sync'd into the db with the setup-app command.
>
> I'd be happy to help with any other questions on CouchDB and the Kai
> project.
>


I had to add one exra step:
python setup.py compile_catalog (otherwise you get exception for missing
i18n files)

Now some pages do work but most yield this error (see below).
Looks like couchdb-python API has changed

E.g. changing
            c.pasties = Paste.by_tag_time(self.db, count=11)
into
            c.pasties = Paste.by_tag_time(self.db, limit=11)
fixes it.



File '/home/max/projects/jobs-page/kai/controllers/articles.py', line 37 in
index
  return render('/articles/index.mako')
File '/home/max/projects/jobs-page/kai/lib/base.py', line 27 in render
  return render_mako(template_name, extra_vars=extra_vars, **kwargs)
File
'/home/max/projects/jobs-page/py/lib/python2.5/site-packages/Pylons-0.9.7-py2.5.egg/pylons/templating.py',
line 274 in render_mako
  cache_type=cache_type, cache_expire=cache_expire)
File
'/home/max/projects/jobs-page/py/lib/python2.5/site-packages/Pylons-0.9.7-py2.5.egg/pylons/templating.py',
line 249 in cached_template
  return render_func()
File
'/home/max/projects/jobs-page/py/lib/python2.5/site-packages/Pylons-0.9.7-py2.5.egg/pylons/templating.py',
line 271 in render_template
  return literal(template.render_unicode(**globs))
File
'/home/max/projects/jobs-page/py/lib/python2.5/site-packages/Mako-0.2.4-py2.5.egg/mako/template.py',
line 138 in render_unicode
  return runtime._render(self, self.callable_, args, data, as_unicode=True)
File
'/home/max/projects/jobs-page/py/lib/python2.5/site-packages/Mako-0.2.4-py2.5.egg/mako/runtime.py',
line 347 in _render
  _render_context(template, callable_, context, *args,
**_kwargs_for_callable(callable_, data))
File
'/home/max/projects/jobs-page/py/lib/python2.5/site-packages/Mako-0.2.4-py2.5.egg/mako/runtime.py',
line 364 in _render_context
  _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
File
'/home/max/projects/jobs-page/py/lib/python2.5/site-packages/Mako-0.2.4-py2.5.egg/mako/runtime.py',
line 388 in _exec_template
  result = template.error_handler(context, error)
File
'/home/max/projects/jobs-page/py/lib/python2.5/site-packages/Mako-0.2.4-py2.5.egg/mako/runtime.py',
line 380 in _exec_template
  callable_(context, *args, **kwargs)
File '/home/max/projects/jobs-page/data/templates/layout.mako.py', line 96
in render_body
  __M_writer(escape(next.body()))
File
'/home/max/projects/jobs-page/py/lib/python2.5/site-packages/Mako-0.2.4-py2.5.egg/mako/runtime.py',
line 255 in <lambda>
  return lambda *args, **kwargs:callable_(self.context, *args, **kwargs)
File '/home/max/projects/jobs-page/data/templates/articles/index.mako.py',
line 57 in render_body
  if c.articles:
File
'/home/max/projects/jobs-page/py/lib/python2.5/site-packages/CouchDB-0.5-py2.5.egg/couchdb/client.py',
line 734 in __len__
File
'/home/max/projects/jobs-page/py/lib/python2.5/site-packages/CouchDB-0.5-py2.5.egg/couchdb/client.py',
line 744 in _get_rows
File
'/home/max/projects/jobs-page/py/lib/python2.5/site-packages/CouchDB-0.5-py2.5.egg/couchdb/client.py',
line 737 in _fetch
File
'/home/max/projects/jobs-page/py/lib/python2.5/site-packages/CouchDB-0.5-py2.5.egg/couchdb/client.py',
line 627 in _exec
File
'/home/max/projects/jobs-page/py/lib/python2.5/site-packages/CouchDB-0.5-py2.5.egg/couchdb/client.py',
line 832 in get
File
'/home/max/projects/jobs-page/py/lib/python2.5/site-packages/CouchDB-0.5-py2.5.egg/couchdb/client.py',
line 890 in _request
ServerError: (500, ('query_parse_error', "URL query parameter 'count' has
been changed to 'limit'."))

-- 
Max.Ischenko

http://www.developers.org.ua
The #1 Ukrainian Software Developers' site
News, Companies, Jobs, Events, Talks and more.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to