fix: removing print statements
This commit is contained in:
parent
55bd04f91b
commit
be2abdbc56
2 changed files with 10 additions and 7 deletions
|
|
@ -10,7 +10,8 @@
|
|||
"printer_name",
|
||||
"port",
|
||||
"column_break_4",
|
||||
"reference_doctype"
|
||||
"reference_doctype",
|
||||
"reference_name"
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
|
|
@ -45,11 +46,17 @@
|
|||
"fieldtype": "Link",
|
||||
"label": "Reference DocType",
|
||||
"options": "DocType"
|
||||
},
|
||||
{
|
||||
"fieldname": "reference_name",
|
||||
"fieldtype": "Dynamic Link",
|
||||
"label": "Reference Name",
|
||||
"options": "reference_doctype"
|
||||
}
|
||||
],
|
||||
"index_web_pages_for_search": 1,
|
||||
"links": [],
|
||||
"modified": "2021-09-07 13:17:26.978129",
|
||||
"modified": "2021-09-13 17:19:30.713385",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Printing",
|
||||
"name": "Printer Settings",
|
||||
|
|
|
|||
|
|
@ -8,9 +8,6 @@ from frappe import _
|
|||
class PrinterSettings(Document):
|
||||
@frappe.whitelist()
|
||||
def get_printers_list(self,ip="localhost",port=631):
|
||||
print("``````````````````````````````````")
|
||||
print(ip)
|
||||
print(port)
|
||||
printer_list = []
|
||||
try:
|
||||
import cups
|
||||
|
|
@ -27,8 +24,7 @@ class PrinterSettings(Document):
|
|||
'value': printer_id,
|
||||
'label': printer['printer-make-and-model']
|
||||
})
|
||||
print(printer_list)
|
||||
print("``````````````````````````````````")
|
||||
|
||||
except RuntimeError:
|
||||
frappe.throw(_("Failed to connect to server"))
|
||||
except frappe.ValidationError:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue