-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
queue_manager.py _get_connection function failing #18
Comments
I am rusty on how rabbitMQ works, you can use redis which is much easier to use AND reliable |
@hassaanalansary ohh okay, I just noticed that the queue_manager.py in django-quickbooks was using RabbitMQ, this is where I am currently stuck. Will switch to Celery/Redis and try to reimplement QueueManager. Also, I am new to message queues, etc so if you wouldn't mind helping (and I don't mind paying for your time either if you want to hop on a zoom call) that would be awesome :) Also, once I learn this project I can contribute several other QB objects like Sales Orders, etc. and help any way I can. |
I have Redis and Celery setup/installed in my Django project. I am having a hard time understanding what the publish_message() function now needs to be.
|
Thanks for your enthusiasm, your help is highly appreciated You don't have to implement redis yourself, @bedilbek has done all the hard work and it is working out of the box.
you can additionally add these to the same Objects that have
If you are still having difficulties getting it to run we, lets have a talk later today |
@hassaanalansary If you're offering I'd love to take you up on a call. I've implemented an API client in R that connects via ODBC that I'd like to port. I have a working django app and am syncing customers using the admin module but am having trouble mapping fields. |
@hassaanalansary Ahhh I pip installed and it looks like RedisManager in queue_manager.py isn't there on pypi. If you would be interested in a paid call that would be great, I'll make availability at your convenience. A quick review, some general architectural questions for adding/contributing, creating my own response processor, etc. Please advise! PS: I did get it working for adding a customer so thanks a lot for the help. I will be adding sales orders and I think a call would paint a better picture and allow me to contribute meaningfully. |
@mccluret I am glad you were able to add customers. |
@hassaanalansary Awesome, just sent you one for 11am tomorrow. @bill-ash If you want to hop on the same call you can, send me your email and I'll send you the zoom invite. |
@hassaanalansary One last confusion I have is how to build the model and to_qbd function for many. Example is I need to add many SalesOrderLines
|
Sorry your email got buried, i didnt have any time to understand the issue and reply.
I will try to answer this tomorrowHowever can you post this on stack overflowSo more people can benefit from this
Sent from Yahoo Mail on Android
On Thu, Mar 18, 2021 at 5:33 PM, Tyler ***@***.***> wrote:
@hassaanalansary One last confusion I have is how to build the model and to_qbd function for many. Example would be how you add many invoice lines.
list_id = models.CharField(max_length=255, null=True)
full_name = models.CharField(max_length=255, null=True)
rate = models.FloatField(null=True)
desc = models.CharField(max_length=255, null=True)
quantity = models.IntegerField(max_length=255, null=True)
item_ref_list_id = models.CharField(max_length=255, null=True)
item_ref_full_name = models.CharField(max_length=255, null=True)
class SalesOrder(QBDModelMixin):
customer_ref_list_id = models.CharField(max_length=255, null=True)
customer_ref_full_name = models.CharField(max_length=255, null=True)
template_ref_list_id = models.CharField(max_length=255, null=True)
template_ref_full_name = models.CharField(max_length=255, null=True)
sales_order_line_add = models.ForeignKey(SalesOrderLineAdd, on_delete=models.CASCADE)
def to_qbd_obj(self, **fields):
from django_quickbooks.objects import SalesOrder as QBSalesOrder
# map your fields to the qbd_obj fields
return QBSalesOrder(
# todo map fields to qbd obj
)
@classmethod
def from_qbd_obj(cls, qbd_obj):
# map qbd_obj fields to your model fields
return cls(
# todo map fields from
qbd_object_id=qbd_obj.ListID,
qbd_object_version=qbd_obj.EditSequence
)```
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
When BlockingConnection is being called it is basically just timing out.
Is there additional setup that is not documented? I get that there is a link to formal documentation.
So is there more to what I need in order to get this working?
The text was updated successfully, but these errors were encountered: