search for: optgroup

Displaying 20 results from an estimated 291 matches for "optgroup".

Did you mean: optgroups
2014 May 20
14
Re: [PATCH] daemon: scrub-file: resolve the path before calling scrub (RHBZ#1099490).
...ded (commit a86eb0e0d2c67e2) at a time when we > thought it would be a good idea to have the daemon run on Windows. > Since no one thinks that's a good idea any longer, I think you could > prepend this commit with one which removes tests for realpath / > HAVE_REALPATH and hard-codes optgroup_realpath_available() == 1. I didn't know the story behind this, and went for the conservative route. Interesting enough, realpath has been unconditionally used already, so I will pull the plug to the conditional usage in some other parts, then. > Is it possible to make this change more g...
2006 Oct 18
1
optgroup and Javascript Issues
Is there a way to walk a select box that has multiple enabled and a few optgroup mixed in with other groups? The following seems to work without the optgroup tags in a multiselect list box. I have tired going threw the children of the optgroup but i was unable to pull a valid .value or .selected. Any Ideas? Thanks. var objGroups = document.getElementById(''groups...
2014 May 20
2
Re: [PATCH 1/4] generator: add always-available optgroups
On Tue, May 20, 2014 at 07:54:45PM +0200, Pino Toscano wrote: > Support the possibility to have optional groups always enabled (e.g. > because they were present in the past, and they need to be kept for > users). > Add and use few helper optgroups-related functions to deal also with > them. What do you think about the attached addition to this patch? (It is meant to be squashed into your patch.) Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://...
2014 Apr 24
0
How to make optgroup with rails version 3
I am trying to set up a drop down list with a optgroup with active users. i know the following code is wrong, but would there be any way of doing this how i have it? right now if you take the raw section and just have data.collect {|a| [ a.name, a.id ] } instead, it works great for just showing the names of the users, but i want to add that optgoru...
2015 Nov 05
0
[PATCH 2/2] actions: refactor available & feature_available
...@@ GUESTFSD_EXT_CMD(str_grep, grep); GUESTFSD_EXT_CMD(str_modprobe, modprobe); -static int -available (char *const *groups, int error_on_unavailable) +int +do_internal_feature_available (const char *group) { - int av; - size_t i, j; - - for (i = 0; groups[i] != NULL; ++i) { - for (j = 0; optgroups[j].group != NULL; ++j) { - if (STREQ (groups[i], optgroups[j].group)) { - av = optgroups[j].available (); - if (!av) { - if (error_on_unavailable) { - reply_with_error ("%s: group not available", optgroups[j].group); - return -1; -...
2018 Apr 27
1
Re: [PATCH v5 2/3] daemon: list-filesystems: Don't list partitions which cannot hold file system.
...uot;. > +and is_ignored_gpt_type gpt_type = > + match gpt_type with You can write this as: and is_ignored_gpt_type = function | pattern -> result | ... > + (* Windows Logical Disk Manager metadata partition. *) > + | "5808C8AA-7E8F-42E0-85D2-E1E90434CFB3" -> Optgroups.ldm_available () > + (* Windows Logical Disk Manager data partition. *) > + | "AF9B60A0-1431-4F62-BC68-3311714A69AD" -> Optgroups.ldm_available () Why does the result depend on Optgroups.ldm_available ()? > + (* Microsoft Reserved Partition. *) > + | "E3C9E316-0...
2008 Jul 07
0
HAML and nestings
...have this partial: 1 - bairros = bairros_select 2 - selected_id ||= nil 3 - if bairros.any? 4 - cid = nil 5 = select_tag :imovel, :bairro_id do 6 - for b in bairros 7 - sel = b.id == selected_id ? {:selected => true} : {} 8 - if cid != b.cidade_id 9 %optgroup= b.cidade.cidade 10 - cid = b.cidade_id 11 %option{sel, :value => b.id}= b.bairro But seems I''m having problems to make the option element be rendered as a child of optgroup element. Because optgroup is rendered eventually multiple times. Taking from the indentation abo...
2016 Feb 03
1
[PATCH] generator: simplify generated code for always-available features
...ead of using #define's. --- generator/daemon.ml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/generator/daemon.ml b/generator/daemon.ml index 7ffea7b..d1689e1 100644 --- a/generator/daemon.ml +++ b/generator/daemon.ml @@ -732,19 +732,15 @@ and generate_daemon_optgroups_c () = pr " return 1;\n"; pr "}\n"; pr "\n"; - - List.iter ( - fun group -> - pr "#define optgroup_%s_available dummy_available\n" group; - ) optgroups_retired; - - pr "\n"; ); pr "struct optgrou...
2010 Sep 17
1
option_groups_from_collection_for_select
...in my development environment (Ruby 1.87, Rails 2.3.8) the following code works fine: <%= select "applicant", "member_1", option_groups_from_collection_for_select(@topics, :members, :topic, :id, :name, @applicant.member_1), {:include_blank => true} %> Producing: <optgroup label="Clinical Neuroscience"> <option value="1">Prof ...</option> <option value="2">Prof ... </option> ... </optgroup> Yet in my production environment (Ruby 1.8.7, Rails 2.3.2) this code produces really weird output, sticking the pre...
2016 Mar 02
1
Re: Libguestfs as filesystem forensic tool
...;icat' similar to ntfscat-i but it supports multiple FS. >> >> Yet I'm not sure whether it's desirable as it is for a narrow use >> case and on my Debian box TSK is a 12Mb binary. > Yes that's a rather large dependency. > > However it's possible to use optgroups ["optional" field in > generator/actions.ml] and subpackaging to mean that end users don't > need to install this dependency unless they want it. If I understood correctly, I just need to set the optional field in the API and then issue the command: "./configure --with-ex...
2015 Nov 05
4
[PATCH 1/2] actions: turn available & feature_available as non-daemon
Rename the current available and feature_available into internal daemon functions, and provide non-daemon functions wrapping them at library side. This will make it possible to e.g. add caching for them. Should be only refactoring, no actual behaviour change. --- daemon/available.c | 4 +- generator/actions.ml | 192 ++++++++++++++++++++++++++++----------------------- po/POTFILES |
2008 Apr 10
3
option_groups_from_collection_for_select with a ActiveRecord::Base single object
...n drop_table :states end end ================= I also have a little bit defined in the model. ====state.rb==== class State < ActiveRecord::Base def self.countries State.find(:all, :select => "country", :group => "country") end end ================= The optgroups are correctly made. However, I can''t find a combination that will give me any actual state names in those lists (with this, I get a single option with a number of unknown origin). Documentation seems to say that "self.countries" should have ... functions ... associated with .....
2007 Feb 12
6
prototype.js and different browsers
Hi I''m currently learning how AJAX is working and found prototype.js interesting. But I have some issues that might be because of misusage: http://brasilia.nersc.no/test/PyTest/AJAX.html When I use this in Firefox2 it correctly fills the first select, using opera9 it is filled, but it just shows a list of "blank" options (no description), and in IE6 it doesn''t get
2018 Apr 27
4
[PATCH v5 0/3] libguestfs: guestfs_list_filesystems: skip block devices which cannot hold file system
This patch series: 1. Addresses comments from last review: part_get_mbr_part_type doesn't break original implementation in C. 2. Rebased on top of master and little bit refactored for readability. Mykola Ivanets (1): tests: md: Test guestfish list-filesystems command skips partitioned md devices. Nikolay Ivanets (2): daemon: Reimplement 'part_get_mbr_part_type' API in
2018 Apr 27
0
[PATCH v5 2/3] daemon: list-filesystems: Don't list partitions which cannot hold file system.
...130 +++++++++++++++++++++++++++++------------------ 1 file changed, 81 insertions(+), 49 deletions(-) diff --git a/daemon/listfs.ml b/daemon/listfs.ml index 56ebadeda..5499bacb2 100644 --- a/daemon/listfs.ml +++ b/daemon/listfs.ml @@ -25,39 +25,18 @@ let rec list_filesystems () = let has_ldm = Optgroups.ldm_available () in let devices = Devsparts.list_devices () in - let partitions = Devsparts.list_partitions () in + let devices = List.filter check_device devices in let mds = Md.list_md_devices () in - - (* Look to see if any devices directly contain filesystems - * (RHBZ#590167). H...
2018 Apr 09
5
[PATCH 0/3] daemon: generate almost all the API OCaml interfaces
...[1], here it is a patch series to generate automatically most of the OCaml interfaces of daemon actions. Only the Lvm and Mount modules are left with hand-written interfaces. [1] https://www.redhat.com/archives/libguestfs/2018-April/msg00059.html Thanks, Pino Toscano (3): daemon: directly use Optgroups daemon: use the structs from the Structs module daemon: autogenerate most of OCaml interfaces .gitignore | 15 ++++++++ daemon/blkid.mli | 19 ---------- daemon/btrfs.mli | 26 -------------- daemon/devsparts.mli | 25 ------------- daemon/fi...
2016 Feb 23
7
[PATCH 0/4] Various tweaks to the generator.
Use interfaces files (*.mli files) instead of exporting all symbols randomly. Change the 'file is generated' warnings at the top of generated files so they accurately describe which source file generates each output file. Rich.
2015 Aug 27
0
[PATCH v4 2/2] fish: add journal-view command
...to the generated auto-completion code. */ diff --git a/generator/Makefile.am b/generator/Makefile.am index a3fe50d..bd466c2 100644 --- a/generator/Makefile.am +++ b/generator/Makefile.am @@ -37,6 +37,7 @@ sources = \ haskell.ml \ java.ml \ lua.ml \ + journal.ml \ main.ml \ ocaml.ml \ optgroups.ml \ @@ -60,13 +61,14 @@ sources = \ objects = \ types.cmo \ utils.cmo \ + pr.cmo \ + docstrings.cmo \ + journal.cmo \ actions.cmo \ structs.cmo \ optgroups.cmo \ prepopts.cmo \ events.cmo \ - pr.cmo \ - docstrings.cmo \ checks.cmo \ c.cmo \ xdr.cmo \ diff --git a/generator/ac...
2016 Feb 23
0
[PATCH 1/4] generator: Add interfaces to all modules.
...+++++++++++++++++++++ generator/golang.mli | 19 +++++++++++++++++++ generator/haskell.mli | 19 +++++++++++++++++++ generator/java.mli | 23 +++++++++++++++++++++++ generator/lua.mli | 19 +++++++++++++++++++ generator/ocaml.mli | 22 ++++++++++++++++++++++ generator/optgroups.mli | 22 ++++++++++++++++++++++ generator/perl.mli | 20 ++++++++++++++++++++ generator/php.mli | 20 ++++++++++++++++++++ generator/python.mli | 20 ++++++++++++++++++++ generator/ruby.mli | 19 +++++++++++++++++++ generator/tests_c_api.mli | 19 +++++++++++++++++++...
2018 Jun 01
0
[PATCH v8 1/6] daemon: Changing the way that we detect if a device contains partitions.
....ml | 41 ++++++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/daemon/listfs.ml b/daemon/listfs.ml index 56ebadeda..eced55bce 100644 --- a/daemon/listfs.ml +++ b/daemon/listfs.ml @@ -24,31 +24,15 @@ let rec list_filesystems () = let has_lvm2 = Optgroups.lvm2_available () in let has_ldm = Optgroups.ldm_available () in + (* Devices. *) let devices = Devsparts.list_devices () in - let partitions = Devsparts.list_partitions () in - let mds = Md.list_md_devices () in - - (* Look to see if any devices directly contain filesystems - * (RHB...