Skip to content

Instantly share code, notes, and snippets.

View zindel's full-sized avatar

Oleksiy Golovko zindel

  • Prague, The Czech Republic
View GitHub Profile
(menu)~/dev/menu $ rex serve
rex.core 0.99770617485
rex.db 0.000797033309937
rex.attach 3.21865081787e-05
rex.widget 0.0254878997803
rex.action 15.9541978836
rex.instrument 0.636152982712
rex.i18n 0.000103950500488
rex.forms 2.61948108673
rex.logging 0.000375032424927
import React from 'react';
import {Action} from 'rex-action';
import {HBox, VBox} from 'rex-widget/layout';
import {DataSet} from 'rex-widget/data';
import autobind from 'autobind-decorator';
import {DataTableBase} from 'rex-widget/datatable';
import {SearchInput} from 'rex-widget/form';
import Title from 'rex-action/lib/actions/Title';
export default class PickTableWizard extends React.Component {
import React from 'react';
import {autobind, emptyFunction} from 'rex-widget/lang';
import PickTableWizard from './PickTableWizard';
const tables = [
{id: 'individual', title: 'individual'},
{id: 'study', title: 'study'},
];
extensions.color=
merge-tools.kdiff3.args=--auto --L1 base --L2 local --L3 other $base $local $other -o
$output
merge-tools.kdiff3.regkey=Software\KDiff3
merge-tools.kdiff3.regkeyalt=Software\Wow6432Node\KDiff3
merge-tools.kdiff3.regappend=\kdiff3.exe
merge-tools.kdiff3.fixeol=True
merge-tools.kdiff3.gui=True
merge-tools.kdiff3.diffargs=--L1 $plabel1 --L2 $clabel $parent $child
merge-tools.gvimdiff.args=--nofork -d -g -O $local $other $base
(study)~/dev/study/src/rex.study.model [default]$ pbbt
========================================================================
REX.STUDY.MAIN [/rex.study.main]
("test/input.yaml", line 5)
------------------------------------------------------------------------
RMDIR: ./build/sandbox
("test/input.yaml", line 8)
------------------------------------------------------------------------
MKDIR: ./build/sandbox
("test/input.yaml", line 9)
edit-enrollment-single-group-no-custom-date:
entity: study_enrollment
type: edit
title: Edit
input:
- study_enrollment: study_enrollment[single-group-no-custom-date]
fields:
- value_key: study_title
label: Study
type: calculation
location ~ ^/env/(?<user>[^/]+)/(?<env>[^/]+)/ {
uwsgi_pass unix:///Users/zindel/dev/$env/socket;
uwsgi_modifier1 30;
uwsgi_param QUERY_STRING $query_string;
uwsgi_param REQUEST_METHOD $request_method;
uwsgi_param CONTENT_TYPE $content_type;
uwsgi_param CONTENT_LENGTH $content_length;
uwsgi_param REQUEST_URI $request_uri;
project: rex.study_demo
parameters:
db: pgsql:dbgui
attach_dir: /Users/zindel/tmp/files
uwsgi:
socket: /Users/zindel/dev/dbgui/socket

Generating Wizard

DBGUI could generate wizards on a different database schemas. Here is an example of the simple schema which includes trunk, branch, cross and facets:

>>> from rex.core import Rex
>>> from rex.dbgui import root_wizard, table_wizard
>>> import yaml
>>> app = Rex('rex.dbgui_demo', db='pgsql:dbgui_demo', attach_dir='./build')
#
# Copyright (c) 2016, Prometheus Research, LLC
#
title: REX.DB
tests:
- rmdir: ./build/coverage
- mkdir: ./build/coverage
- coverage: setup.cfg