Skip to content

Instantly share code, notes, and snippets.

grep -n "select_non_primes" *.c *.h
lib.c:5:int* select_non_primes(int max, int start, int* cnt)
lib.c:37: select_non_primes(100, 3, &a);
test.c:12: arr = select_non_primes(200, 3, &cnt);
lib.h:3:int* select_non_primes(int max, int start, int* cnt);
marek@marek-ThinkPad-R61e:~/projects/study2/OR/prime_numbers/ORII-lab4_prime_numbers$ cat *.h *.c |grep select_non_primes
int* select_non_primes(int max, int start, int* cnt);
int* select_non_primes(int max, int start, int* cnt)
select_non_primes(100, 3, &a);
arr = select_non_primes(200, 3, &cnt);
diff --git a/library/pyjamas/django/Form.py b/library/pyjamas/django/Form.py
index 240015c..0c6723d 100644
--- a/library/pyjamas/django/Form.py
+++ b/library/pyjamas/django/Form.py
@@ -9,8 +9,10 @@ from pyjamas.ui.Grid import Grid
from pyjamas.ui.FormPanel import FormPanel
#from pyjamas.ui.Composite import Composite
from pyjamas.log import writebr
+import pdb
diff --git a/pyjs/jsonrpc/django/jsonformprocessor.py b/pyjs/jsonrpc/django/jsonformprocessor.py
index 1211ab8..ef1f478 100644
--- a/pyjs/jsonrpc/django/jsonformprocessor.py
+++ b/pyjs/jsonrpc/django/jsonformprocessor.py
@@ -68,7 +68,7 @@ def describe_fields_errors(fields, field_names):
def describe_field(field):
res = {}
- field_type = field.__class__.__name__
+ res['type'] = field_type = field.__class__.__name__
$author_id_data= SQL::one("SELECT max(id) AS new_id FROM authors");