Displaying 20 results from an estimated 30000 matches similar to: "Conditional Validation: only if a record can be found"
2018 Nov 19
1
[PATCH] v2v: -o openstack: Option to add --insecure flag to openstack command.
If ‘virt-v2v -oo insecure’ is used then ‘openstack --insecure’ flag is
added whenever we invoke the openstack command. This turns of SSL
certificate validation.
---
v2v/output_openstack.ml | 14 +++++++++++++-
v2v/virt-v2v-output-openstack.pod | 1 +
v2v/virt-v2v.pod | 7 +++++++
3 files changed, 21 insertions(+), 1 deletion(-)
diff --git a/v2v/output_openstack.ml
2018 Nov 20
0
[PATCH v2] v2v: -o openstack: -oo verify-server-certificate=(true|false) (RHBZ#1651432).
If ‘virt-v2v -oo verify-server-certificate=false’ is used then
‘openstack --insecure’ flag is added whenever we invoke the openstack
command. This turns off SSL certificate validation. The default is
to verify the server certificate (which is the default of the
openstack command).
---
v2v/output_openstack.ml | 16 +++++++++++++++-
v2v/test-v2v-o-openstack.sh | 2 ++
2007 Apr 18
0
[RFC/PATCH LGUEST X86_64 09/13] lguest64 devices
plain text document attachment (lguest64-device.patch)
We started working a little bit on the devices for lguest64.
This is still very much a work-in-progress and needs much more work.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Glauber de Oliveira Costa <glommer@gmail.com>
Cc: Chris Wright <chrisw@sous-sol.org>
Index:
2007 Apr 18
0
[RFC/PATCH LGUEST X86_64 09/13] lguest64 devices
plain text document attachment (lguest64-device.patch)
We started working a little bit on the devices for lguest64.
This is still very much a work-in-progress and needs much more work.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Glauber de Oliveira Costa <glommer@gmail.com>
Cc: Chris Wright <chrisw@sous-sol.org>
Index:
2012 Mar 08
3
legend
Hi,
A very simple thing that I'm unable to do. I did look at the help but ....
While putting a legend on a plot, I don't wish to have the enclosing
border surrounding the words (as given below).
Tried to use the following, but didn't help :
legend (locator(1), border=FALSE, fill=FALSE, "Important ones")
legend (locator(1), border=NILL, fill=NILL, "Important
2006 Jul 14
0
Setting up a Proc for conditional validation (:if option)
I want to use the :if option on one of my validation calls.
Basically I want to validate for a field''s format, but only if the field
is submitted. It''s an optional field.
validates_format_of :EMAIL, :if => Proc.new { |email| ! email.nil? },
:message => ''is not a valid email address'',
:with =>
2006 Feb 18
1
Questions about ActiveRecord
Hello,
I have a few questions about data base design and integrating the design
into Rails.
I''m creating a CMS for a local sports club and want to store the clubs,
their teams and the matches in a data base.
Here is the schema I made up:
http://pastebin.com/561474
As you can see, I added home_id and guest_id to each match that link to
the competing teams. My problem is telling Rails
2014 Dec 11
2
Freeze Windows Guests For Consistent Storage Snapshots
Hi,
Is it possible to freeze windows guests for a consistent storage level
snapshot.
I am using openstack icehouse on centos 6.6
Hypervisor: KVM
Libvirt: 0.10.2
Qemu: 0.10.2
Guest OS: Windows 7 and Windows Server 2008
I was able to freeze Centos guests by issuing the command:
virsh qemu-agent-command <guest_ID> '{"execute":"guest-fsfreeze-freeze"}'
For CentOS
2011 Dec 12
1
k-folds cross validation with conditional logistic
--begin inclusion --
I have a matched-case control dataset that I'm using conditional
logistic regression (clogit in survival) to analyze. I'm trying to
conduct k-folds cross validation on my top models but all of the
packages I can find (CVbinary in DAAG, KVX) won't work with clogit
models. Is there any easy way to do this in R?
-end inclusion --
The clogit funciton is simply a
2006 Jun 12
2
conditional validation
Hi how can I validate a field only if another field is set to a specific value?
I tried to use
validates_length_of :fieldname, :maximum => 100, :if =>
:otherfieldname == ''myvalue''
But doesn''t work
Thanks
Paolo
2008 Jan 27
2
conditional validation
Hi,
How can I validate user info under certain conditions? For example, I
just downloaded a plug-in that allows me to validate phone numbers,
but what I would like is to only validate the phone number if it is
not blank and if the user_type_id field is equal to one.
How can I achieve such a validation in my user model?
Thanks, - Dave
--~--~---------~--~----~------------~-------~--~----~
You
2016 Apr 08
2
Recommendations for free virtual server tech and Asterisk?
If you want to use dahdi dummy driver inside asterisk for timer then this
is possible with openvz based container virtualization.
We have tested vicidial in this mode for 5-10 agents and it worked well.
Mitul Limbani
On Apr 8, 2016 8:52 AM, "Pete Mundy" <pete at fiberphone.co.nz> wrote:
> List,
>
> Might as well throw my hat in the ring!
>
> I can't say
2006 Feb 13
6
How can I access the value of params[:tags] in my validate function?
I would like to have tags mandatory in my app.
The following keeps giving me error that params is nill.
def validate()
if (@params[:tags])
errors.add(@params[:tags], ":tags must be entered ")
end
end
Why cannot I access params in my model class?
The field for tags is called "tags"
How else can I add an error using errors.add?
I
2010 Jan 03
2
Problem with downloading a generated Excel sheet
Hello,
I''m using the spreadsheet/excel gem to generate an excel sheet that I
want user to be able to download it once it''s generated. Please take a
look on the below code:
@contacts=Contact.find(:all)
if @contacts.size>0
file="#{Date.today}_Report.xls"
workbook=Spreadsheet::Excel.new("#{RAILS_ROOT}/public/reports/#{file}")
2006 Aug 15
5
Conditional extend of active record
Hi list,
I''m trying to figure out the best way to add some functionality to
active record. I have a table of files, and need to write a set of core
functions that do different things depending on the type of file eg:
class file < ActiveRecord::Base
def resize
....does stuff
end
end
the problem is the "....does stuff". For example, if the file is an
image it
2011 Sep 16
4
belongs_to not working as
Hi,
I have a model tests_user and score which are associated with each other by
has_one and belongs_to association.
class TestsUser < ActiveRecord::Base
has_one :score, :foreign_key => :reg_no
end
class TestsUser < ActiveRecord::Base
belongs_to :tests_user, :foreign_key => :reg_no
end
where reg_no is a unique field in both the table!
score = Score.find(:first) gives me
2005 Dec 31
3
[Model] [Noob] Table Naming w/ underscores
Greetings:
I am writing a basic accounting module for an app. Rather unfortunately the
name "transactions" is a reserved term in Rails (being the only accounting
term trully representational of a financial transaction). I am left to come
up with other names. One such name was f_transaction.
This worked on the DB level, but I noticed that the Model name dropped the
underscore, thus
2007 Mar 17
3
Hellllp Pl: Centos 4.4 Default LVM install boot/recovery problem
Hello all
Nill experience with LVM. Have a Default Centos 4.4 install updated till
a week ago with three HDDs. System's not booting up since my staff
pulled out the plug due to a short circuit nearby.
Machine is a PIII 550 MHz, with 3 HDDs 40 GB, 120 GB (Actually is bigger
but my bios detects only upto 120 GB) & 20 GB...about half filled with
data & the backup server taken out in
2014 Dec 11
0
Re: Freeze Windows Guests For Consistent Storage Snapshots
On 12/10/2014 11:40 PM, Payes Anand wrote:
> Hi,
> Is it possible to freeze windows guests for a consistent storage level
> snapshot.
Yes, if you install qemu-guest-agent in the guest, and wire up your
libvirt XML to have the guest-agent channel available. Once you have
done that, use the --quiesce flag as part of creating your snapshots.
> I was able to freeze Centos guests by
2005 May 04
1
Conditional validations
I''ve been working with the problem that Joe Hosteny has been talking
about on this list and on the tickets he''s posted
(http://dev.rubyonrails.com/ticket/1196) and have come up with a
tentative solution that I''d like to bring up here.
What if we use a "conditional" parameter in the validates_* methods?
Here''s how it would look like in practice: