RE: [mezzanine-users] Images in .pdf Invoice

2016-06-24 Thread Ag Stephens
Hi, 

Have you tried different browsers? I had a strange anomaly with pdfs in 
mezzanine that turned out to be browser specific.

Cheers,

Ag 

-Original Message-
From: "Joseph Mohan" 
Sent: ‎24/‎06/‎2016 11:13
To: "Mezzanine Users" 
Subject: [mezzanine-users] Images in .pdf Invoice

Any other things i'm missing with regards to getting an image into the .pdf 
invoices?


Set the url to a full path


Tried .png/.jpg 


Nothing...


Any ideas?


-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] PG Database backup/foreign-key constraints

2016-06-24 Thread Eduardo Rivas
Weird, I've never had any trouble dumping/restoring a Mezzanine DB with 
Postgres.


These are the commands I use: 
https://gist.github.com/jerivas/a2f321bb8fa4d305a481#postgres-exportimport-without-the-postgres-user


At any rate, you may need to wipe the target database before a restore, 
but that should be it.


--
You received this message because you are subscribed to the Google Groups "Mezzanine 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] PG Database backup/foreign-key constraints

2016-06-24 Thread Paullo
Hi,

I'm trying to make a backup of a Mezzanine site database before attempting 
an upgrade but get this error from pg_dump:

(I've tried using all formats; tar, custom, directory, sql)

pg_dump: NOTICE: there are circular foreign-key constraints among these 
table(s):
pg_dump:   pages_page
pg_dump: You might not be able to restore the dump without using 
--disable-triggers or temporarily dropping the constraints.
pg_dump: Consider using a full dump instead of a --data-only dump to avoid 
this problem.
pg_dump: NOTICE: there are circular foreign-key constraints among these 
table(s):
pg_dump:   generic_threadedcomment
pg_dump: You might not be able to restore the dump without using 
--disable-triggers or temporarily dropping the constraints.
pg_dump: Consider using a full dump instead of a --data-only dump to avoid 
this problem.

I know this isn't strictly a Mezzanine issue but google-fu just shows lots 
of convoluted faffing with temporary tables for the restore, etc and others 
stating that pg_dump with a binary format will never have this issueI'm 
feeling like there must be an easy way to take a full backup/clone of a 
database but after many hours I just can see it.

Can anyone here help with this?

Paul

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Images in .pdf Invoice

2016-06-24 Thread Eduardo Rivas
Well, Cartridge uses Pisa 
 
to create the PDFs. Apparently you can pass a "link_callback" arg to 
CreatePDF(). This callback should handle the conversion of the relative 
path of the image in the HTML to the complete filesystem path to be 
embedded in the document.


The xhtml2pdf docs provide a full example 
. 
You'll need to override the invoice view to pass the callback to 
CreatePDF().


--
You received this message because you are subscribed to the Google Groups "Mezzanine 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Images in .pdf Invoice

2016-06-24 Thread Joseph Mohan
Any other things i'm missing with regards to getting an image into the .pdf 
invoices?

Set the url to a full path

Tried .png/.jpg 

Nothing...

Any ideas?

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.