I'm writing a program to manage orders and then print them.
An order is an object containing the ordering person, the date and the products this person orders. I'd like to add the amount of a certain product one orderer. E.g. 3 eggs, 2 breads.
Is there a simpler way doing this with storm (the ORM I'm using) than splitting the order int...
I'm using the ORM storm. The official documentation says, that it can connect to SQLite, PostgreSQL and MySQL.
Has someone already written a database backend for the MS SQL Server or is it possible to make the server emulate MySQL or PostgreSQL?
Update 1:
I've found two bazaar branches:
Storm MS SQL 2005
MSSQL-Support
Does anyone...
I haven't found any information on that topic and its homepage doesn't mention it.
...
As stated in the Storm documentation, I am doing the following to import the necessary symbols for using Storm:
from storm.locals import *
I'm using it alongside with Pylons, and storm is indeed installed as an egg in the virtual Python environment which Pylon setup for me, and it also searches the correct paths.
However, when the im...
The question is based on the thread, since I observed that Storm allows me reuse my SQL-schemas.
How can you solve the following error message in Storm?
The code is based on Jason's answer and on Storm's manual.
import os, pg, sys, re, psycopg2, storm
from storm.locals import *
from storm import *
class Courses():
subject = Unico...
Hi.. I am developing an application which includes Custom Audio Player for playing songs from remote server...For audio streaming i am making use of BufferredPlayBackDemo shipped with JDE...The problem is that the songs stream and play well in all devices(BOLD 9000 , 9700 , Curve 8900, 8330 etc) but on Storm there is an intermittent loop...
This is my storm code:
items = store.find((Delivery, Product, Sum(Delivery.quantity)),
Delivery.id.is_in(order.id for order in self.orders),
Product.id == Delivery.product_id) \
.group_by(Delivery.date, Product.id, Delivery.discount) \
.order_by(Delivery.dat...
Hi all,
I am facing a problem in displaying videos in Storm..I am making use of BufferredPlayBackDemo that is shipped with JDE to stream and play the video from url..I am able to stream and play videos but the problem i am facing is that i am not able to show videos Full Screen..In potrait mode my videos remain Vertically centered on Sc...
in my screen there are 3 managers
h1
h2
bmpf = new BitmapField
added in order like this as
backgroundmanager.add(h1)
backgroundmanager.add(bmpf)
backgroundmanager.add(h2)
add(background manager);
protected boolesn navigationClick()
{
int index1 = h1.getFieldWithFocusIndex();
int index2 = h2.getFieldWithFocusIndex();
return true;
}
...
searchlist = new FileList(list_vector,ind,j);//a custom list field
searchlist.setRowHeight(40);
searchListManager = new VerticalFieldManager(
Manager.VERTICAL_SCROLL |Manager.VERTICAL_SCROLLBAR)
searchListManager.add(searchlist);
objManager.add(searchListManager);
HomeScreen1.this.add(header_manager);
HomeScreen1.this.add(objManag...
Right now, I'm trying to figure out how to implement the following:
Suppose I have a custom Manager that has about 10 or so BitmapFields layed out in a horizontal manner (similar to a slideshow contained in a HFM ) . What I want to achieve is to be able to move the image HFM via touchEvent horizontally, where a BitmapField would take fo...
hey i made a lot of search and found some similar types of code.
I tried for gsm
method 1 gives IllegalArgumentException
try
{
MessageConnection _mc = (MessageConnection)Connector.open("sms://");
TextMessage tm = (TextMessage) _mc.newMessage(MessageConnection.TEXT_MESSAGE);
tm.setPayloadText(smsText);
tm.setAddress("965xxxxxxx");
_mc.s...
My schema looks something like this:
CREATE TABLE plans (
id SERIAL PRIMARY KEY,
description text
);
CREATE TABLE projects (
id SERIAL PRIMARY KEY,
project_id character varying(240) UNIQUE,
plan_id integer REFERENCES plans(id) ON DELETE CASCADE
);
And I want to do Storm queries along the lines of
plan = store.fin...
I'm trying to use Storm to create an ORM to an existing MySQL db. I'm trying to create a table Class for one of the tables but I'm getting this error:
storm.exceptions.ClassInfoError: <class 'statsstorm.Aggframe'> has no primary key information
This table has no primary key, or any combination of columns that produce a unique row. It...
I am working on an application in which I need to show all of the address book contacts.
Please give me a code snippet or link which will help me do that.
...