Displaying 20 results from an estimated 102 matches for "get_path".
2008 Jun 24
10
Question on passing arguments inside a view.
...rectory Model
def self.full_path(directoryid)
find(:all, :conditions => { :j15c_directory_id =>
"#{directory_id}" })
end
I have a view that displays my form and submits output to display
controller all works until I add in one more piece.
Editorial Controller
def display
@get_path = Directory.full_path(directory_id)
end
Now my results are working fine until I add in this one piece to get
the directory_id
<% for x in @editorials do %>
<%= x.directory_id %>
<% end %>
If I want to pass in the x.directory_id into
<%= @get_path(x.directory_id)
I get th...
2015 Feb 05
1
[PATCH] perl: tests: reenable set_path tests
...>set_autosync (0);
ok ($g->get_autosync () == 0, "autosync not false");
-# This probably doesn't work at the moment because
-# the binding for set_path does not ensure the string
-# remains around for the lifetime of the handle.
-#$g->set_path (".");
-#ok ($g->get_path () eq ".", "path not dot");
-#$g->set_path (undef);
-#ok ($g->get_path () ne "", "path is empty");
+$g->set_path (".");
+ok ($g->get_path () eq ".", "path not dot");
+$g->set_path (undef);
+ok ($g->get_path () n...
2024 Jun 06
1
Failed to bind to uuid NT_STATUS_LOGON_FAILURE
...ert(0, "bin/python")
>
> import samba.getopt as options
> from samba.credentials import DONT_USE_KERBEROS
> from samba.auth import system_session
> from samba import param
> from samba.provision import find_provision_key_parameters
> from samba.upgradehelpers import (get_paths,
> get_ldbs,
> update_machine_account_password)
>
> parser = optparse.OptionParser("chgtdcpass [options]")
> sambaopts = options.SambaOptions(parser)
> parser.add_option_group(sambaopts)
> parser.add...
2024 Jun 06
1
Failed to bind to uuid NT_STATUS_LOGON_FAILURE
...; >
> > import samba.getopt as options
> > from samba.credentials import DONT_USE_KERBEROS
> > from samba.auth import system_session
> > from samba import param
> > from samba.provision import find_provision_key_parameters
> > from samba.upgradehelpers import (get_paths,
> > get_ldbs,
> > update_machine_account_password)
> >
> > parser = optparse.OptionParser("chgtdcpass [options]")
> > sambaopts = options.SambaOptions(parser)
> > parser.add_option_gro...
2024 Jun 06
1
Failed to bind to uuid NT_STATUS_LOGON_FAILURE
...hout installing samba)
sys.path.insert(0, "bin/python")
import samba.getopt as options
from samba.credentials import DONT_USE_KERBEROS
from samba.auth import system_session
from samba import param
from samba.provision import find_provision_key_parameters
from samba.upgradehelpers import (get_paths,
get_ldbs,
update_machine_account_password)
parser = optparse.OptionParser("chgtdcpass [options]")
sambaopts = options.SambaOptions(parser)
parser.add_option_group(sambaopts)
parser.add_option_group(options.VersionOption...
2017 Jul 29
2
Re: cannot find any suitable libguestfs supermin
...race: get_hv = "/usr/bin/qemu-system-x86_64"
guestfs_get_hv: /usr/bin/qemu-system-x86_64
libguestfs: trace: get_memsize
libguestfs: trace: get_memsize = 500
guestfs_get_memsize: 500
libguestfs: trace: get_network
libguestfs: trace: get_network = 0
guestfs_get_network: 0
libguestfs: trace: get_path
libguestfs: trace: get_path = "/share/CACHEDEV1_DATA/appliance"
guestfs_get_path: /share/CACHEDEV1_DATA/appliance
libguestfs: trace: get_pgroup
libguestfs: trace: get_pgroup = 0
guestfs_get_pgroup: 0
libguestfs: trace: get_program
libguestfs: trace: get_program = "libguestfs-test-too...
2018 Dec 04
3
patch to support custom HTTP headers in download.file() and url()
...s <- readLines(con)
+ close(con)
+ stopifnot(any(grepl("Host.*eu.httpbin.org", lines)))
+ TRUE
+ }, error = function(e) FALSE)
+}
+
+get_headers <- function(path = "anything", quiet = TRUE, ...,
+ protocol = "http") {
+ url <- get_path(path, protocol)
+ tmp <- tempfile()
+ on.exit(try(unlink(tmp)), add = TRUE)
+ download.file(url, tmp, quiet = quiet, ...)
+ readLines(tmp)
+}
+
+get_headers_url <- function(path = "anything", ..., protocol = "http") {
+ con <- url(get_path(path, protocol), ...)
+...
2005 Aug 11
2
Patch file for FileDialog.i
...log.i. It doesn''t work 100% yet
because I haven''t yet figured out how to make it put the ruby
declarations in the right place. If I cut and paste the
rb_define_methods into the right place this works perfectly.
This patch fixes the dialogs.rb multiple select example so that
get_paths and get_filenames returns a ruby array. Note that I may have
broken subclassing with this as I think there were _wrap_ wrappers that
got lost. Perhaps Kevin or Sean can point out what I should have done?
Be gentle, it''s my first swig patch. :)
Roy
________________________________...
2009 Dec 21
1
[PATCH] snapshot: Explicitly remove unused disk source attribute
...eAttribute('dev');
}
# Update the domain XML with with a driver appropriate to the backing
@@ -647,6 +649,9 @@ sub _snapshot_guest
# Update the source to be a "file" with the new path
$source->setAttribute("file", $vol->get_path());
+ # Remove the dev attribute in case it was set
+ $source->removeAttribute("dev");
+
# Also update the disk element to be a "file"
$source->getParentNode()->setAttribute('type', 'file');
--
1.6.5.2
2010 Apr 07
2
[PATCH] Target::LibVirt: Don't truncate a volume when opening it
...rtV2V/Target/LibVirt.pm
+++ b/lib/Sys/VirtV2V/Target/LibVirt.pm
@@ -20,6 +20,8 @@ use warnings;
package Sys::VirtV2V::Target::LibVirt::Vol;
+use POSIX;
+
use Sys::VirtV2V::UserMessage qw(user_message);
sub _new
@@ -106,7 +108,9 @@ sub open
my $self = shift;
my $path = $self->get_path();
- open(my $fd, '>', $path)
+
+ # We want to open the existing volume without truncating it
+ sysopen(my $fd, $path, O_WRONLY)
or die(user_message(__x("Error opening storage volume {path} ".
"for writing: {error}",...
2012 Jan 24
1
example script for GObject
I tried using Javascript (gjs) with GObject-Introspection and did a port
of the create_disk example which is attached below.
Quite a bit of time was spent looking up stuff in the GLib reference and
guessing how certain idioms translate to gjs.
I used the traditional add_drive_opts method since I haven't been able
to find how to specify the optional arguments to add_drive_opts. How
does that
2024 Jun 06
1
Failed to bind to uuid NT_STATUS_LOGON_FAILURE
...ort samba.getopt as options
>> > from samba.credentials import DONT_USE_KERBEROS
>> > from samba.auth import system_session
>> > from samba import param
>> > from samba.provision import find_provision_key_parameters
>> > from samba.upgradehelpers import (get_paths,
>> > get_ldbs,
>> > update_machine_account_password)
>> >
>> > parser = optparse.OptionParser("chgtdcpass [options]")
>> > sambaopts = options.SambaOptions(parser)
>> &g...
2019 Nov 02
4
supermin: failed to find a suitable kernel
...race: get_hv = "/usr/bin/qemu-system-x86_64"
guestfs_get_hv: /usr/bin/qemu-system-x86_64
libguestfs: trace: get_memsize
libguestfs: trace: get_memsize = 500
guestfs_get_memsize: 500
libguestfs: trace: get_network
libguestfs: trace: get_network = 0
guestfs_get_network: 0
libguestfs: trace: get_path
libguestfs: trace: get_path = "/usr/lib/x86_64-linux-gnu/guestfs"
guestfs_get_path: /usr/lib/x86_64-linux-gnu/guestfs
libguestfs: trace: get_pgroup
libguestfs: trace: get_pgroup = 0
guestfs_get_pgroup: 0
libguestfs: trace: get_program
libguestfs: trace: get_program = "libguestfs-test...
2010 Apr 07
1
[PATCH] Connection: Handle case of cdrom with no <source> element
...die (user_message(__"No output target was specified"))
- unless (defined($target));
-
- # Fetch the remote storage
- my $vol = $transfer->transfer($self, $path, $target);
-
- # Export the new path
- $path = $vol->get_path();
-
- # Find any existing driver element.
- my ($driver) = $disk->findnodes('driver');
-
- # Create a new driver element if none exists
- unless (defined($driver)) {
- $driver =
- $disk->getOwnerDocument()-...
2017 Jul 28
2
cannot find any suitable libguestfs supermin
I download libguestfs from github and fetch to the *origin master*.
I tried to build libguestfs in my own linux distro and I followd the
http://libguestfs.org/guestfs-building.1.html#using-a-prebuilt-binary-appliance
to replace with supermin
I download the appliance-1.30.1.tar.xz and appliance-1.30.1.tar.xz.sig
and extract the tarball to /home/user/appliance
and export
2007 Mar 28
0
[925] branches/wxruby2/wxwidgets_282/doc/textile/filedialog.txtl: Improvements to doc from wxWidgets 2.8
...ontaining wildcards (*, ?) in the filename text item, and
</span><span class="lines">@@ -57,14 +76,12 @@
</span><span class="cx"> * "FileDialog#get_message":#FileDialog_getmessage
</span><span class="cx"> * "FileDialog#get_path":#FileDialog_getpath
</span><span class="cx"> * "FileDialog#get_paths":#FileDialog_getpaths
</span><del>-* "FileDialog#get_style":#FileDialog_getstyle
</del><span class="cx"> * "FileDialog#get_wildcard":#File...
2020 Jan 08
0
Re: bug report
...bexec/qemu-kvm"
> guestfs_get_hv: /usr/libexec/qemu-kvm
> libguestfs: trace: get_memsize
> libguestfs: trace: get_memsize = 500
> guestfs_get_memsize: 500
> libguestfs: trace: get_network
> libguestfs: trace: get_network = 0
> guestfs_get_network: 0
> libguestfs: trace: get_path
> libguestfs: trace: get_path = "/usr/lib64/guestfs"
> guestfs_get_path: /usr/lib64/guestfs
> libguestfs: trace: get_pgroup
> libguestfs: trace: get_pgroup = 0
> guestfs_get_pgroup: 0
> libguestfs: trace: get_program
> libguestfs: trace: get_program = "libguestfs...
2010 Sep 21
1
[PREVIEW ONLY] Refactor data transfer code
...ol, $name) = @_;
-
- my $vol;
- eval {
- $vol = $pool->get_volume_by_name($name);
- };
- die(user_message(__x("Failed to get storage volume: {error}",
- error => $@->stringify()))) if ($@);
-
- return $class->_new($vol);
-}
-
-sub get_path
-{
- my $self = shift;
-
- return $self->{vol}->get_path();
-}
-
-sub get_format
-{
- my $self = shift;
-
- my $vol = $self->{vol};
- my $voldom = new XML::DOM::Parser->parse($vol->get_xml_description());
-
- my ($format) = $voldom->findnodes('/volume/target/...
2012 Dec 13
3
Lua improvements
Here are a few patches I applied to get the Lua bindings to build
correctly with different versions of Lua.
I am not particularly happy with generating all the test scripts just
for the shebang line. Since it has been a while since I had to edit
autoconf/automake, this was the best I could come up with.
Cheers,
-Hilko
2015 Jun 25
3
Problem with supermin and symlink in ibm_powerkvm ppc64le distro
...trace: get_hv = "/usr/bin/qemu-system-ppc64"
guestfs_get_hv: /usr/bin/qemu-system-ppc64
libguestfs: trace: get_memsize
libguestfs: trace: get_memsize = 768
guestfs_get_memsize: 768
libguestfs: trace: get_network
libguestfs: trace: get_network = 0
guestfs_get_network: 0
libguestfs: trace: get_path
libguestfs: trace: get_path = "/usr/lib64/guestfs"
guestfs_get_path: /usr/lib64/guestfs
libguestfs: trace: get_pgroup
libguestfs: trace: get_pgroup = 0
guestfs_get_pgroup: 0
libguestfs: trace: get_program
libguestfs: trace: get_program = "libguestfs-test-tool"
guestfs_get_progra...