Blogger Template by Blogcrowds.

change the default filter choice from 'ALL'

class MyModelAdmin(admin.ModelAdmin):

    def changelist_view(self, request, extra_context=None):
        if not request.GET.has_key('decommissioned__exact'):
            q = request.GET.copy()
            q['decommissioned__exact'] = 'N'
            request.GET = q
            request.META['QUERY_STRING'] = request.GET.urlencode()
         return super(MyModelAdmin,self).changelist_view(request, extra_context=extra_context)

import urllib

def urldecode(query):
    d = {}
    a = query.split('&')
    for s in a:
        if s.find('='):
            k,v = map(urllib.unquote, s.split('='))
            except KeyError:
                d[k] = [v]

     return d

s = 'Cat=1&by=down&start=1827&start=1234&anotherCat=me%3Dow%7e'
print urldecode(s)
prints out following and preserves the order of inputs for those keys given more than once as with 'start' key
{'start': ['1827', '1234'], 'anotherCat': ['me=ow~'], 'by': ['down'], 'Cat': ['1']}


What is Tropo?

Tropo is a new script-language focused API and deployment platform from Voxeo. Tropo's goal is to make it extremely easy for JavaScript, Ruby, Groovy, PHP and Python developers to create and deploy telephony and other communication applications.

The current release of Tropo is similar to Google App Engine. You write scripts which drive our communications API.
When you want to take or make calls, we run those scripts on servers in our cloud infrastructure. While running on our servers your scripts can use HTTP, web services, or other techniques to integrate with any other services or infrastructure.

Creating Tropo Applications

To implement a Tropo application, developers:
* Write a Tropo application in a supported scripting language
* Deploy their application on any web server
* Create a Tropo application at and link it to their script
* Test and debug their application using the application debugger

Write a Tropo Application

Tropo applications may be written in a number of supported scripting languages. At the time of launch, supported languages included:

* Ruby (.ruby, .truby, .rb, .trb)
* Python (.py, .tpy, .jython, .tjython, .jy, .tjy)
* Groovy (.groovy, .tgroovy, .gr, .tgr)
* PHP (.php, .tphp)
* JavaScript (.javascript, .js, .es)

File extensions are used by Tropo to identify the interpreter that should be used to execute your script at runtime. Supported extensions are listed above along with their interpreter type. The "t" versions of the extensions are meant to prevent accidental execution of your script in some hosted environments. Remember, Tropo wants to execute your script on our telephony servers when a call is started!

Deploy Your Application Script Files

Once written, you must deploy the resulting script file to a web server of your choice. You may use your own web server, or you may choose to host your file on the Tropo web servers within Voxeo's data centers ("Tropo Hosted Scripts").

If you choose to use Tropo web hosting for your files, you may upload and manage your files through the Tropo Hosted Scripts tools, or you may use our Tropo WebDAV Support to manage and edit your scripts directly from your favorite editor.

Create the Tropo Application

Go to and log into your account (create one if necessary). Once you log in, you will be presented with some Quick Links that allow you to manage your Applications, manage your Hosted Scripts, or review the Documentation. Choose "Applications" to setup an application linked to your script.

Newer Posts Older Posts Home