Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
AppEngine Python Bundle for Textmate
branch: master

This branch is even with crsantos:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Snippets
.gitignore
README.markdown
info.plist

README.markdown

AppEngine Textmate bundle

The missing Python AppEngine Bundle, feel free to use and contribute.

Installation

Better mixed with the Python Django Bundle

cd Library/Application\ Support/TextMate/Bundles/
git clone git@github.com:crsantos/textmate-AppEngine.git AppEngine.tmbundle
osascript -e 'tell app "TextMate" to reload bundles'

Snippets

Models

  • model / poly - The standard AppEngine Models for DB.

Properties

  • sp - StringProperty
  • bp - BooleanProperty
  • blp - BlobProperty
  • dtp - DateProperty
  • dttp - DateTimeProperty
  • up - UserProperty
  • ip - IntegerProperty
  • ep - EmailProperty
  • rp - ReferenceProperty
  • tp - TextProperty
  • pap - PostalAddressProperty
  • pnp - PhoneNumberProperty
  • bsp - ByteStringProperty
  • lnp - LinkProperty
  • lp - ListProperty
  • srp - SelfReferenceProperty
  • blrp - BlobReferenceProperty
  • slp - StringListProperty
  • timep - TimeProperty
  • imp - IMProperty
  • geop - GeoPtProperty
  • cp - CategoryProperty

Views

  • sout - self.response.out.write()
  • obj - obj= ModelName(name="std")
  • rget - request.get("...")
  • red - self.redirect("...")
  • reqh - class ReqHandlrName(webapp.RequestHandler):
  • uri - self.request.uri
  • user - users.get_current_user()
  • headers - self.response.headers['Content-type']
  • render - self.response.out.write( template.render('',{})
  • loginurl - users.create_login_url(self.request.uri)
  • flash - flash.msg= 'the message'
  • rit - run_in_transaction(...)

Queries

  • .p - put()
  • .f - filter()
  • .fe - fetch()
  • .o - order()
  • .a - all()
  • .d - delete()
  • gq - gql(...)

Forms

  • form - Form()
  • dform - ModelForm() (django style)
Something went wrong with that request. Please try again.