Questions tagged [kotti]

Kotti is a high-level, Pythonic web application framework.

Kotti is a high-level, Pythonic web application framework. It includes an extensible Content Management System called the Kotti CMS, offering all the features you would expect from a modern CMS

8 questions
6
votes
2 answers

Python: Left-side bracket assignment

So I found this code inside Kotti: [child] = filter(lambda ch: ch.name == path[0], self._children) And I was wondering: What do the left-hand square brackets do? I did some testing in a python shell, but I can't quite figure out the purpose of…
javex
  • 7,198
  • 7
  • 41
  • 60
3
votes
2 answers

How to tell if Pyramid/python is loading the right .egg?

This is a weird question but its been driving me bonkers for the last 3 hours. I wanted to play around with a pyramid based cms Kotti and I made a mistake by installing it using easy_install first(sudo easy_install kotti). I'm getting weird…
Lostsoul
  • 25,013
  • 48
  • 144
  • 239
2
votes
1 answer

How do I serve this video file for download using pyramid FileResponse

Please what am i missing. I keep on getting internal server error in browser when I want to serve this video file that has been downloaded on disk. here is my code: The view function @view_config(name='download_video') def dl(request): url =…
ephraimbuddy
  • 331
  • 2
  • 10
1
vote
2 answers

How can I use a system environment variable inside a pyramid ini file?

I exported a variable called DBURL='postgresql://string'and I want to use it in my configuration ini file, e.g:: [app:kotti] sqlalchemy.url = %(DBURL)s That's not working.
b4oshany
  • 692
  • 1
  • 7
  • 15
1
vote
1 answer

How to re-order colander fields in a form?

I used form inheritance to create a new form, for instance: class MyForm(ParentForm): employment_date = colander.SchemaNode( colander.Date(), title=_(u'Employment Date') ) Lets say the order of the ParentForm fields…
b4oshany
  • 692
  • 1
  • 7
  • 15
1
vote
1 answer

Can you have multiple generic subviews of a content element in Kotti?

You can add a 'view' for a content type in kotti by doing something along these lines: from kotti_mysite.views import poll_view config.add_view( poll_view, context=Poll, name='view', permission='view', …
Doug
  • 32,844
  • 38
  • 166
  • 222
0
votes
0 answers

Kotti / deform_ext_autocomplete - How do I use ExtendedAutocompleteInputWidget in Kotti?

I'm trying to use ExtendedAutocompleteInputWidget from deform_ext_autocomplete so a widget will have autocomplete. The reason I want to use ExtendedAutocompleteInputWidget is so I can get key/display value pairs, where as the normal autocomplete…
Patrick Downey
  • 965
  • 8
  • 13
-2
votes
1 answer

Spring Boot REST API display response results in the format

I want to display the response result in the following format: [ "author":"Author", "status_code":"200" "message":"GET", "description":"Description..." "data":{ "id":"123", "name":""My Name", ... : ... } ] But I only display each data…
Thang
  • 409
  • 1
  • 6
  • 17