Displaying 20 results from an estimated 116 matches for "get_value".
Did you mean:
ret_value
2014 Aug 08
2
[PATCH 1/2] Add type checking, support integers as value
..._BLDLIBRARY])
LIBS="$old_LIBS"
fi
diff --git a/generator/generator.ml b/generator/generator.ml
index bcf1966..0aeb24e 100755
--- a/generator/generator.ml
+++ b/generator/generator.ml
@@ -2837,45 +2837,90 @@ put_handle (hive_h *h)
* not be freed.
*/
static int
-get_value (PyObject *v, hive_set_value *ret)
+get_value (PyObject *v, hive_set_value *ret, uint64_t *word)
{
PyObject *obj;
-#ifndef HAVE_PYSTRING_ASSTRING
PyObject *bytes;
-#endif
+
+ if (!PyDict_Check (v)) {
+ PyErr_SetString (PyExc_TypeError, \"expected dictionary type for value\");
+...
2006 Mar 19
3
How can I access an attribute via a symbol?
In my model I''d like to write a method that accesses the attributes by
name. A very simple implementation would be
class MyModel < ActiveRecord::Base
def get_value(attribute)
return value_of_attribute
end
end
Then I can call it with m.get_value(:name) to get the value of the
name column in the db. I''m not sure what to put in for
''value_of_attribute'' though. How do I do that?
Pat
2005 Aug 19
9
Patch for listbook.rb
Attached is a patch file for listbook.rb
1) Message box scrolls properly now
2) Blank lines are skipped when adding pizzas and ice cream
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2010 Jul 12
1
smbldap-groupmod problem
...he smbldap-groupmod. I tried to change
the users of some groups, i get an error message. The action indeed
execute, as the users was removed or added from the group, but an error
is throwed in the output:
server:~# smbldap-groupmod -x user1 -m user2 testgroup
Can't call method "get_value" on an undefined value at
/usr/sbin/smbldap-groupmod line 146.
The line in question is:
if ($group_entry->get_value('sambaSID') eq
$user_entry->get_value('sambaPrimaryGroupSID')) {
What this means? Tks in advance.
--
Leonardo Carneiro
2004 May 22
10
Tabbing between Notebook pages
Skipped content of type multipart/alternative-------------- next part --------------
A non-text attachment was scrubbed...
Name: wxTony.rbw
Type: application/octet-stream
Size: 10436 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/wxruby-users/attachments/20040522/9c1889d0/wxTony.obj
2004 May 05
0
migration problem at vampire step
...ests'
Creating unix group: 'MTS Trusted Impersonators'
Creating unix group: 'TopTools'
Creating unix group: 'TopTools Admins'
Creating unix group: 'TopTools Operators'
Creating unix group: 'comm'
Creating account: Administrator
Can't call method "get_value" on an undefined value at
/var/lib/samba/sbin/smbldap-useradd.pl line 152, <DATA> line 283.
Could not create posix account info for 'Administrator'
...
...
...
Can't call method "get_value" on an undefined value at
/var/lib/samba/sbin/smbldap-useradd.pl line 152, &l...
2007 May 14
3
[Bug 567] ulogd writes invalid len field in per-packet headers
https://bugzilla.netfilter.org/bugzilla/show_bug.cgi?id=567
------- Additional Comments From kaber@trash.net 2007-05-14 14:28 MET -------
There are two len fields, caplen and len. Which one is wrong?
--
Configure bugmail: https://bugzilla.netfilter.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the
2008 May 03
2
sqlite3, inserting values in database
hi,
i have a small form of textfields and i need to add these informations
to a table in sqlite3 database. but i dont know how to do it. i mean
that its small address book program. and ''id'' from ''clients'' table has
to increments. i open database with : db = Database.open("data.db"), but
then i dont know what to do...
anyone can help?
--
Posted via
2004 Jul 22
1
vampire failed for undefiled value sambaSID
Greetings!
Vampaire process is running, but it failed create accounts for everyone.
The error message is
"Can't call method "get_value" on an undefined
value at /var/lib/samba/sbin/smbldap-useradd.pl line 152."
And I looked at the mentioned file and the line is
$userGroupSID = $group_entry->get_value('sambaSID');
I am following examples in "Samba-3 by Examples".
Configuration:
Fedo...
2008 Jun 13
7
Rubyscript2exe undefined ''run'' method
...max = @max_number.to_i
b = 10 ** (@number_of_digits.to_i - 1)
random_seed = 10 ** (@number_of_digits.to_i)
g = 0
g_max =100
@progress_guage.set_value(0)
while i < max
a = rand(random_seed)
if (a > b) then
random_file.puts a
i = i + 1
while ((i/max) * 100) > (@progress_guage.get_value())
@progress_guage.pulse()
sleep(0.08)
end#gauge while
end #if
end #while
end#def
class RandomFrame < RandomBase
def initialize
super
evt_button(start_button) {|event| on_start(event)}
end
def on_start(event)
path = @dirtree.get_p...
2007 May 25
0
[new script] smbldap-userlist
...er, $dn, $pass)) {
print "Authentication failure\n";
exit (10);
}
}
} else {
# root user
$ldap_master=connect_ldap_master();
# test existence of user in LDAP
my $dn_line;
}
sub print_user {
my ($entry, %Options) = @_;
printf "%4s ", $entry->get_value('uidNumber') ;
printf "%-20s ", $entry->get_value('uid');
printf "%-10s ", $entry->get_value('gecos') if ($Options{'g'});
printf "%-12s ", time2str("%D %H:%m", $entry->get_value('sambaPwdLastSet'))...
2007 Jun 18
1
Question about lmer
Hello,
We have a problem with function lmer. This is our code:
Get_values<-function(ff_count, fixed_factors, rf_count, random_factors, y_values)
{
SA<-matrix(as.array(c(fixed_factors, random_factors)), ncol=3)
data<-as.data.frame(SA)
y<-as.array(y_values)
dd<-data.frame(SA)
for(i in 1:(ff_count+rf_count)){
dd[,i]<-as.factor(data[,...
2009 Jun 26
2
smblap-useradd problem
...rily as a File Server. This
server has initially been setup with Etch (4.0, net-install). I've upgraded it
to Lenny (5.0) few days ago, and problems start to rise :/
Here is the problem that makes me crazy for 15 days now :
----
fano2:~# smbldap-useradd -a ploup
Can't call method "get_value" on an undefined value at /usr/sbin/smbldap-
useradd line 232.
---
The related lines in smbldap-useradd script are :
----
229 # as grouprid we use the value of the sambaSID attribute for
230 # group of gidNumber=$userGidNumber
231 $group_entry = read_group_entry_gid($userGidNumbe...
2015 Jan 20
2
Question on "single writer, multiple reader"
On Sun, Jan 18, 2015 at 04:25:29PM +0000, James Aylett wrote:
> That?s exactly how it?s supposed to work. ?Eventually? (once the
> writer gets sufficiently far ahead of the reader), the reader will get
> a DatabaseModifiedError and will have to re-open the database, but
> until then it?s up to it when it does so. You may wish to do it every
> N requests, or every K seconds, or only
2009 Jul 29
1
Batch computer account creation
...);
$mesg->code && die $mesg->error;
# DEBUG
foreach my $entry ($mesg->entries) {
foreach my $attr ( $entry->attributes) {
if ($attr eq "objectSid" or $attr eq "objectGUID" ) {
print "$attr : ". _sid2string($entry->get_value ($attr))."\n"
} else {
print "$attr : ". $entry->get_value ($attr)."\n";
}
}
}
2006 Dec 01
1
Adding users with usrmgr/smbldap-useradd
...ding/deleting/modifying users in LDAP works fine using phpldapadmin.
These users also work just fine logging in/out.
I am trying to get the usrmgr tool to also work, so im working on the
scripts on the server.
I am getting this error however when I use smbldap-useradd:
Can't call method "get_value" on an undefined value at ./smbldap-useradd
line 197, <DATA> line 283.
The line in the file contains the following code:
$userGroupSID = $group_entry->get_value('sambaSID');
Not being a perl expert, not really sure what it wants.
In smbldap.conf I have this set:
SID="S...
2014 Aug 04
6
[hivex] Segfault for an integer value to node_set_value
Hi,
When an integer argument is passed as value, node_set_value
segfaults. Reproducer is at the end of this message
The backtrace points at hivex-py.c, function get_value. While obj
is non-NULL, `bytes = PyUnicode_AsUTF8String (obj);` returns NULL.
Kind regards,
Peter
https://lekensteyn.nl
#!/usr/bin/env python3
import hivex, sys
h = hivex.Hivex(sys.argv[1])
print(h)
val = {
'key': 'broken',
't': 4,
'value': 1234
}
prin...
2004 Apr 05
2
smbldap_tools
...s
automatically install the smbldap tools for user and group creation and
modifications. The error's that I am getting however are something like
this:
failed to perform search; invalid DN at
/usr/share/samba/scripts//smbldap_tools.pm line 154, <DATA> line 283.
Can't call method "get_value" on an undefined value at
/usr/bin/smbldap-useradd line 152, <DATA> line 283.
The line of code in this config file is:
$mesg->code && warn "failed to perform search; ", $mesg->error;
Any idea's?
Brendon.
2013 Oct 14
0
[LLVMdev] Runtime Array-Length
The toy language I've been playing around with represents all strings as a
struct in llvm;
struct string{
char *ptr;
int str_len;
int buffer_len;
}
And my AST has an interface like;
String_AST{
int measure();
void copy(char *dest);
struct string get_value();
}
A constant string can be measured at compile time, for a string variable
measure() just extracts str_len. Strings passed in from other external
sources are measured immediately, but llvm optimisations will eliminate the
call if the return value isn't used.
The implementation of get_value...
2005 Aug 25
2
listbook.rb patch
Hopefully a good listbook.rb patch
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users