Displaying 3 results from an estimated 3 matches for "charfield".
Did you mean:
canfield
2010 Jun 14
0
Documentation Bug: struct virSchedParameter missing value field
Hi,
The libvirt documentation under
http://libvirt.org/html/libvirt-libvirt.html#virSchedParameter
fails to list the "value" member, even though that is kind of essential for
using the struct.
This is what the documentation says:
struct virSchedParameter{
charfield[VIR_DOMAIN_SCHED_FIELD_LENGTH] field : parameter name
int type : parameter type
}
This is how it looks in the actual header file:
typedef struct _virSchedParameter virSchedParameter;
struct _virSchedParameter {
char field[VIR_DOMAIN_SCHED_FIELD_LENGTH]; /* parameter name */
in...
2009 Dec 11
1
Multiple choices inside the model
Hi,
I''m trying to define multiple choices inside the rails model.
In Django I would do something like this:
location = models.CharField(
max_length=3,
choices=LOCATION_CHOICES,
help_text="Which location do
you prefer?"
)
LOCATION_CHOICES = (...
2010 Feb 17
0
[PATCH] Provides the new node lifecycle events.
...dels.py
new file mode 100755
index 0000000..f54f205
--- /dev/null
+++ b/server/ovirtserver/initservice/models.py
@@ -0,0 +1,17 @@
+from django.db import models
+
+
+class Node(models.Model):
+ """
+ Node which will save to the database.
+ """
+ udi = models.CharField(max_length=128, unique=True)
+ state = models.IntegerField(default=0)
+ created = models.DateTimeField(auto_now_add=True)
+ last_update = models.DateTimeField(auto_now=True)
+
+ def __unicode__(self):
+ """
+ Unicode representation of this instance.
+...