Skip to content

Instantly share code, notes, and snippets.

@eleddy
Created Jul 21, 2010
Embed
What would you like to do?
def moveField(name, direction=None, pos=None, after=None, before=None):
"""Move a field
name:
name of the field
direction:
Move a field inside its schemata to the left (-1) or to the right (+1)
pos:
Moves a field to a position in the whole schema. pos is either a number
or 'top' or 'bottom'
after:
Moves the field 'name' after the field 'after'
before:
Moves the field 'name' before the field 'before'
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment