name=models.CharField(max_length=200,help_text='Name is the name that will be displayed in the widget repository and under the actual widget itself.')
name=models.CharField(max_length=200,help_text='Name is the name that will be displayed in the widget repository and under the actual widget itself.')
...
@@ -240,21 +243,21 @@ class AbstractWidget(models.Model):
...
@@ -240,21 +243,21 @@ class AbstractWidget(models.Model):
interactive=models.BooleanField(default=False,help_text='The widget can be interactive. This means that when a user executes the widget, the action will perform, then the interaction view will be executed and finally the Post interact action will be executed.')
interactive=models.BooleanField(default=False,help_text='The widget can be interactive. This means that when a user executes the widget, the action will perform, then the interaction view will be executed and finally the Post interact action will be executed.')
image=ThumbnailField(blank=True,null=True,upload_to="images",size=(34,34),help_text='Image and Treeview image are deprecated and will be phased out soon. Please use the static image field.')
image=ThumbnailField(blank=True,null=True,upload_to="images",size=(34,34),help_text='Image and Treeview image are deprecated and will be phased out soon. Please use the static image field.')
static_image=models.CharField(max_length=250,blank=True,default='',help_text='In the static image field just enter the filename of the image (without the path). The path will be $package_name$/icons/widget/$filename$ and $package_name$/icons/treeview/$filename$ where the treeview image is the small image that appears in the treeview on the left side and the widget image is the actual normal sized icon for the widget. IMPORTANT: the static image field only works if the package is set.')
static_image=models.CharField(max_length=250,blank=True,default='',help_text='In the static image field just enter the filename of the image (without the path). The path will be $package_name$/icons/widget/$filename$ and $package_name$/icons/treeview/$filename$ where the treeview image is the small image that appears in the treeview on the left side and the widget image is the actual normal sized icon for the widget. IMPORTANT: the static image field only works if the package is set.')
has_progress_bar=models.BooleanField(default=False,help_text='The flag has progress bar determines if the widget implements a progress bar.')
has_progress_bar=models.BooleanField(default=False,help_text='The flag has progress bar determines if the widget implements a progress bar.')
is_streaming=models.BooleanField(default=False,help_text='The is streaming flag is currently under construction, please do not use it yet.')
is_streaming=models.BooleanField(default=False,help_text='The is streaming flag is currently under construction, please do not use it yet.')
order=models.PositiveIntegerField(default=1,help_text='The Order determines the order in which the widget will be displayed in the repository. This is set automatically when sorting widgets in a single category from the admin.')
order=models.PositiveIntegerField(default=1,help_text='The Order determines the order in which the widget will be displayed in the repository. This is set automatically when sorting widgets in a single category from the admin.')
uid=models.CharField(max_length=250,blank=True,default='',help_text='UID is set automatically when you export a package with the -u switch.')
uid=models.CharField(max_length=250,blank=True,default='',help_text='UID is set automatically when you export a package with the -u switch.')
package=models.CharField(max_length=150,blank=True,default='',help_text='Package is the package name. You are encouraged to use packages.')
package=models.CharField(max_length=150,blank=True,default='',help_text='Package is the package name. You are encouraged to use packages.')
classMeta:
classMeta:
ordering=('order','name',)
ordering=('order','name',)
...
@@ -298,17 +301,17 @@ class AbstractInput(models.Model):
...
@@ -298,17 +301,17 @@ class AbstractInput(models.Model):
@@ -318,9 +321,9 @@ class AbstractOption(models.Model):
...
@@ -318,9 +321,9 @@ class AbstractOption(models.Model):
def__unicode__(self):
def__unicode__(self):
returnunicode(self.name)
returnunicode(self.name)
classMeta:
classMeta:
ordering=['name']
ordering=['name']
classAbstractOutput(models.Model):
classAbstractOutput(models.Model):
name=models.CharField(max_length=200)
name=models.CharField(max_length=200)
...
@@ -328,14 +331,14 @@ class AbstractOutput(models.Model):
...
@@ -328,14 +331,14 @@ class AbstractOutput(models.Model):
description=models.TextField(blank=True)
description=models.TextField(blank=True)
variable=models.CharField(max_length=50,help_text='The variable attribute of both the input and the output are important because this is how the data will be accessed in the python function that is executed when the widget runs.')
variable=models.CharField(max_length=50,help_text='The variable attribute of both the input and the output are important because this is how the data will be accessed in the python function that is executed when the widget runs.')