search for: property_id

Displaying 19 results from an estimated 19 matches for "property_id".

2006 Feb 02
1
tricky form validation
Hi list, I want to create a form validation in my Marketing Model. I want to raise an error only if a previous marketing campaign for a property has not been completed (ie. ended_on IS NULL) I managed to get this working in the Controller using something this: ... if Marketing.count("property_id = #{@marketing.property_id} AND ended_on IS NULL") > 0 ... However I assume validation should be in the Model so this is where I am stuck.. I am guessing ill have to use validates_uniqueness_of with a :if => ''???'' any ideas?
2006 May 05
1
Adding methods to model based on foreign table rows
...name etc. >> Product.column_names => ["product_id", "name"] the properties table holds extra "columns" for the products table, but the column "name" in this table should actually be a method for Products >> Property.column_names => ["property_id", "name", "description", "position"] the third table product_properties holds the mapping data between products and properties >> ProductProperty.column_names => [ "product_property_id", "product_id", "property_id", "v...
2009 Mar 27
0
consistent segfaults in ROracle with one of the databases
...WITH ev AS (SELECT audit_key_new key, audit_date dt, audit_batch_nbr, audit_date FROM dots_audit.audit_event WHERE table_name='VALUE_PROPERTY_MAP'), jfsm AS (SELECT audit_key, fund_id, fund_mult FROM dots_audit.value_property_map WHERE property_id='%s' UNION SELECT audit_key, value_id, value_mult FROM dots.value_property_map WHERE property_id='%s') SELECT DISTINCT ev.dt - to_date('01011970','ddmmyyyy') TIMESTAMP, jfsm.value_id VALUE, jfsm.value_mult VM,...
2008 Apr 14
4
Unable to load module chan_zap.so
...t found anything. Does anyone have any suggestions? TIA -- Jeremy Malcolm LLB (Hons) B Com Internet and Open Source lawyer, IT consultant, actor host -t NAPTR 1.0.8.0.3.1.2.9.8.1.6.e164.org|awk -F! '{print $3}' Luxury Perth apartment for sale! http://www.yourestate.com.au/sresult.php?property_id=8581
2005 Nov 02
4
acts_as_metadata?
..._class varchar(255), -- AR class this property extends property_name varchar(255), property_type text -- MySQL or Ruby type ); CREATE TABLE property_value( id int not null primary key auto_increment, foreign_id int not null, -- PK of the referenced object property_id int not null, -- Property has_many :property_values, PropertyValue belongs_to :property property_value text not null -- YAML-serialized (serialize :property_value) ); so that for our example, we would have: INSERT INTO property(ar_class,property_name,property_type) VALUES (''P...
2004 Aug 06
0
a new directory service
..., but I try to imitate those who define syntaxes), and below I give a couple of examples. Syntax: Programming_Unit ["&" Programming_Unit [...]] Programming_Unit: Genre_Name [ Genre_Property [...]] Genre_Name: Any string Genre_Property: "[" Property_ID "=" Property_Data "]" Property_ID: "T" | "S" | "D" | "C" Property_Data: Depends on Property ID. If PropertyID is "T", it means "Time" GMT_Time "-" GMT_Time...
2018 May 10
2
[PATCH libldm v3 0/2] Make libldm to parse and return volume GUID.
v2: wrap commit message, "PATCH libldm" prefix. v3: correctly initialize and free GLib resources. The result of this patch might be used by libguestfs to return drive mappings for LDM volumes. Note, that "show volume" ldmtool command already returns hint which is a drive letter assigned by Windows to corresponding volume. But it is not reliable source of information. More
2018 May 14
3
[PATCH libldm v4 0/3] Make libldm to parse and return volume GUID.
v2: wrap commit message, "PATCH libldm" prefix. v3: correctly initialize and free GLib resources. v4: gtk-doc is updated to reflect presence of new volume GUID field. The result of this patch might be used by libguestfs to return drive mappings for LDM volumes. Note, that "show volume" ldmtool command already returns hint which is a drive letter assigned by Windows to
2012 Jan 17
3
GObject bindings
This is the first iteration of the GObject bindings. I have 'kicked the tyres' on these, meaning I have ensured that a bunch of basic manual tests work as expected. I'm in the process of adding more comprehensive tests. Here's an example simple javascript program which uses these bindings: === const Guestfs = imports.gi.Guestfs; print('Starting'); var g = new
2006 Aug 13
4
has_many and foreign_key question
Alright, noob here, etc. etc. Trying to figure out the has_many usage. If I understand correctly, when you declare that a table/class has_many whatevers, the rails assumption is that there will be a foreign key in the whatevers table pointing back to the ''id'' primary key in the first table. This doesn''t seem to be the only way to have a ''has_many''
2006 Feb 21
7
has_many :through failing to save changes
Hi all, I''m messing around with has_many, and has_many :through (on edge rails), using a join model. Branches and Projects join through ProjectsAtBranches. If I do @branch.projects, I can see the associated projects, and visa-versa, if I manually put them in the join table. But I cannot do @branch.projects << Branch.find(blah), or @branch.projects.clear, and then save the
2018 May 10
1
[PATCH 0/1] libldm: Make libldm to parse and return volume GUID.
The result of this patch will be used by libguestfs to return drive mappings for LDM volumes. Note, that "show volume" ldmtool command already returns hint which is a drive letter assigned by Windows to corresponding volume. But it is not reliable source of information. More over, in multiboot environment it is unclear which drive letter belongs to which operating system. Volume GUID
2018 May 10
2
[PATCH libldm v2 0/1] Make libldm to parse and return volume GUID.
v2: wrap commit message, "PATCH libldm" prefix. The result of this patch might be used by libguestfs to return drive mappings for LDM volumes. Note, that "show volume" ldmtool command already returns hint which is a drive letter assigned by Windows to corresponding volume. But it is not reliable source of information. More over, in multiboot environment it will be unclear
2006 Feb 08
5
beginner - problem with understanding relationships
...#39;, ''number'' %></p> <p><label for="property_address_streetName1">Street Name 1</label><br/> <%= text_field ''address'', ''streetName1'' %></p> but this is chucking out errors looking for a property_id column on the database table address. I dunno... I come from a java background and it ''feels'' a bit backward that it should be doing this. I think i''m probably missing something simple... so if anyone could even point me in the right direction that would be great! Tha...
2006 Mar 10
5
case insensitive search
...; :property, :conditions => "address LIKE ''%#{@params[:keywords]}%''") end On a different note: I am having trouble trying to access Gallery.property even though my Model associations have been setup. ie: Gallery belongs_to Property (foreign key -> property_id) Property has_many Galleries
2012 Jan 20
11
[PATCH 01/10] Revert "Revert "generator: Add CamelName flag""
This reverts commit 3f6ca541c7b24d4c86688a509582cb41a7e0078c. The original commit was reverted prematurely. --- generator/generator_actions.ml | 10 +++++----- generator/generator_checks.ml | 5 +++++ generator/generator_types.ml | 3 +++ 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/generator/generator_actions.ml b/generator/generator_actions.ml index
2012 Aug 14
7
[PATCH 0/7] Add tar compress, numericowner, excludes flags.
https://bugzilla.redhat.com/show_bug.cgi?id=847880 https://bugzilla.redhat.com/show_bug.cgi?id=847881 This patch series adds various optional arguments to the tar-in and tar-out commands. Firstly (1/7) an optional "compress" flag is added to select compression. This makes the calls tgz-in/tgz-out/txz-in/txz-out deprecated, and expands the range of compression types available.
2004 Aug 06
16
a new directory service
So I've been doing some research and thinking here and there about what a _good_ directory service for icecast would be like. I'd appreciate some feedback and some discussion on this topic, before I start putting a lot of effort into developing it. First off, I think getting rid of # of listeners is a must. It just creates a self-fulfilling prophecy and encourages cheating. I think the
2010 Jan 25
15
database design question: building features
I am trying to decide between two different database architectures for an application to manage properties. For capturing the property features, I have two options: a single model/table with all the features as fields, or a set of joined models - property, feature, feature data. (see attached ERD diagram) OPTION A Properties name address has_pool has_doorman has_etc. (a bunch of values, not all