Skip to content

Instantly share code, notes, and snippets.

@eleddy
Created July 21, 2010 20:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eleddy/485067 to your computer and use it in GitHub Desktop.
Save eleddy/485067 to your computer and use it in GitHub Desktop.
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