Sha256: adf9633d7f96e2f1cf7efdcefc13b48af5b201d7e51544cf789ca492a85accf9

Contents?: true

Size: 407 Bytes

Versions: 20

Compression:

Stored size: 407 Bytes

Contents

from google.appengine.ext import db
<% if belongs_tos.length > 0 -%>
import <%= belongs_tos.join(", ") %>
<% end -%>

class <%= class_name %>(db.Model):
<% for attribute in attributes -%>
  <%= attribute.name %> = db.<%= attribute.gae_type %>(<%= attribute.gae_default %>)
<% end -%>
<% for model in belongs_tos -%>
  <%= model %> = db.ReferenceProperty(<%= model %>.<%= model.camelcase %>)
<% end -%>
  
  

Version data entries

20 entries across 20 versions & 6 rubygems

Version Path
captproton-restfulx-1.2.3 rxgen_generators/rx_scaffold/templates/model.py.erb
dima-restfulx-1.2.0 generators/rx_scaffold/templates/model.py.erb
dima-restfulx-1.2.1 generators/rx_scaffold/templates/model.py.erb
dima-restfulx-1.2.2 rxgen_generators/rx_scaffold/templates/model.py.erb
dima-restfulx-1.2.3 rxgen_generators/rx_scaffold/templates/model.py.erb
dima-restfulx-1.2.4 rxgen_generators/rx_scaffold/templates/model.py.erb
dima-ruboss4ruby-1.1.1 generators/ruboss_scaffold/templates/model.py.erb
dima-ruboss4ruby-1.1.2 generators/ruboss_scaffold/templates/model.py.erb
rlmattax-restfulx-1.2.4.1 rxgen_generators/rx_scaffold/templates/model.py.erb
restfulx-1.3.1 rxgen_generators/rx_scaffold/templates/model.py.erb
restfulx-1.3.0 rxgen_generators/rx_scaffold/templates/model.py.erb
restfulx-1.2.5 rxgen_generators/rx_scaffold/templates/model.py.erb
restfulx-1.2.3 rxgen_generators/rx_scaffold/templates/model.py.erb
restfulx-1.2.4 rxgen_generators/rx_scaffold/templates/model.py.erb
restfulx-1.2.2 rxgen_generators/rx_scaffold/templates/model.py.erb
restfulx-1.2.0 generators/rx_scaffold/templates/model.py.erb
restfulx-1.2.1 generators/rx_scaffold/templates/model.py.erb
ruboss4ruby-1.1.2 generators/ruboss_scaffold/templates/model.py.erb
ruboss4ruby-1.1.0 generators/ruboss_scaffold/templates/model.py.erb
ruboss4ruby-1.1.1 generators/ruboss_scaffold/templates/model.py.erb