Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
D.iteritems() -> an iterator over the (key, value) items of D

src/a/u/Aurora-0.0.4/aurora_app/users/models.py   Aurora(Download)
    def show_role(self):
        for role, number in ROLES.iteritems():
            if number == self.role:
                return role
 

src/a/u/Aurora-0.0.4/aurora_app/users/forms.py   Aurora(Download)
    email = TextField('Email', validators=[Email()])
    role = SelectField(u'Role', coerce=int,
                       choices=[(v, k) for k, v in ROLES.iteritems()])
 
 

src/a/u/aurora-HEAD/aurora_app/users/models.py   aurora(Download)
    def show_role(self):
        for role, number in ROLES.iteritems():
            if number == self.role:
                return role
 

src/a/u/aurora-HEAD/aurora_app/users/forms.py   aurora(Download)
    email = TextField('Email', validators=[Email()])
    role = SelectField(u'Role', coerce=int,
                       choices=[(v, k) for k, v in ROLES.iteritems()])