View ExcelSortScript.py
import openpyxl
import pandas as pd
wb = openpyxl.load_workbook('RawCageData.xlsx', data_only=True)
sheet = wb['Sheet1']
print(sheet["A1"].value)
n = input("Please Enter the Total Number of Devices: ")
deviceNum = range(1,n+1)
print deviceNum
View share_element_changes.py
from wf.apps.dc.utils import get_section_ids_for_template_id
from calc.constants import SHARE
from calc.start import start_share_calc
from calc.start import _get_calc_lock
from documents.versioning import get_next_revision
template_id=''
membership_key_str = ''
#step 1 - grab membership for use later
View gist:171a7aaff20cf48835ea
from collections import defaultdict
from elements.element import ElementChanges
from elements.change_set import ElementChangeSet
# Step 1
# Get ElementChanges entities for the
membership_key_str = ''
membership = db.get(membership_key_str)
ecs = ElementChanges.query(ancestor=ndb.Key('DraftGroup', membership.key().id())).fetch(100)
View gist:40a5570bea22a00ba10c

Multiple BigSky Env Setup

Background

Following these instructions will allow you to create multiple totally isolated bigsky environments. Each environment will have its own: local git repo, local maven repo, python virtual environment and Intellij project. After initial setup no special commands will have to be run to switch configurations. The only thing you need to remember is to type workon <virtual env name> to activate the isolated enviroment.

A few of drawbacks to this approach are:

  • Extra disk space use for each environment - additional space used for separate python virtualenv and maven local repo
  • You have to remember to do pip install ... in each environment